html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

#pageHeader {
    width: 100%;
    box-sizing: border-box;
    padding: 20px 0;

    display: flex;
    justify-content: center;
}

#pageHeader img {
    display: block;
    width: auto;
    max-width: 50vw;
    height: auto;
}

.backButton {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;

    display: block;
    width: 8vw;
    max-width: 110px;

    padding: 0;
    margin: 0;
    border: 0;

    background: transparent;
    text-decoration: none;
}

.backButton img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0);
}

.backButton:hover img {
    filter: brightness(1);
}

.photoView {
    width: 80vw;
    margin: 0 auto 25px;
    padding: 2vh 0 8vh;

    display: flex;
    flex-direction: column;
    gap: 100px;
}

.imageContainer {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.imageContainer > img {
    display: block;

    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90vh;
}

.caption {
    width: 50%;
    margin-bottom: 10px;

    display: flex;
    justify-content: center;
}

.caption img {
    display: block;

    width: auto;
    max-width: 100%;
    max-height: 30px;
    height: auto;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1100px) and (min-width: 701px) {
    #pageHeader {
        padding: 18px 0 26px;
    }

    #pageHeader img {
        max-width: 58vw;
    }

    .backButton {
        top: 18px;
        left: 18px;
        width: 9vw;
        max-width: 85px;
    }

    .photoView {
        width: 88vw;
        gap: 78px;
    }

    .imageContainer > img {
        max-width: 100%;
        max-height: 78vh;
    }

    .caption {
        width: 65%;
    }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {
    #pageHeader {
        padding: 16px 52px 26px;
    }

    #pageHeader img {
        width: auto;
        max-width: min(72vw, 320px);
    }

    .backButton {
        display: none;
    }

    .photoView {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0 16px 64px;
        gap: 58px;
    }

    .imageContainer > img {
        width: auto;
        max-width: 100%;
        max-height: none;
    }

    .caption {
        width: 100%;
        margin-bottom: 8px;
    }

    .caption img {
        max-width: 72vw;
        max-height: 25px;
    }
}

@media (hover: none), (pointer: coarse) {
    .backButton:hover img {
        filter: brightness(0);
    }
}
