/* =========================================================
   PIN-UP BOWL — GALLERY PAGE
   Uses the SAME header / footer structure as About page.
   Main theme:
   style.css
   responsive.css

   Page-specific:
   gallery.css
========================================================= */


/* =========================================================
   PAGE BASE
========================================================= */

.gallery-page-body {
    background: #090909;
    color: #fff;
    overflow-x: hidden;
}

.gallery-page-body .overflow-wrapper {
    overflow: hidden;
}


/* =========================================================
   HEADER
   SAME AS ABOUT PAGE
   DO NOT OVERRIDE HEADER POSITION/STYLING
========================================================= */

/*
   Header is intentionally NOT positioned absolute here.

   About page uses:
   .header2-wrap
   .header2-wrap.scrolled

   Therefore the same style.css header behavior is retained.
*/

.gallery-page-body .header2-wrap {
    z-index: 9999;
}

.gallery-page-body .header2-wrap.scrolled {
    z-index: 9999;
}


/* =========================================================
   HERO
========================================================= */

.gallery-hero {
    min-height: 860px;
    height: 100vh;
    max-height: 1050px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    background: #080808;
}


/* =========================================================
   HERO BACKGROUND
========================================================= */

.gallery-hero-bg {
    position: absolute;
    inset: 0;

    background-image:
        url("../images/pin-up-bowl-delmar-loop-9.webp");

    background-size: cover;
    background-position: center;

    transform: scale(1.03);

    filter: saturate(.8);
}


/* =========================================================
   HERO OVERLAY
========================================================= */

.gallery-hero-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 5, 5, .95) 0%,
            rgba(5, 5, 5, .75) 38%,
            rgba(5, 5, 5, .34) 70%,
            rgba(5, 5, 5, .68) 100%
        );
}


/* =========================================================
   HERO GRID
========================================================= */

.gallery-hero-grid {
    position: absolute;
    inset: 0;

    z-index: 2;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, .03) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .03) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    mask-image:
        radial-gradient(
            circle at center,
            black 35%,
            transparent 90%
        );

    -webkit-mask-image:
        radial-gradient(
            circle at center,
            black 35%,
            transparent 90%
        );

    pointer-events: none;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.gallery-hero-inner {
    position: relative;
    z-index: 5;

    width: 100%;

    padding-top: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   HERO COPY
========================================================= */

.gallery-hero-copy {
    max-width: 720px;
}

.gallery-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;

    color: var(--primary-color);

    font-family: var(--titleFontFamily);
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.gallery-eyebrow-line {
    width: 42px;
    height: 2px;

    display: inline-block;

    background: var(--primary-color);

    border-radius: 50px;
}


/* =========================================================
   HERO TITLE
========================================================= */

.gallery-hero-title {
    margin: 0 0 28px;

    color: #fff;

    font-family: var(--heading-font);

    font-size: clamp(58px, 7vw, 105px);
    font-weight: 900;

    line-height: .88;
    letter-spacing: -4px;

    text-transform: uppercase;
}

.gallery-hero-title em {
    color: var(--primary-color);
    font-style: italic;
}


/* =========================================================
   HERO TEXT
========================================================= */

.gallery-hero-text {
    max-width: 510px;

    margin: 0 0 34px;

    color: rgba(255, 255, 255, .65);

    font-size: 15px;
    line-height: 1.85;
}


/* =========================================================
   HERO ACTIONS
========================================================= */

.gallery-hero-actions {
    display: flex;
    align-items: center;
    gap: 26px;

    flex-wrap: wrap;
}

.gallery-scroll-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: rgba(255, 255, 255, .8);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.3px;
    text-transform: uppercase;

    text-decoration: none;

    transition: .3s ease;
}

.gallery-scroll-link:hover {
    color: #fff;
}

.gallery-scroll-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;

    transition: .3s ease;
}

.gallery-scroll-link:hover .gallery-scroll-icon {
    color: #fff;

    background: var(--primary-color);
    border-color: var(--primary-color);
}


/* =========================================================
   HERO SIDE CARD
========================================================= */

.gallery-hero-side {
    width: 230px;
    flex-shrink: 0;
}

.gallery-hero-side-card {
    position: relative;

    padding: 28px 26px;

    background: rgba(0, 0, 0, .12);

    border-left: 1px solid rgba(255, 255, 255, .25);

    backdrop-filter: blur(8px);
}

.gallery-side-number {
    display: block;

    margin-bottom: 18px;

    color: var(--primary-color);

    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
}

.gallery-side-label {
    display: block;

    margin-bottom: 18px;

    color: rgba(255, 255, 255, .4);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-side-line {
    width: 100%;
    height: 1px;

    margin-bottom: 20px;

    background: rgba(255, 255, 255, .12);
}

.gallery-hero-side-card strong {
    color: #fff;

    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 800;

    line-height: 1.15;

    text-transform: uppercase;
}


/* =========================================================
   HERO BOTTOM
========================================================= */

.gallery-hero-bottom {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 35px;

    z-index: 7;

    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gallery-hero-location {
    display: flex;
    align-items: center;
    gap: 9px;

    color: rgba(255, 255, 255, .45);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.gallery-hero-location i {
    color: var(--primary-color);
}

.gallery-hero-scroll {
    display: flex;
    align-items: center;
    gap: 12px;

    color: rgba(255, 255, 255, .35);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-hero-scroll span {
    width: 45px;
    height: 1px;

    display: block;

    background: var(--primary-color);
}


/* =========================================================
   INTRO
========================================================= */

.gallery-intro {
    position: relative;

    padding: 120px 0 90px;

    background: #090909;
}

.gallery-intro-grid {
    display: grid;

    grid-template-columns: 240px 1fr;

    gap: 80px;

    align-items: start;
}

.gallery-intro-label {
    padding-top: 10px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: rgba(255, 255, 255, .3);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-small-line {
    width: 28px;
    height: 1px;

    background: var(--primary-color);
}

.gallery-intro-content {
    max-width: 820px;
}

.gallery-eyebrow.dark {
    color: var(--primary-color);
}

.gallery-intro-content h2 {
    margin: 0 0 25px;

    color: #fff;

    font-family: var(--heading-font);

    font-size: clamp(40px, 5vw, 68px);
    font-weight: 900;

    line-height: 1;
    letter-spacing: -2px;

    text-transform: uppercase;
}

.gallery-intro-content h2 span {
    display: block;

    color: var(--primary-color);

    font-style: italic;
}

.gallery-intro-content p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, .46);

    font-size: 15px;
    line-height: 1.9;
}


/* =========================================================
   GALLERY SECTION
========================================================= */

.gallery-section {
    position: relative;

    padding: 30px 0 130px;

    background: #090909;
}

.gallery-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    margin-bottom: 48px;
}

.gallery-section-head h2 {
    margin: 0;
    color: #fff;
    font-family: var(--heading-font);

    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900;

    line-height: .95;
    letter-spacing: -2px;

    text-transform: uppercase;
}

.gallery-section-head h2 span {
    color: var(--primary-color);
    font-style: italic;
}

.gallery-section-head > p {
    max-width: 360px;

    margin: 0;

    color: rgba(255, 255, 255, .4);

    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   PREMIUM MOSAIC
========================================================= */

.pinup-gallery {
    display: grid;

    grid-template-columns:
        repeat(12, minmax(0, 1fr));

    grid-template-rows:
        repeat(4, 230px);

    gap: 12px;
}

.pinup-gallery-item {
    position: relative;

    display: block;

    overflow: hidden;

    isolation: isolate;

    cursor: pointer;

    background: #141414;

    border: 1px solid rgba(255, 255, 255, .07);

    text-decoration: none;
}

.pinup-gallery-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    filter: saturate(.9);

    transition:
        transform .8s cubic-bezier(.2, .7, .2, 1),
        filter .6s ease;
}

.pinup-gallery-item:hover img {
    transform: scale(1.08);

    filter:
        saturate(1.1)
        contrast(1.03);
}


/* =========================================================
   GALLERY CARD OVERLAY
========================================================= */

.pinup-gallery-item::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.9) 100%
        );

    opacity: .9;

    transition: .4s ease;

    pointer-events: none;
}

.pinup-gallery-item:hover::after {
    opacity: .95;
}


/* =========================================================
   GRID PLACEMENT
========================================================= */

.item-01 {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
}

.item-02 {
    grid-column: 7 / 10;
    grid-row: 1 / 2;
}

.item-03 {
    grid-column: 10 / 13;
    grid-row: 1 / 2;
}

.item-04 {
    grid-column: 7 / 10;
    grid-row: 2 / 3;
}

.item-05 {
    grid-column: 10 / 13;
    grid-row: 2 / 3;
}

.item-06 {
    grid-column: 1 / 5;
    grid-row: 3 / 4;
}

.item-07 {
    grid-column: 5 / 9;
    grid-row: 3 / 4;
}

.item-08 {
    grid-column: 9 / 13;
    grid-row: 3 / 4;
}

.item-09 {
    grid-column: 1 / 7;
    grid-row: 4 / 5;
}

.item-10 {
    grid-column: 7 / 10;
    grid-row: 4 / 5;
}

.item-11 {
    grid-column: 10 / 13;
    grid-row: 4 / 5;
}


/* =========================================================
   CARD NUMBER
========================================================= */

.gallery-card-number {
    position: absolute;

    top: 16px;
    right: 16px;

    z-index: 3;

    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    color: #fff;

    background: rgba(0, 0, 0, .55);

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;

    font-family: var(--heading-font);
    font-size: 10px;
    font-weight: 800;

    backdrop-filter: blur(8px);
}


/* =========================================================
   CARD BOTTOM
========================================================= */

.gallery-card-bottom {
    position: absolute;

    left: 20px;
    right: 20px;
    bottom: 18px;

    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #fff;

    font-family: var(--heading-font);
    font-size: 16px;
    font-weight: 800;

    letter-spacing: .5px;
    text-transform: uppercase;
}

.gallery-card-bottom i {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    color: var(--primary-color);

    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;

    font-size: 11px;

    transition: .3s ease;
}

.pinup-gallery-item:hover .gallery-card-bottom i {
    color: #fff;

    background: var(--primary-color);
    border-color: var(--primary-color);

    transform: rotate(45deg);
}


/* =========================================================
   CTA
========================================================= */

.gallery-cta {
    position: relative;

    min-height: 570px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #0d0d0d;
}

.gallery-cta-bg {
    position: absolute;
    inset: 0;

    background-image:
        url("../images/pin-up-bowl-delmar-loop-17.webp");

    background-size: cover;
    background-position: center;

    opacity: .24;

    transform: scale(1.04);
}

.gallery-cta::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            #0b0b0b 0%,
            rgba(11, 11, 11, .91) 40%,
            rgba(11, 11, 11, .55) 100%
        );
}

.gallery-cta::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--primary-color),
            transparent
        );
}

.gallery-cta .container {
    position: relative;

    z-index: 3;

    width: 100%;
}

.gallery-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 70px;
}

.gallery-cta-copy {
    max-width: 650px;
}

.gallery-cta-copy h2 {
    margin: 0 0 25px;

    font-family: var(--heading-font);

    font-size: clamp(50px, 7vw, 90px);
    color:#fff;
    font-weight: 900;

    line-height: .9;
    letter-spacing: -3px;

    text-transform: uppercase;
}

.gallery-cta-copy h2 span {
    color: var(--primary-color);
    font-style: italic;
}

.gallery-cta-copy p {
    max-width: 540px;

    margin: 0;

    color: rgba(255, 255, 255, .5);

    font-size: 14px;
    line-height: 1.85;
}

.gallery-cta-action {
    flex-shrink: 0;
}

.gallery-cta-action .btn-default {
    display: inline-flex;

    align-items: center;
    gap: 13px;
}

.gallery-cta-action i {
    font-size: 12px;

    transition: .3s ease;
}

.gallery-cta-action a:hover i {
    transform: translateX(4px);
}


/* =========================================================
   FANCYBOX
========================================================= */

.fancybox__backdrop {
    background: rgba(0, 0, 0, .94) !important;
}

.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, .96);

    z-index: 999999 !important;
}

.fancybox__content {
    background: transparent !important;
}

.fancybox__image {
    max-width: 92vw !important;
    max-height: 86vh !important;

    object-fit: contain;

    border-radius: 2px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, .65);
}

.fancybox__toolbar {
    padding: 18px 20px !important;

    background: transparent !important;
}

.fancybox__toolbar__button {
    width: 42px !important;
    height: 42px !important;

    color: #fff !important;

    background: rgba(0, 0, 0, .45) !important;

    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 50% !important;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.fancybox__toolbar__button:hover {
    color: #fff !important;

    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;

    transform: translateY(-2px);
}

.fancybox__nav {
    --f-button-width: 48px;
    --f-button-height: 48px;
    --f-button-border-radius: 50%;
    --f-button-color: #fff;
    --f-button-bg: rgba(0, 0, 0, .45);
    --f-button-hover-bg: var(--primary-color);
    --f-button-active-bg: var(--primary-color);
}

.fancybox__nav .f-button {
    border: 1px solid rgba(255, 255, 255, .16);

    backdrop-filter: blur(8px);

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.fancybox__nav .f-button:hover {
    border-color: var(--primary-color);

    transform: scale(1.06);
}

.fancybox__caption {
    padding: 15px 20px 22px !important;

    color: rgba(255, 255, 255, .78) !important;

    font-family: var(--body-font);
    font-size: 13px;
    line-height: 1.6;

    text-align: center;
}

.fancybox__thumbs {
    padding-top: 25px !important;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .9),
            rgba(0, 0, 0, .55),
            transparent
        ) !important;
}

.fancybox__thumb {
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 4px;

    transition:
        border-color .25s ease,
        transform .25s ease;
}

.fancybox__thumb:hover {
    border-color: var(--primary-color);

    transform: translateY(-2px);
}

.is-nav-selected .fancybox__thumb {
    border-color: var(--primary-color) !important;
}

.fancybox__spinner {
    color: var(--primary-color) !important;
}

.pinup-gallery-item:focus {
    outline: none;
}

.pinup-gallery-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}


/* =========================================================
   TABLET — 1199px
========================================================= */

@media (max-width: 1199px) {

    .gallery-hero {
        min-height: 760px;
    }

    .gallery-hero-side {
        width: 190px;
    }

    .gallery-intro-grid {
        gap: 50px;
    }

    .pinup-gallery {
        grid-template-rows:
            repeat(4, 200px);
    }

}


/* =========================================================
   991px
========================================================= */

@media (max-width: 991px) {

    .gallery-hero {
        min-height: 760px;
        height: auto;
    }

    /*
       Header remains controlled by style.css,
       exactly like About page.
    */

    .gallery-hero-inner {
        padding-top: 150px;
        padding-bottom: 130px;
    }

    .gallery-hero-side {
        display: none;
    }

    .gallery-hero-title {
        font-size: clamp(56px, 10vw, 88px);
    }

    .gallery-intro {
        padding: 90px 0 70px;
    }

    .gallery-intro-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-section {
        padding-bottom: 90px;
    }

    .gallery-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .pinup-gallery {
        grid-template-columns: repeat(2, 1fr);

        grid-template-rows: none;
        grid-auto-rows: 260px;
    }

    .pinup-gallery-item {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .item-01 {
        grid-column: span 2 !important;
        grid-row: span 2 !important;
    }

    .gallery-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .fancybox__image {
        max-width: 94vw !important;
        max-height: 82vh !important;
    }

}


/* =========================================================
   767px
========================================================= */

@media (max-width: 767px) {

    .gallery-page-body .header2-wrap.scrolled {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .gallery-hero {
        min-height: 720px;
    }

    .gallery-hero-inner {
        padding-top: 135px;
        padding-bottom: 120px;
    }

    .gallery-hero-title {
        font-size: clamp(48px, 13vw, 72px);

        letter-spacing: -2px;
    }

    .gallery-hero-text {
        max-width: 420px;

        font-size: 13px;
    }

    .gallery-hero-bottom {
        padding: 0 24px;
    }

    .gallery-hero-scroll {
        display: none;
    }

    .gallery-intro {
        padding: 75px 0 60px;
    }

    .gallery-intro-content h2 {
        font-size: 42px;
    }

    .gallery-section {
        padding-top: 10px;
    }

    .gallery-section-head h2 {
        font-size: 44px;
    }

    .pinup-gallery {
        grid-template-columns: 1fr;

        grid-auto-rows: 300px;

        gap: 10px;
    }

    .pinup-gallery-item,
    .item-01 {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .gallery-card-bottom {
        left: 16px;
        right: 16px;
        bottom: 15px;
    }

    .gallery-cta {
        min-height: 620px;
    }

    .gallery-cta-inner {
        gap: 40px;
    }

    .gallery-cta-copy h2 {
        font-size: 54px;
        letter-spacing: -2px;
    }

    .fancybox__toolbar {
        padding: 12px !important;
    }

    .fancybox__toolbar__button {
        width: 38px !important;
        height: 38px !important;
    }

    .fancybox__nav {
        --f-button-width: 42px;
        --f-button-height: 42px;
    }

    .fancybox__image {
        max-width: 96vw !important;
        max-height: 76vh !important;
    }

    .fancybox__caption {
        padding: 10px 15px 15px !important;

        font-size: 12px;
    }

}


/* =========================================================
   576px
========================================================= */

@media (max-width: 576px) {

    .gallery-hero {
        min-height: 680px;
    }

    .gallery-hero-inner {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 125px;
    }

    .gallery-eyebrow {
        font-size: 10px;
        letter-spacing: 1.6px;
    }

    .gallery-eyebrow-line {
        width: 28px;
    }

    .gallery-hero-title {
        font-size: 48px;
        line-height: .93;
    }

    .gallery-hero-text {
        font-size: 12px;
        line-height: 1.7;
    }

    .gallery-hero-actions {
        gap: 18px;
    }

    .gallery-hero-actions .btn-default {
        padding: 12px 20px;
    }

    .gallery-intro {
        padding: 65px 0 50px;
    }

    .gallery-intro-content h2 {
        font-size: 36px;
    }

    .gallery-intro-content p {
        font-size: 13px;
    }

    .gallery-section-head h2 {
        font-size: 38px;
    }

    .gallery-section-head > p {
        font-size: 12px;
    }

    .pinup-gallery {
        grid-auto-rows: 240px;
    }

    .gallery-cta {
        min-height: 570px;
    }

    .gallery-cta-copy h2 {
        font-size: 45px;
    }

    .gallery-cta-copy p {
        font-size: 13px;
    }

    .gallery-cta-action .btn-default {
        font-size: 11px;
    }

    .fancybox__image {
        max-width: 97vw !important;
        max-height: 72vh !important;
    }

    .fancybox__nav {
        --f-button-width: 38px;
        --f-button-height: 38px;
    }

    .fancybox__caption {
        font-size: 11px;
    }

}