
:root {
    --gallery-pink: #fc7497;
    --gallery-peach: #ffdbba;
    --gallery-width: 1210px;
}


/* =========================================================
   PAGE
========================================================= */

.gallery-page {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: white;
    background: #000;
}


/* =========================================================
   HERO
========================================================= */

.gallery-hero {
    position: relative;

    min-height: 610px;

    display: flex;
    align-items: flex-end;

    padding: 190px 40px 95px;

    overflow: hidden;
}

.gallery-hero__inner {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: var(--gallery-width);

    margin: 0 auto;
}


/* EYEBROW */

.gallery-eyebrow,
.gallery-small-label {
    margin: 0 0 22px;

    font-family: "Roboto Serif", serif;
    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 5px;
    text-transform: uppercase;

    color: var(--gallery-pink);
}


/* MAIN TITLE */

.gallery-title {
    margin: 0;
    max-width: 850px;
    font-family: "playfair display sc", serif;
    font-size: clamp(72px, 8.4vw, 116px);
    font-weight: 700;
    line-height: 0.83;
    letter-spacing: -6px;
    /* color: var(--gallery-pink); */
}

.gallery-title span {
    background:
        linear-gradient(
            90deg,
            var(--gallery-pink) 0%,
            #ffc0c9 45%,
            var(--gallery-peach) 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* DESCRIPTION */

.gallery-description {
    width: min(100%, 570px);

    margin: 37px 0 0;

    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 400;

    line-height: 1.75;

    color: rgba(255,255,255,.62);
}


/* =========================================================
   BACKGROUND GLOWS
========================================================= */

.gallery-glow {
    position: absolute;

    width: 650px;
    height: 650px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(15px);
}

.gallery-glow--left {
    top: -270px;
    left: -390px;

    background:
        radial-gradient(
            circle,
            rgba(255,153,81,.28),
            rgba(255,153,81,.06) 40%,
            transparent 69%
        );
}

.gallery-glow--right {
    right: -380px;
    bottom: -300px;

    background:
        radial-gradient(
            circle,
            rgba(252,116,151,.28),
            rgba(252,116,151,.05) 42%,
            transparent 70%
        );
}


/* =========================================================
   DOT MOTIF
========================================================= */

.gallery-dots {
    position: absolute;

    width: 84px;
    height: 84px;

    opacity: .8;

    background-image:
        radial-gradient(
            circle,
            var(--gallery-pink) 1.7px,
            transparent 2px
        );

    background-size: 14px 14px;

    pointer-events: none;
}

.gallery-dots--one {
    right: max(7vw, 70px);
    bottom: 145px;
}

.gallery-dots--two {
    right: max(4vw, 30px);
    bottom: 103px;

    width: 35px;
    height: 35px;

    opacity: .25;
}


/* =========================================================
   GALLERY AREA
========================================================= */

.gallery-work {
    position: relative;

    padding:
        30px
        40px
        150px;
}

.gallery-work__inner {
    width: 100%;
    max-width: var(--gallery-width);

    margin: 0 auto;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.gallery-section-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    margin-bottom: 45px;

    padding-bottom: 28px;

    border-bottom:
        1px solid rgba(255,255,255,.13);
}

.gallery-section-header .gallery-small-label {
    margin-bottom: 10px;

    font-size: 9px;
    letter-spacing: 4px;
}

.gallery-section-header h2 {
    margin: 0;

    font-family: "Roboto Serif", serif;
    font-size: 42px;
    font-weight: 500;

    letter-spacing: -1.8px;

    color: white;
}

.gallery-section-header > p {
    max-width: 320px;

    margin: 0;

    font-family: "Roboto", sans-serif;
    font-size: 13px;

    line-height: 1.6;

    text-align: right;

    color: rgba(255,255,255,.46);
}


/* =========================================================
   GOOGLE-IMAGES / MASONRY GRID
========================================================= */

.gallery-grid {
    columns: 3;
    column-gap: 12px;

    width: 100%;
}


/* =========================================================
   IMAGE
========================================================= */

.gallery-item {
    position: relative;

    display: inline-block;

    width: 100%;

    margin: 0 0 12px;

    overflow: hidden;

    border-radius: 10px;

    background: #121212;

    cursor: pointer;

    break-inside: avoid;

    transform: translateZ(0);
}


/* Aspect ratio variations */

.gallery-item--tall {
    aspect-ratio: 3 / 4.3;
}

.gallery-item--portrait {
    aspect-ratio: 4 / 5;
}

.gallery-item--square {
    aspect-ratio: 1 / 1;
}

.gallery-item--landscape {
    aspect-ratio: 4 / 3;
}


/* IMAGE */

.gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .65s cubic-bezier(.2,.7,.2,1),
        filter .5s ease;
}


/* DARK OVERLAY */

.gallery-item::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    opacity: 0;

    transition: opacity .35s ease;
}


/* VERY SUBTLE BORDER */

.gallery-item::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 3;

    border-radius: inherit;

    pointer-events: none;

    transition:
        border-color .35s ease,
        box-shadow .35s ease;
}


/* =========================================================
   CAPTION
========================================================= */

.gallery-item figcaption {
    position: absolute;

    z-index: 2;

    right: 18px;
    bottom: 17px;
    left: 18px;

    display: flex;
    flex-direction: column;

    gap: 5px;

    opacity: 0;

    transform: translateY(12px);

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.gallery-item figcaption span {
    font-family: "Roboto", sans-serif;
    font-size: 8px;
    font-weight: 600;

    letter-spacing: 2.4px;

    text-transform: uppercase;

    color: var(--gallery-pink);
}

.gallery-item figcaption strong {
    font-family: "Roboto Serif", serif;
    font-size: 18px;
    font-weight: 500;

    letter-spacing: -.4px;

    color: white;
}


/* =========================================================
   HOVER
========================================================= */

@media (hover: hover) {

    .gallery-item:hover img {
        transform: scale(1.045);
    }

    .gallery-item:hover::after {
        opacity: 1;
    }

    .gallery-item:hover figcaption {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   CTA
========================================================= */

.gallery-cta {
    position: relative;

    padding:
        145px
        40px
        155px;

    text-align: center;

    overflow: hidden;

    border-top:
        1px solid rgba(255,255,255,.08);
}

.gallery-cta::before {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -430px;

    width: 850px;
    height: 650px;

    transform: translateX(-50%);

    border-radius: 50%;

    pointer-events: none;
}

.gallery-cta__inner {
    position: relative;
    z-index: 2;

    max-width: 800px;

    margin: 0 auto;
}

.gallery-cta .gallery-eyebrow {
    margin-bottom: 25px;
}

.gallery-cta h2 {
    margin: 0;

    font-family: "Roboto Serif", serif;

    font-size: clamp(58px, 7vw, 88px);
    font-weight: 500;

    line-height: .91;

    letter-spacing: -4px;

    color: white;
}

.gallery-cta h2 span {
    background:
        linear-gradient(
            90deg,
            var(--gallery-pink),
            var(--gallery-peach)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.gallery-cta p:not(.gallery-eyebrow) {
    margin:
        30px
        auto
        36px;

    font-family: "Roboto", sans-serif;
    font-size: 14px;

    line-height: 1.7;

    color: rgba(255,255,255,.55);
}


/* CTA BUTTON */

.gallery-book-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 28px;

    min-width: 265px;

    padding:
        17px
        23px
        17px
        30px;

    border-radius: 100px;

    font-family: "Roboto Serif", serif;
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.6px;

    text-decoration: none;

    color: #111;
    background: white;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.gallery-book-arrow {
    font-family: Arial, sans-serif;

    font-size: 19px;
    font-weight: 400;

    transition: transform .25s ease;
}

.gallery-book-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 40px rgba(252,116,151,.25);
}

.gallery-book-button:hover .gallery-book-arrow {
    transform: translateX(5px);
}

.gallery-dots--cta {
    top: 80px;
    right: 10%;

    opacity: .5;
}


/* =========================================================
   FOOTER
========================================================= */

.gallery-footer {
    padding: 35px 40px;

    border-top:
        1px solid rgba(255,255,255,.08);

    background: #000;
}

.gallery-footer__inner {
    width: 100%;
    max-width: var(--gallery-width);

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-family: "Roboto", sans-serif;
    font-size: 11px;

    color: rgba(255,255,255,.4);
}

.gallery-footer a {
    color: rgba(255,255,255,.75);

    text-decoration: none;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 45px 100px;

    background:
        rgba(0,0,0,.94);

    backdrop-filter: blur(18px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox__content {
    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;

    max-width: min(100%, 1050px);
    max-height: 90vh;
}

.gallery-lightbox__content img {
    display: block;

    max-width: 100%;
    max-height: 78vh;

    border-radius: 9px;

    object-fit: contain;

    box-shadow:
        0 30px 100px rgba(0,0,0,.6);
}


/* LIGHTBOX META */

.gallery-lightbox__meta {
    width: 100%;

    padding-top: 17px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.gallery-lightbox__meta span {
    font-family: "Roboto", sans-serif;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 2.5px;

    text-transform: uppercase;

    color: var(--gallery-pink);
}

.gallery-lightbox__meta strong {
    font-family: "Roboto Serif", serif;

    font-size: 16px;
    font-weight: 500;

    color: white;
}


/* CLOSE */

.gallery-lightbox__close {
    position: absolute;

    top: 27px;
    right: 35px;

    width: 45px;
    height: 45px;

    padding: 0;

    border:
        1px solid rgba(255,255,255,.22);

    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 200;

    line-height: 1;

    color: white;

    background:
        rgba(255,255,255,.04);

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.gallery-lightbox__close:hover {
    color: black;
    background: white;
    border-color: white;
}


/* ARROWS */

.gallery-lightbox__arrow {
    position: absolute;

    top: 50%;

    z-index: 3;

    width: 52px;
    height: 52px;

    transform: translateY(-50%);

    border:
        1px solid rgba(252,116,151,.7);

    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 200;

    color: var(--gallery-pink);

    background:
        rgba(0,0,0,.3);

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease;
}

.gallery-lightbox__arrow:hover {
    color: #111;
    background: var(--gallery-pink);
}

.gallery-lightbox__arrow--left {
    left: 32px;
}

.gallery-lightbox__arrow--right {
    right: 32px;
}


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

@media (max-width: 1000px) {

    .gallery-hero {
        min-height: 560px;

        padding-right: 50px;
        padding-left: 50px;
    }

    .gallery-work {
        padding-right: 50px;
        padding-left: 50px;
    }

    .gallery-grid {
        columns: 3;
    }

}


/* =========================================================
   MOBILE NAV / TABLET
========================================================= */

@media (max-width: 925px) {

    .gallery-title {
        letter-spacing: -4px;
    }

    .gallery-lightbox {
        padding:
            70px
            65px;
    }

}


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

@media (max-width: 700px) {

    .gallery-hero {
        min-height: 500px;

        align-items: flex-end;

        padding:
            150px
            24px
            70px;
    }

    .gallery-title {
        font-size: clamp(54px, 15vw, 76px);

        line-height: .87;

        letter-spacing: -3.5px;
    }

    .gallery-description {
        margin-top: 28px;

        font-size: 13px;
    }

    .gallery-dots--one {
        right: -15px;
        bottom: 120px;
    }


    /* GRID */

    .gallery-work {
        padding:
            35px
            16px
            100px;
    }

    .gallery-section-header {
        display: block;

        margin-bottom: 25px;

        padding:
            0
            8px
            22px;
    }

    .gallery-section-header h2 {
        font-size: 34px;
    }

    .gallery-section-header > p {
        margin-top: 15px;

        text-align: left;
    }

    .gallery-grid {
        columns: 2;
        column-gap: 8px;
    }

    .gallery-item {
        margin-bottom: 8px;

        border-radius: 7px;
    }

    .gallery-item figcaption {
        display: none;
    }


    /* CTA */

    .gallery-cta {
        padding:
            100px
            25px
            110px;
    }

    .gallery-cta h2 {
        font-size: 55px;

        letter-spacing: -3px;
    }


    /* FOOTER */

    .gallery-footer {
        padding:
            28px
            24px;
    }

    .gallery-footer__inner {
        flex-direction: column;

        gap: 7px;
    }


    /* LIGHTBOX */

    .gallery-lightbox {
        padding:
            75px
            16px
            40px;
    }

    .gallery-lightbox__close {
        top: 17px;
        right: 18px;
    }

    .gallery-lightbox__arrow {
        top: auto;
        bottom: 17px;

        width: 45px;
        height: 45px;

        transform: none;
    }

    .gallery-lightbox__arrow--left {
        left: 18px;
    }

    .gallery-lightbox__arrow--right {
        right: 18px;
    }

}


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

@media (max-width: 430px) {

    .gallery-grid {
        column-gap: 6px;
    }

    .gallery-item {
        margin-bottom: 6px;
    }

    .gallery-title {
        font-size: 52px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .gallery-item img,
    .gallery-item figcaption,
    .gallery-item::after,
    .gallery-lightbox,
    .gallery-book-button,
    .gallery-book-arrow {
        transition: none !important;
    }

}