/* =========================================================
   GALLERY PAGE
========================================================= */

.gallery-page {
    --gallery-green: #01ff00;
    --gallery-orange: #ff6500;
    --gallery-dark: #111111;
    --gallery-text: #333333;
    --gallery-muted: #777777;
    --gallery-light: #f7f8f6;
    --gallery-border: #e8e8e8;
    --gallery-radius: 18px;

    color: var(--gallery-text);
}


/* =========================================================
   CONTAINER
========================================================= */

.gallery-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.gallery-hero {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #101510 0%,
            #1b2619 55%,
            #111111 100%
        );
}


/*
 * Decorative green/orange glow
 */

.gallery-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -220px;
    right: -100px;

    background: rgba(1, 255, 0, .10);

    border-radius: 50%;

    filter: blur(10px);
}


.gallery-hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    bottom: -220px;
    left: -100px;

    background: rgba(255, 101, 0, .12);

    border-radius: 50%;

    filter: blur(10px);
}


/* Overlay */

.gallery-hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .55),
            rgba(0, 0, 0, .10)
        );

    pointer-events: none;
}


/* Hero inner */

.gallery-hero .gallery-container {
    position: relative;
    z-index: 2;
}


/* Hero content */

.gallery-hero__content {
    max-width: 720px;
    padding: 70px 0;
}


.gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;

    color: var(--gallery-green);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}


.gallery-eyebrow::before {
    content: "";

    width: 34px;
    height: 2px;

    background: var(--gallery-orange);
}


.gallery-hero h1 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.03em;
}


.gallery-hero p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, .82);

    font-size: 17px;
    line-height: 1.75;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.gallery-breadcrumb-wrap {
    background: #ffffff;

    border-bottom: 1px solid var(--gallery-border);
}


.gallery-breadcrumb {
    min-height: 58px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    font-size: 13px;
}


.gallery-breadcrumb a {
    color: #777777;

    text-decoration: none;

    transition:
        color .2s ease;
}


.gallery-breadcrumb a:hover {
    color: var(--gallery-orange);
}


.gallery-breadcrumb__separator {
    color: #bcbcbc;
}


.gallery-breadcrumb__current {
    color: #222222;
    font-weight: 600;
}


/* =========================================================
   INTRO
========================================================= */

.gallery-intro {
    padding: 78px 0 38px;

    background: #ffffff;
}


.gallery-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin-bottom: 24px;
}


.gallery-section-heading__line {
    flex: 0 0 4px;

    width: 4px;
    min-height: 74px;

    background:
        linear-gradient(
            to bottom,
            var(--gallery-orange) 0 48%,
            var(--gallery-green) 48% 100%
        );

    border-radius: 4px;
}


.gallery-section-heading__label {
    display: block;

    margin-bottom: 7px;

    color: var(--gallery-orange);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}


.gallery-section-heading h2 {
    margin: 0;

    color: #171717;

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.025em;
}


.gallery-intro__text {
    max-width: 820px;

    margin-left: 22px;
}


.gallery-intro__text p {
    margin: 0;

    color: var(--gallery-muted);

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   GALLERY LOCATIONS
========================================================= */

.gallery-locations {
    padding: 34px 0 88px;

    background: #ffffff;
}


/* Grid */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;
}


/* =========================================================
   CARD
========================================================= */

.gallery-card {
    min-width: 0;
}


.gallery-card__link {
    display: block;

    color: inherit;
    text-decoration: none;
}


.gallery-card__image {
    position: relative;

    overflow: hidden;

    aspect-ratio: 3 / 2;

    background: #eeeeee;

    border-radius: var(--gallery-radius);

    box-shadow:
        0 8px 28px rgba(0, 0, 0, .08);

    isolation: isolate;
}


.gallery-card picture {
    display: block;

    width: 100%;
    height: 100%;
}


.gallery-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .65s cubic-bezier(.2, .7, .2, 1);
}


/* =========================================================
   CARD OVERLAY
========================================================= */

.gallery-card__shade {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .05) 0%,
            rgba(0, 0, 0, .04) 38%,
            rgba(0, 0, 0, .82) 100%
        );

    pointer-events: none;
}


/* =========================================================
   CARD TOP
========================================================= */

.gallery-card__top {
    position: absolute;

    top: 16px;
    left: 16px;
    right: 16px;

    z-index: 3;

    display: flex;
    justify-content: flex-end;
}


.gallery-card__count {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 12px;

    color: #ffffff;

    background: rgba(0, 0, 0, .55);

    border: 1px solid rgba(255, 255, 255, .18);

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.gallery-card__count svg {
    width: 15px;
    height: 15px;

    fill: currentColor;
}


/* =========================================================
   CARD BOTTOM
========================================================= */

.gallery-card__bottom {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 3;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;

    padding: 22px 20px 20px;
}


.gallery-card__title-wrap {
    min-width: 0;
}


.gallery-card__bottom h3 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, .25);
}


.gallery-card__bottom p {
    max-width: 360px;

    margin: 0;

    color: rgba(255, 255, 255, .78);

    font-size: 13px;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   CARD ARROW
========================================================= */

.gallery-card__arrow {
    flex: 0 0 auto;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #111111;

    background: var(--gallery-green);

    border-radius: 50%;

    transform: translateY(4px);

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}


.gallery-card__arrow svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;
    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   CARD HOVER
========================================================= */

.gallery-card__link:hover img {
    transform: scale(1.07);
}


.gallery-card__link:hover .gallery-card__arrow {
    color: #ffffff;

    background: var(--gallery-orange);

    transform:
        translate(4px, 4px);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.gallery-card__placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    color: #888888;

    background:
        linear-gradient(
            135deg,
            #f0f0f0,
            #e8e8e8
        );

    font-size: 13px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.gallery-empty {
    max-width: 620px;

    margin: 20px auto 0;

    padding: 70px 30px;

    text-align: center;

    background: #fafafa;

    border: 1px solid var(--gallery-border);

    border-radius: var(--gallery-radius);
}


.gallery-empty__icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 22px;

    color: #222222;

    background:
        linear-gradient(
            135deg,
            rgba(1, 255, 0, .25),
            rgba(255, 101, 0, .18)
        );

    border-radius: 50%;
}


.gallery-empty__icon svg {
    width: 28px;
    height: 28px;

    fill: currentColor;
}


.gallery-empty h2 {
    margin: 0 0 10px;

    color: #222222;

    font-size: 25px;
}


.gallery-empty p {
    margin: 0;

    color: #777777;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   CTA
========================================================= */

.gallery-cta {
    padding: 0 0 90px;

    background: #ffffff;
}


.gallery-cta__box {
    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    padding: 46px 50px;

    background:
        linear-gradient(
            135deg,
            #151915,
            #202820
        );

    border-radius: 22px;

    box-shadow:
        0 16px 45px rgba(0, 0, 0, .10);
}


.gallery-cta__box::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -100px;
    top: -150px;

    background: rgba(1, 255, 0, .10);

    border-radius: 50%;
}


.gallery-cta__box::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    left: -90px;
    bottom: -110px;

    background: rgba(255, 101, 0, .12);

    border-radius: 50%;
}


.gallery-cta__content {
    position: relative;
    z-index: 2;

    max-width: 720px;
}


.gallery-cta__label {
    display: block;

    margin-bottom: 9px;

    color: var(--gallery-green);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}


.gallery-cta h2 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.2;
    font-weight: 800;
}


.gallery-cta p {
    margin: 0;

    color: rgba(255, 255, 255, .72);

    font-size: 15px;
    line-height: 1.7;
}


/* CTA button */

.gallery-cta__button {
    position: relative;
    z-index: 2;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 50px;

    padding: 0 24px;

    color: #111111;

    background: var(--gallery-green);

    border-radius: 10px;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}


.gallery-cta__button svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;
    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.gallery-cta__button:hover {
    color: #ffffff;

    background: var(--gallery-orange);

    transform: translateY(-2px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

    .gallery-container {
        width: min(100% - 32px, 760px);
    }


    .gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px;
    }


    .gallery-hero {
        min-height: 350px;
    }


    .gallery-hero__content {
        padding: 60px 0;
    }


    .gallery-intro {
        padding-top: 65px;
    }


    .gallery-cta__box {
        padding: 40px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .gallery-container {
        width: calc(100% - 30px);
    }


    /* Hero */

    .gallery-hero {
        min-height: 330px;
    }


    .gallery-hero__content {
        padding: 55px 0;
    }


    .gallery-eyebrow {
        margin-bottom: 14px;

        font-size: 11px;
    }


    .gallery-eyebrow::before {
        width: 25px;
    }


    .gallery-hero h1 {
        margin-bottom: 14px;

        font-size: 36px;
        line-height: 1.1;
    }


    .gallery-hero p {
        font-size: 14px;
        line-height: 1.65;
    }


    /* Breadcrumb */

    .gallery-breadcrumb {
        min-height: 50px;

        font-size: 12px;
    }


    /* Intro */

    .gallery-intro {
        padding: 52px 0 25px;
    }


    .gallery-section-heading {
        gap: 13px;

        margin-bottom: 20px;
    }


    .gallery-section-heading__line {
        width: 3px;
        min-height: 61px;
    }


    .gallery-section-heading__label {
        margin-bottom: 5px;

        font-size: 10px;
    }


    .gallery-section-heading h2 {
        font-size: 28px;
    }


    .gallery-intro__text {
        margin-left: 16px;
    }


    .gallery-intro__text p {
        font-size: 14px;
        line-height: 1.7;
    }


    /* Gallery */

    .gallery-locations {
        padding: 25px 0 65px;
    }


    .gallery-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .gallery-card__image {
        border-radius: 15px;
    }


    .gallery-card__top {
        top: 13px;
        left: 13px;
        right: 13px;
    }


    .gallery-card__count {
        padding: 7px 10px;

        font-size: 11px;
    }


    .gallery-card__bottom {
        gap: 12px;

        padding: 19px 16px 16px;
    }


    .gallery-card__bottom h3 {
        margin-bottom: 5px;

        font-size: 19px;
    }


    .gallery-card__bottom p {
        font-size: 12px;
        line-height: 1.5;
    }


    .gallery-card__arrow {
        width: 39px;
        height: 39px;
    }


    /* CTA */

    .gallery-cta {
        padding-bottom: 65px;
    }


    .gallery-cta__box {
        flex-direction: column;
        align-items: flex-start;

        gap: 25px;

        padding: 30px 24px;

        border-radius: 17px;
    }


    .gallery-cta__label {
        font-size: 10px;
    }


    .gallery-cta h2 {
        font-size: 27px;
    }


    .gallery-cta p {
        font-size: 13px;
        line-height: 1.65;
    }


    .gallery-cta__button {
        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .gallery-container {
        width: calc(100% - 24px);
    }


    .gallery-hero h1 {
        font-size: 32px;
    }


    .gallery-section-heading h2 {
        font-size: 25px;
    }


    .gallery-card__bottom h3 {
        font-size: 18px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .gallery-card img,
    .gallery-card__arrow,
    .gallery-cta__button {
        transition: none;
    }

}