:root {
    /* Tweak to taste */
    --nav-min: 84px;
    --brand: #1c1c1c;
    --brand-ink: #ffffff;
    --gold: #d4a047;
    --ink: #222;
    --page-bg: #faf9f7;
    --container-max: 1200px;

    --btn-ink: #111;
    --btn-bg: var(--gold);
    --btn-bg-hover: #e1b15b;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    background: var(--page-bg);
    line-height: 1.5;
}

.container {
    width: min(100% - 40px, var(--container-max));
    margin-inline: auto;
}

.service-area-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0.85rem;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(212, 160, 71, 0.12);
    border: 1px solid rgba(212, 160, 71, 0.28);
    color: #4a3a18;
    font-size: 0.95rem;
    font-weight: 600;
}

.service-area-badge .pin {
    flex: 0 0 auto;
}
:root {
    --nav-min: 84px;
    --brand: #1c1c1c;
    --brand-ink: #ffffff;
    --gold: #d4a047;
    --ink: #222;
    --page-bg: #faf9f7;
    --container-max: 1200px;

    --btn-ink: #111;
    --btn-bg: var(--gold);
    --btn-bg-hover: #e1b15b;
}

/* ===== Base header: SOLID, non-overlapping (used on all inner pages) ===== */
header#nav_bar {
    position: sticky; /* occupies layout, no overlap */
    top: 0;
    inset-inline: 0;
    z-index: 1000;
    color: var(--brand-ink);
    min-height: var(--nav-min);
    background: var(--brand); /* solid bar */
    padding: clamp(14px, 2.2vh, 26px) 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ===== Overlay variant for the landing page hero ===== */
header#nav_bar.overlay {
    position: fixed; /* sits above hero */
    left: 0;
    right: 0;
    top: 0;
    box-shadow: none;
    background: linear-gradient(
        to bottom,
        rgba(28, 28, 28, 0.92) 0%,
        rgba(28, 28, 28, 0.55) 55%,
        rgba(28, 28, 28, 0) 100%
    );
}

.nav-inner {
    width: min(100%, var(--container-max));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}
#logo {
    height: auto;
    max-height: clamp(44px, 9vh, 100px);
    width: auto;
    object-fit: contain;
    justify-self: start;
}

/* Primary nav */
nav[aria-label="Primary"] {
    justify-self: center;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(10px, 1.2vw, 18px);
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}
.nav-links > li {
    position: relative;
}
.nav-links a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #f4e9cf;
    font-family: "Playfair Display", serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-size: clamp(0.95rem, 0.8vw, 1.02rem);
    padding: 8px 4px;
    outline: none;
    transition: color 0.25s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--gold);
}
/* underline reveal */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

.contact-link-mobile {
    display: none;
}

.has-dropdown .dropdown-trigger {
    padding-right: 16px;
}

.has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.has-dropdown .dropdown-trigger::before {
    content: "▾";
    font-size: 0.72rem;
    line-height: 1;
    position: absolute;
    right: 0;
    top: 52%;
    transform: translateY(-48%);
    color: currentColor;
}

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 8px;
    min-width: 200px;
    border-radius: 12px;
    border: 1px solid rgba(212, 160, 71, 0.34);
    background: rgba(20, 20, 20, 0.97);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 6px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1200;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: rgba(212, 160, 71, 0.18);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-phone {
    color: #f4e9cf;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.97rem;
    white-space: nowrap;
}

.nav-phone:hover,
.nav-phone:focus-visible {
    color: var(--gold);
}

/* Contact button (desktop) */
.contact-btn {
    background: var(--btn-bg);
    color: var(--btn-ink);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-family: "Libre Bodoni", serif;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.05s ease;
}
.contact-btn:hover {
    background: var(--btn-bg-hover);
}
.contact-btn:active {
    transform: translateY(1px);
}

/* Hamburger */
.menu-toggle {
    display: none;
    justify-self: end;
    background: transparent;
    border: 0;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 8px;
}
.menu-toggle:focus-visible {
    outline: 2px solid var(--gold);
}

@media (max-width: 1280px) {
    .nav-links a {
        font-size: 0.95rem;
    }

    .contact-btn {
        padding: 9px 14px;
    }

    .nav-phone {
        font-size: 0.93rem;
    }
}

/* ===== Mobile ===== */
@media (max-width: 1120px) {
    .nav-actions {
        display: none;
    } /* move CTA into mobile menu */
    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }
    .nav-inner {
        grid-template-columns: auto 1fr auto;
    }

    /* collapse nav to panel */
    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: rgba(20, 20, 20, 0.96);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        flex-direction: column;
        gap: 8px;
        padding: 14px 18px 18px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .nav-links > li {
        width: 100%;
    }

    .contact-link-mobile {
        display: inline-block;
    }

    /* On non-overlay pages, use a SOLID panel to match the solid bar */
    header#nav_bar:not(.overlay) .nav-links {
        background: var(--brand);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    header#nav_bar.open .nav-links {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 10px 0;
    }

    .has-dropdown .dropdown-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-right: 0;
    }

    .has-dropdown .dropdown-trigger::before {
        position: static;
        transform: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: none;
        min-width: 0;
        margin-top: 4px;
        padding: 10px;
        border-radius: 10px;
        border-color: rgba(212, 160, 71, 0.25);
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px 10px;
    }

    .dropdown-menu a {
        font-size: 0.95rem;
        padding: 7px 0;
    }

    .nav-links a::after {
        display: none;
    } /* simpler mobile states */
}
:root {
    /* Tweak to taste */
    --nav-min: 84px;
    --brand: #1c1c1c;
    --brand-ink: #ffffff;
    --gold: #d4a047;
    --ink: #222;
    --page-bg: #faf9f7;
    --container-max: 1200px;

    --btn-ink: #111;
    --btn-bg: var(--gold);
    --btn-bg-hover: #e1b15b;
}

.site-footer {
    background: #111;
    color: #ddd;
}
.footer-grid {
    display: grid;
    gap: clamp(16px, 3vw, 26px);
    grid-template-columns: 1.2fr 1fr 1fr;
    padding: clamp(28px, 6vw, 46px) 0;
}
.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}
.footer-col h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1rem;
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.footer-col a {
    color: #f4e9cf;
    text-decoration: none;
}
.footer-col a:hover {
    color: var(--gold);
}
.footer-area {
    margin: 0.5rem 0 0;
    color: #bbb;
}
.footer-contact li {
    color: #ccc;
}
.footer-base {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-base small {
    display: block;
    padding: 12px 0;
    color: #aaa;
}

@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
:root {
    /* Tweak to taste */
    --nav-min: 84px;
    --brand: #1c1c1c;
    --brand-ink: #ffffff;
    --gold: #d4a047;
    --ink: #222;
    --page-bg: #faf9f7;
    --container-max: 1200px;

    --btn-ink: #111;
    --btn-bg: var(--gold);
    --btn-bg-hover: #e1b15b;
}

.cta {
    text-align: center;
    background: radial-gradient(
            1200px 400px at 10% 0%,
            rgba(212, 160, 71, 0.1),
            transparent 60%
        ),
        linear-gradient(#f7f3eb, #faf9f7);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.cta h2 {
    font-family: "Libre Bodoni", serif;
    font-size: clamp(24px, 4.6vw, 40px);
    margin: 0 0 0.4rem;
}
.cta p {
    margin: 0.2rem 0 1rem;
    color: #444;
}
.btn,
.btn--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}
.btn {
    background: var(--gold);
    color: #111;
}
.btn:hover {
    filter: brightness(1.05);
}
.btn--ghost {
    border: 2px solid #111;
    color: #111;
}
.cta .btn-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.phone {
    display: block;
    margin-top: 0.35rem;
    font-weight: 700;
}
.page-hero {
    padding: clamp(36px, 8vw, 84px) 0;
    background:
        radial-gradient(
            1000px 360px at 85% 0%,
            rgba(212, 160, 71, 0.1),
            transparent 60%
        ),
        linear-gradient(#f7f3eb, #faf9f7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.service-page .page-hero {
    padding: clamp(24px, 5vw, 56px) 0;
}

.breadcrumbs {
    margin-bottom: 0.9rem;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #655f54;
    font-size: 0.95rem;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 8px;
    color: #a98a47;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a5a1b;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0 0 0.4rem;
}

.page-hero h1 {
    margin: 0.25rem 0 0;
    font-family: "Libre Bodoni", serif;
    line-height: 1.1;
    font-size: clamp(30px, 5.4vw, 54px);
    max-width: 11.5ch;
    text-wrap: balance;
}

.service-page .page-hero h1 {
    max-width: none;
}

.sub {
    margin: 12px 0 0;
    color: #444;
    max-width: 58ch;
}

section {
    padding: clamp(40px, 8vw, 96px) 0;
}

.mini-article {
    padding: clamp(28px, 6vw, 64px) 0;
    background:
        radial-gradient(
            1200px 420px at 12% 0%,
            rgba(212, 160, 71, 0.12),
            transparent 60%
        ),
        linear-gradient(#f7f3eb, #faf9f7);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mini-grid,
.details-grid,
.service-area-grid {
    display: grid;
    gap: clamp(16px, 3vw, 28px);
    align-items: start;
}

.mini-grid,
.service-area-grid {
    grid-template-columns: 1.15fr 0.85fr;
}

.details-grid {
    grid-template-columns: 1.08fr 1fr;
}

.sanding-page .sanding-article {
    padding: clamp(24px, 4vw, 44px) 0;
}

.sanding-page .sanding-article-grid {
    display: grid;
    gap: clamp(16px, 2.5vw, 24px);
    align-items: start;
    grid-template-columns: 1.2fr 0.8fr;
}

.sanding-page .sanding-article-main h3 {
    margin: clamp(22px, 3vw, 30px) 0 0.65rem;
}

.sanding-page .sanding-article-main .section-intro {
    margin-bottom: 0.75rem;
}

.sanding-page .sanding-article-aside {
    display: grid;
    gap: 0;
}

.sanding-page .aside-block + .aside-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sanding-page .aside-block h3 {
    margin-top: 0;
}

.sanding-page .faq-section,
.sanding-page #quote {
    padding-top: clamp(28px, 5vw, 46px);
    padding-bottom: clamp(28px, 5vw, 46px);
}

.refinishing-page .refinishing-article {
    padding: clamp(24px, 4vw, 44px) 0;
}

.refinishing-page .refinishing-article-grid {
    display: grid;
    gap: clamp(16px, 2.5vw, 24px);
    align-items: start;
    grid-template-columns: 1.2fr 0.8fr;
}

.refinishing-page .refinishing-article-main h3 {
    margin: clamp(22px, 3vw, 30px) 0 0.65rem;
}

.refinishing-page .refinishing-article-main .section-intro {
    margin-bottom: 0.75rem;
}

.refinishing-page .refinishing-article-aside {
    display: grid;
    gap: 0;
}

.refinishing-page .aside-block + .aside-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.refinishing-page .aside-block h3 {
    margin-top: 0;
}

.refinishing-page .faq-section,
.refinishing-page #quote {
    padding-top: clamp(28px, 5vw, 46px);
    padding-bottom: clamp(28px, 5vw, 46px);
}

.repairs-page .repairs-article {
    padding: clamp(24px, 4vw, 44px) 0;
}

.repairs-page .repairs-article-grid {
    display: grid;
    gap: clamp(16px, 2.5vw, 24px);
    align-items: start;
    grid-template-columns: 1.2fr 0.8fr;
}

.repairs-page .repairs-article-main h3 {
    margin: clamp(22px, 3vw, 30px) 0 0.65rem;
}

.repairs-page .repairs-article-main .section-intro {
    margin-bottom: 0.75rem;
}

.repairs-page .repairs-article-aside {
    display: grid;
    gap: 0;
}

.repairs-page .aside-block + .aside-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.repairs-page .aside-block h3 {
    margin-top: 0;
}

.repairs-page .faq-section,
.repairs-page #quote {
    padding-top: clamp(28px, 5vw, 46px);
    padding-bottom: clamp(28px, 5vw, 46px);
}

.about-page .about-article {
    padding: clamp(24px, 4vw, 44px) 0;
}

.about-page .about-article-grid {
    display: grid;
    gap: clamp(16px, 2.5vw, 24px);
    align-items: start;
    grid-template-columns: 1.15fr 0.85fr;
}

.about-page .about-article-main h3 {
    margin: clamp(22px, 3vw, 30px) 0 0.65rem;
}

.about-page .about-article-main .section-intro {
    margin-bottom: 0.75rem;
}

.about-page .about-article-aside {
    display: grid;
    gap: 0;
}

.about-page .aside-block + .aside-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.about-page .aside-block h3 {
    margin-top: 0;
}

.about-page .about-quote-spotlight {
    border: 1px solid rgba(212, 160, 71, 0.42);
    border-radius: 14px;
    padding: 18px;
    background:
        radial-gradient(
            500px 220px at 10% 0%,
            rgba(212, 160, 71, 0.18),
            transparent 62%
        ),
        linear-gradient(#fffaf0, #fff);
}

.about-page .about-quote-kicker {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #7a5a1b;
}

.about-page .about-quote-phone {
    display: block;
    margin-top: 0.45rem;
    font-family: "Libre Bodoni", serif;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1;
    text-decoration: none;
    color: #1f1c16;
}

.about-page .about-quote-email {
    display: block;
    margin-top: 0.2rem;
    font-weight: 700;
    color: #4a3a18;
    text-underline-offset: 3px;
    word-break: break-word;
}

.about-page .about-quote-email:hover {
    color: var(--gold);
}

.about-page .about-quote-photo {
    margin-top: 0.85rem;
}

.about-page .about-quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0.85rem;
}

.about-page .about-quote-note {
    margin-top: 0.75rem;
}

.card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
}

.mini-article .card {
    border-color: rgba(212, 160, 71, 0.18);
}

h2,
h3 {
    font-family: "Playfair Display", serif;
    margin: 0.2rem 0 0.6rem;
}

.section-intro {
    margin: 0 0 1rem;
    color: #555;
    max-width: 68ch;
}

.lead {
    margin: 0 0 0.75rem;
    color: #333;
}

.bullets,
.list {
    margin: 0.2rem 0 0;
    padding-left: 18px;
    color: #444;
}

.bullets li,
.list li {
    margin-top: 0.55rem;
}

.chips,
.city-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
}

.chips li,
.city-chips li {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3efe7;
    border: 1px solid rgba(212, 160, 71, 0.28);
    color: #4a3a18;
    font-size: 0.92rem;
}

.note {
    margin: 0.65rem 0 0;
    color: #555;
}

.mini-article-photo,
.aside-photo {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    margin: 10px 0 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.section-surface {
    background:
        radial-gradient(
            900px 320px at 100% 0%,
            rgba(212, 160, 71, 0.09),
            transparent 60%
        ),
        #f8f4ec;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-section {
    background:
        radial-gradient(
            960px 320px at 0% 0%,
            rgba(212, 160, 71, 0.1),
            transparent 60%
        ),
        linear-gradient(#f7f3eb, #faf9f7);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 0 18px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
}

.faq-item[open] {
    border-color: rgba(212, 160, 71, 0.42);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    font-family: "Playfair Display", serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #1f1c16;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin: 0 0 18px;
    color: #555;
}

.inline-link {
    color: #4a3a18;
    text-underline-offset: 3px;
}

.inline-link:hover {
    color: var(--gold);
}

@media (max-width: 980px) {
    .mini-grid,
    .details-grid,
    .service-area-grid {
        grid-template-columns: 1fr;
    }

    .sanding-page .sanding-article-grid {
        grid-template-columns: 1fr;
    }

    .refinishing-page .refinishing-article-grid {
        grid-template-columns: 1fr;
    }

    .repairs-page .repairs-article-grid {
        grid-template-columns: 1fr;
    }

    .about-page .about-article-grid {
        grid-template-columns: 1fr;
    }

    .about-page .about-quote-phone {
        font-size: clamp(28px, 8vw, 38px);
    }

    .page-hero h1 {
        max-width: 13ch;
    }
}

@media (max-width: 640px) {
    .faq-item {
        padding-inline: 16px;
    }
}
:root {
    /* Tweak to taste */
    --nav-min: 84px;
    --brand: #1c1c1c;
    --brand-ink: #ffffff;
    --gold: #d4a047;
    --ink: #222;
    --page-bg: #faf9f7;
    --container-max: 1200px;

    --btn-ink: #111;
    --btn-bg: var(--gold);
    --btn-bg-hover: #e1b15b;
}

.gallery-section {
    padding: clamp(48px, 8vw, 100px) 0;
    background: #faf8f3;
}
.gallery-header {
    margin-bottom: clamp(16px, 3vw, 24px);
}

/* Carousel layout */
.gallery-carousel {
    --gallery-gap: clamp(10px, 2vw, 16px);
    display: flex;
    align-items: center;
    gap: var(--gallery-gap);
}

.gallery-nav {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: #fff;
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.gallery-nav:hover {
    background: #fff;
}
.gallery-nav:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.gallery-nav:disabled {
    opacity: 0.45;
    cursor: default;
}

.gallery-viewport {
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.gallery-viewport::-webkit-scrollbar {
    display: none; /* WebKit */
}

.gallery-track {
    display: flex;
    gap: var(--gallery-gap);
    padding: 2px;
}
.gallery-item {
    position: relative;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    flex: 0 0 calc((100% - (3 * var(--gallery-gap))) / 4);
}
.gallery-item img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.25s ease;
}
.gallery-item:hover img {
    transform: scale(1.03);
}
@media (max-width: 980px) {
    .gallery-item {
        flex-basis: calc((100% - (1 * var(--gallery-gap))) / 2);
    }
}
@media (max-width: 560px) {
    .gallery-carousel {
        gap: 10px;
    }
    .gallery-nav {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
    .gallery-item {
        flex-basis: 100%;
    }
    .gallery-item img {
        height: 240px;
    }
}

/* Lightbox */
.lightbox[hidden] {
    display: none;
}
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: grid;
    place-items: center;
    z-index: 1002;
    padding: 16px;
}
.lightbox-img {
    max-width: min(1200px, 96vw);
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: #fff;
    color: #111;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.lightbox-close:focus-visible {
    outline: 2px solid var(--gold);
}
