/* =========================================================
   CORBETT ULTIMUS
   GALLERY PAGE
========================================================= */

.cu-gallery-page {

    --cu-gallery-green: #064638;
    --cu-gallery-deep: #00372d;
    --cu-gallery-cream: #f5f1e8;
    --cu-gallery-gold: #d7ae4d;

    background: var(--cu-gallery-cream);
    color: var(--cu-gallery-deep);

    overflow: hidden;
}


/* =========================================================
   CONTAINER
========================================================= */

.cu-gallery-container {

    width: min(
        1400px,
        calc(100% - 100px)
    );

    margin: 0 auto;
}


/* =========================================================
   EYEBROW
========================================================= */

.cu-gallery-eyebrow {

    display: inline-block;

    margin-bottom: 24px;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: .22em;

    text-transform: uppercase;

    color: rgba(255,255,255,.72);
}

.cu-gallery-eyebrow--dark {

    color: rgba(6,70,56,.65);
}


/* =========================================================
   HERO
========================================================= */

.cu-gallery-hero {

    position: relative;

    min-height: 760px;

    display: flex;
    align-items: flex-end;

    background: #00372d;

    overflow: hidden;
}


.cu-gallery-hero__image {

    position: absolute;

    inset: 0;

    background-image:
        url("../images/gallery/gallery-hero.jpg");

    background-size: cover;
    background-position: center;

    transform: scale(1.02);

    transition:
        transform 1.5s ease;
}


.cu-gallery-hero:hover
.cu-gallery-hero__image {

    transform: scale(1.05);
}


.cu-gallery-hero__overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.72) 0%,
            rgba(0,0,0,.32) 55%,
            rgba(0,0,0,.08) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0,0,0,.75) 0%,
            transparent 60%
        );
}


.cu-gallery-hero
.cu-gallery-container {

    position: relative;

    z-index: 2;

    padding-bottom: 95px;
}


.cu-gallery-hero__content {

    max-width: 800px;
}


.cu-gallery-hero h1 {

    margin: 0;

    color: #fff;

    font-size:
        clamp(
            48px,
            6vw,
            86px
        );

    line-height: .98;

    font-weight: 400;

    letter-spacing: -.045em;
}


.cu-gallery-hero h1 em {

    display: block;

    color: var(--cu-gallery-gold);

    font-family: Georgia, serif;

    font-weight: 400;
}


.cu-gallery-hero p {

    max-width: 580px;

    margin: 30px 0 0;

    color: rgba(255,255,255,.76);

    font-size: 15px;

    line-height: 1.8;
}


.cu-gallery-hero__location {

    position: absolute;

    right: 0;
    bottom: 95px;

    display: flex;

    align-items: center;

    gap: 16px;

    color: rgba(255,255,255,.65);

    font-size: 10px;

    letter-spacing: .18em;
}


.cu-gallery-hero__line {

    width: 48px;

    height: 1px;

    background:
        var(--cu-gallery-gold);
}


/* =========================================================
   INTRO
========================================================= */

.cu-gallery-intro {

    padding:
        135px
        0
        110px;

    background:
        var(--cu-gallery-cream);
}


.cu-gallery-intro__grid {

    display: grid;

    grid-template-columns:
        minmax(0,.9fr)
        minmax(0,1.1fr);

    gap: 100px;

    align-items: start;
}


.cu-gallery-intro h2 {

    margin: 0;

    font-size:
        clamp(
            44px,
            5vw,
            70px
        );

    line-height: 1;

    font-weight: 400;

    letter-spacing: -.045em;
}


.cu-gallery-intro h2 em {

    display: block;

    color:
        var(--cu-gallery-green);

    font-family: Georgia, serif;

    font-weight: 400;
}


.cu-gallery-intro__content {

    max-width: 610px;

    padding-top: 8px;
}


.cu-gallery-intro__lead {

    margin: 0 0 28px;

    color:
        var(--cu-gallery-deep);

    font-size: 24px;

    line-height: 1.35;
}


.cu-gallery-intro__content p:not(.cu-gallery-intro__lead) {

    margin: 0;

    color:
        rgba(0,55,45,.68);

    font-size: 15px;

    line-height: 1.9;
}


/* =========================================================
   GALLERY SHOWCASE
========================================================= */

.cu-gallery-showcase {

    padding:
        20px
        0
        140px;

    background:
        var(--cu-gallery-cream);
}


/* =========================================================
   GRID
========================================================= */

.cu-gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    grid-auto-flow: dense;

    gap: 22px;
}


/* =========================================================
   ITEMS
========================================================= */

.cu-gallery-item {

    min-width: 0;
}


.cu-gallery-item--large {

    grid-column: span 2;

    grid-row: span 2;
}


.cu-gallery-item--wide {

    grid-column: span 2;
}


/* =========================================================
   IMAGE CARD
========================================================= */

.cu-gallery-card {

    position: relative;

    display: block;

    width: 100%;

    height: 100%;

    min-height: 380px;

    padding: 0;

    border: 0;

    border-radius: 0;

    overflow: hidden;

    background:
        var(--cu-gallery-green);

    cursor: pointer;

    text-align: left;
}


.cu-gallery-item--large
.cu-gallery-card {

    min-height: 760px;
}


.cu-gallery-item--wide
.cu-gallery-card {

    min-height: 480px;
}


/* =========================================================
   IMAGE
========================================================= */

.cu-gallery-card img {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .9s
        cubic-bezier(.2,.7,.2,1);
}


.cu-gallery-card:hover img {

    transform:
        scale(1.065);
}


/* =========================================================
   OVERLAY
========================================================= */

.cu-gallery-card__overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.72) 0%,
            rgba(0,0,0,.04) 65%
        );

    opacity: .65;

    transition:
        opacity .4s ease;
}


.cu-gallery-card:hover
.cu-gallery-card__overlay {

    opacity: .9;
}


/* =========================================================
   NUMBER
========================================================= */

.cu-gallery-card__number {

    position: absolute;

    left: 28px;
    bottom: 28px;

    color:
        rgba(255,255,255,.72);

    font-size: 11px;

    letter-spacing: .15em;
}


/* =========================================================
   ARROW
========================================================= */

.cu-gallery-card__arrow {

    position: absolute;

    right: 28px;
    bottom: 25px;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.48);

    border-radius: 50%;

    color: #fff;

    font-size: 18px;

    transition:
        transform .35s ease,
        background .35s ease;
}


.cu-gallery-card:hover
.cu-gallery-card__arrow {

    transform:
        rotate(45deg);

    background:
        rgba(255,255,255,.12);
}


/* =========================================================
   FINAL CTA
========================================================= */

.cu-gallery-final {

    padding:
        150px
        0;

    background: #fff;
}


.cu-gallery-final__inner {

    max-width: 900px;
}


.cu-gallery-final h2 {

    margin:
        0
        0
        45px;

    font-size:
        clamp(
            45px,
            5.5vw,
            76px
        );

    line-height: 1;

    font-weight: 400;

    letter-spacing: -.045em;
}


.cu-gallery-final h2 em {

    display: block;

    color:
        var(--cu-gallery-green);

    font-family: Georgia, serif;

    font-weight: 400;
}


.cu-gallery-btn {

    display: inline-flex;

    align-items: center;

    gap: 18px;

    padding:
        16px
        24px;

    background:
        var(--cu-gallery-green);

    color: #fff;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .16em;

    text-decoration: none;

    transition:
        transform .3s ease,
        background .3s ease;
}


.cu-gallery-btn span {

    font-size: 17px;
}


.cu-gallery-btn:hover {

    background:
        var(--cu-gallery-deep);

    color: #fff;

    transform:
        translateY(-3px);
}


/* =========================================================
   LIGHTBOX
========================================================= */

.cu-gallery-lightbox {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px;

    background:
        rgba(0,0,0,.95);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}


.cu-gallery-lightbox.is-open {

    opacity: 1;

    visibility: visible;
}


.cu-gallery-lightbox__inner {

    width:
        min(
            1400px,
            92vw
        );

    height:
        min(
            88vh,
            900px
        );

    display: flex;

    align-items: center;
    justify-content: center;
}


.cu-gallery-lightbox__image {

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
}


.cu-gallery-lightbox__close {

    position: absolute;

    top: 25px;
    right: 30px;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.45);

    border-radius: 50%;

    background: transparent;

    color: #fff;

    font-size: 30px;

    font-weight: 300;

    cursor: pointer;

    transition:
        transform .35s ease,
        background .35s ease;
}


.cu-gallery-lightbox__close:hover {

    transform:
        rotate(90deg);

    background:
        rgba(255,255,255,.1);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .cu-gallery-container {

        width:
            calc(100% - 60px);
    }


    .cu-gallery-hero {

        min-height: 680px;
    }


    .cu-gallery-hero__location {

        position: static;

        margin-top: 45px;
    }


    .cu-gallery-intro__grid {

        gap: 60px;
    }


    .cu-gallery-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }


    .cu-gallery-item--large {

        grid-column: span 2;

        grid-row: span 1;
    }


    .cu-gallery-item--large
    .cu-gallery-card {

        min-height: 560px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .cu-gallery-container {

        width:
            calc(100% - 40px);
    }


    .cu-gallery-hero {

        min-height: 620px;
    }


    .cu-gallery-hero
    .cu-gallery-container {

        padding-bottom: 60px;
    }


    .cu-gallery-hero h1 {

        font-size: 48px;
    }


    .cu-gallery-hero p {

        font-size: 14px;

        line-height: 1.7;
    }


    .cu-gallery-hero__location {

        margin-top: 30px;

        font-size: 9px;
    }


    .cu-gallery-intro {

        padding:
            90px
            0
            75px;
    }


    .cu-gallery-intro__grid {

        grid-template-columns: 1fr;

        gap: 45px;
    }


    .cu-gallery-intro h2 {

        font-size: 48px;
    }


    .cu-gallery-intro__lead {

        font-size: 20px;
    }


    .cu-gallery-showcase {

        padding-bottom: 90px;
    }


    .cu-gallery-grid {

        grid-template-columns: 1fr;

        gap: 15px;
    }


    .cu-gallery-item--large,
    .cu-gallery-item--wide {

        grid-column: span 1;

        grid-row: span 1;
    }


    .cu-gallery-card,
    .cu-gallery-item--large
    .cu-gallery-card,
    .cu-gallery-item--wide
    .cu-gallery-card {

        min-height: 430px;
    }


    .cu-gallery-final {

        padding: 100px 0;
    }


    .cu-gallery-final h2 {

        font-size: 48px;
    }


    .cu-gallery-lightbox {

        padding: 20px;
    }


    .cu-gallery-lightbox__close {

        top: 15px;
        right: 15px;

        width: 44px;
        height: 44px;
    }

}