:root {
    --fk-gallery-bg: #050607;
    --fk-gallery-panel: #111418;
    --fk-gallery-panel-2: #171a1f;
    --fk-gallery-gold: #d5a84d;
    --fk-gallery-gold-bright: #f0c762;
    --fk-gallery-text: #f5f7fa;
    --fk-gallery-muted: #aeb5bf;
    --fk-gallery-line: rgba(213,168,77,.45);
}

.fk-site-section-gallery,
.fk-site-section-gallery .site-content,
.fk-site-section-gallery #content,
.fk-site-section-gallery .content-area,
.fk-site-section-gallery .site-main,
.fk-site-section-gallery article.page,
.fk-site-section-gallery .entry-content {
    background: var(--fk-gallery-bg) !important;
}

.fk-site-section-gallery .site-content > .ast-container,
.fk-site-section-gallery .site-content .ast-container,
.fk-site-section-gallery .entry-content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.fk-gallery-page {
    color: var(--fk-gallery-text);
    background: var(--fk-gallery-bg);
    font-family: inherit;
}

.fk-gallery-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('images/shop-showroom.webp');
    background-size: cover;
    background-position: center;
}

.fk-gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4,5,7,.96) 0%, rgba(4,5,7,.78) 46%, rgba(4,5,7,.18) 100%),
        linear-gradient(0deg, rgba(4,5,7,.75), transparent 55%);
}

.fk-gallery-hero-copy {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 84px 0;
}

.fk-gallery-eyebrow,
.fk-gallery-heading > span,
.fk-gallery-contact > div > span {
    display: block;
    margin-bottom: 12px;
    color: var(--fk-gallery-gold);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.fk-gallery-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.7rem, 6vw, 5.5rem);
    line-height: .96;
    letter-spacing: -.055em;
}

.fk-gallery-hero p {
    max-width: 680px;
    margin: 24px 0 0;
    color: #d2d6dc;
    font-size: 1.05rem;
    line-height: 1.7;
}

.fk-gallery-actions,
.fk-gallery-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.fk-gallery-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid var(--fk-gallery-gold);
    border-radius: 4px;
    font-weight: 900;
    text-decoration: none !important;
    transition: transform .2s ease, filter .2s ease, background .2s ease;
}

.fk-gallery-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.fk-gallery-button.is-gold {
    background: linear-gradient(135deg, #f1ca68, #bd8425);
    color: #08090b !important;
}

.fk-gallery-button.is-dark {
    background: rgba(4,5,7,.72);
    color: #fff !important;
}

.fk-gallery-section {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 78px 0;
}

.fk-gallery-heading {
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.fk-gallery-heading h2,
.fk-gallery-contact h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.fk-gallery-heading p,
.fk-gallery-contact p {
    margin: 14px 0 0;
    color: var(--fk-gallery-muted);
    line-height: 1.65;
}

.fk-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 34px;
}

.fk-gallery-filters button {
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid #343a42;
    border-radius: 999px;
    background: #0d0f12;
    color: #e8ebef;
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
}

.fk-gallery-filters button:hover,
.fk-gallery-filters button.is-active {
    border-color: var(--fk-gallery-gold);
    background: var(--fk-gallery-gold);
    color: #090a0c;
}

.fk-gallery-grid {
    columns: 4 260px;
    column-gap: 16px;
}

.fk-gallery-item {
    width: 100%;
    display: inline-block;
    margin: 0 0 16px;
    padding: 0;
    overflow: hidden;
    break-inside: avoid;
    border: 1px solid #2c3138;
    border-radius: 7px;
    background: var(--fk-gallery-panel);
    color: inherit;
    text-align: left;
    cursor: zoom-in;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.fk-gallery-item:hover {
    transform: translateY(-3px);
    border-color: var(--fk-gallery-gold);
    box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

.fk-gallery-item[hidden] {
    display: none !important;
}

.fk-gallery-image-wrap {
    display: block;
    overflow: hidden;
    background: #090b0e;
}

.fk-gallery-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .35s ease;
}

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

.fk-gallery-card-copy {
    display: block;
    padding: 15px 16px 16px;
}

.fk-gallery-card-copy strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.fk-gallery-card-copy span {
    display: block;
    margin-top: 5px;
    color: var(--fk-gallery-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.fk-gallery-empty {
    padding: 36px;
    border: 1px dashed #3a4048;
    color: var(--fk-gallery-muted);
    text-align: center;
}

.fk-gallery-contact {
    width: min(1320px, calc(100% - 40px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 auto 78px;
    padding: 38px 40px;
    border-left: 4px solid var(--fk-gallery-gold);
    background: var(--fk-gallery-panel);
}

.fk-gallery-contact > div:first-child {
    max-width: 780px;
}

.fk-gallery-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 32px 86px;
    background: rgba(0,0,0,.94);
    backdrop-filter: blur(8px);
}

.fk-gallery-lightbox[hidden] {
    display: none !important;
}

.fk-gallery-lightbox-figure {
    width: min(1200px, 100%);
    max-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.fk-gallery-lightbox-figure img {
    max-width: 100%;
    max-height: calc(100vh - 170px);
    object-fit: contain;
    border: 1px solid rgba(213,168,77,.42);
    box-shadow: 0 28px 80px rgba(0,0,0,.7);
}

.fk-gallery-lightbox figcaption {
    width: min(900px, 100%);
    display: grid;
    gap: 4px;
    margin-top: 16px;
    text-align: center;
}

.fk-gallery-lightbox figcaption strong {
    color: #fff;
    font-size: 1.05rem;
}

.fk-gallery-lightbox figcaption span,
.fk-gallery-lightbox figcaption small {
    color: var(--fk-gallery-muted);
}

.fk-gallery-close,
.fk-gallery-prev,
.fk-gallery-next {
    position: fixed;
    display: grid;
    place-items: center;
    border: 1px solid rgba(213,168,77,.72);
    border-radius: 50%;
    background: rgba(7,8,10,.86);
    color: #fff;
    cursor: pointer;
}

.fk-gallery-close {
    top: 20px;
    right: 22px;
    width: 46px;
    height: 46px;
    font-size: 2rem;
    line-height: 1;
}

.fk-gallery-prev,
.fk-gallery-next {
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translateY(-50%);
    font-size: 2.5rem;
}

.fk-gallery-prev { left: 20px; }
.fk-gallery-next { right: 20px; }

body.fk-gallery-lock {
    overflow: hidden !important;
}

@media (max-width: 900px) {
    .fk-gallery-hero {
        min-height: 500px;
        background-position: 63% center;
    }

    .fk-gallery-contact {
        align-items: flex-start;
        flex-direction: column;
    }

    .fk-gallery-contact-actions {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .fk-gallery-hero-copy,
    .fk-gallery-section,
    .fk-gallery-contact {
        width: min(100% - 24px, 1320px);
    }

    .fk-gallery-hero {
        min-height: 540px;
    }

    .fk-gallery-hero-overlay {
        background: linear-gradient(90deg, rgba(4,5,7,.95), rgba(4,5,7,.62));
    }

    .fk-gallery-hero-copy {
        padding: 68px 0;
    }

    .fk-gallery-actions,
    .fk-gallery-contact-actions {
        width: 100%;
        flex-direction: column;
    }

    .fk-gallery-button {
        width: 100%;
    }

    .fk-gallery-section {
        padding: 58px 0;
    }

    .fk-gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
    }

    .fk-gallery-filters button {
        flex: 0 0 auto;
    }

    .fk-gallery-grid {
        columns: 2 145px;
        column-gap: 10px;
    }

    .fk-gallery-item {
        margin-bottom: 10px;
    }

    .fk-gallery-card-copy {
        padding: 11px;
    }

    .fk-gallery-card-copy span {
        display: none;
    }

    .fk-gallery-contact {
        margin-bottom: 58px;
        padding: 28px 22px;
    }

    .fk-gallery-lightbox {
        padding: 58px 10px 28px;
    }

    .fk-gallery-lightbox-figure img {
        max-height: calc(100vh - 190px);
    }

    .fk-gallery-prev,
    .fk-gallery-next {
        top: auto;
        bottom: 20px;
        width: 46px;
        height: 46px;
        transform: none;
    }

    .fk-gallery-prev { left: 18px; }
    .fk-gallery-next { right: 18px; }
}
