/*
 * DESIGNS AND GALLERY STYLES — PHASE 8
 * Gallery card content is maintained in designs.html.
 * Filter and lightbox behaviour lives in assets/js/gallery.js.
 */
.gallery-hero { background: var(--color-surface); }
.gallery-breadcrumb { display:flex; flex-wrap:wrap; gap:.65rem; margin-bottom:2.25rem; color:var(--color-muted-text); font-size:var(--font-size-sm); }
.gallery-breadcrumb a { color:var(--color-brand); text-decoration:none; }
.gallery-hero h1 { max-width:850px; color:var(--color-brand); font-size:clamp(2.5rem,5vw,4.5rem); line-height:1.08; letter-spacing:-.045em; }
.gallery-hero h1 span { color:var(--color-cta); }
.gallery-hero-note { margin:0; padding:1.4rem; border-left:3px solid var(--color-cta); background:var(--color-background); color:var(--color-muted-text); line-height:1.7; }
.gallery-filter { display:flex; flex-wrap:wrap; gap:.65rem; margin-bottom:2rem; }
.gallery-filter__button { padding:.65rem 1.1rem; border:1px solid var(--color-border); border-radius:var(--radius-pill); background:transparent; color:var(--color-text); font:inherit; font-size:.9rem; transition:background var(--transition-fast),color var(--transition-fast),border-color var(--transition-fast); }
.gallery-filter__button:hover { border-color:var(--color-brand); }
.gallery-filter__button.is-active { border-color:var(--color-brand); background:var(--color-brand); color:var(--color-white); }
.gallery-filter__button:focus-visible,.gallery-item:focus-visible,.gallery-lightbox button:focus-visible { outline:3px solid var(--color-cta); outline-offset:3px; }
.gallery-card[hidden] { display:none !important; }
.gallery-item { position:relative; display:block; width:100%; padding:0; overflow:hidden; border:0; border-radius:var(--radius-lg); background:var(--color-surface); text-align:left; cursor:zoom-in; }
.gallery-item img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; transition:transform var(--transition-normal); }
.gallery-item:hover img { transform:scale(1.035); }
.gallery-item__overlay { position:absolute; inset:auto 0 0; display:grid; gap:.25rem; padding:2.5rem 1.25rem 1.15rem; background:linear-gradient(transparent,rgba(20,37,43,.88)); color:#fff; }
.gallery-item__overlay strong { font-family:var(--font-heading); font-size:1.15rem; }
.gallery-item__overlay small { color:rgba(255,255,255,.8); }
.gallery-item__overlay i { position:absolute; right:1.2rem; bottom:1.4rem; font-size:1.2rem; }
.gallery-empty { padding:1rem; color:var(--color-muted-text); }
.gallery-before-after { background:var(--color-surface); }
.before-after-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
.before-after-panel figure { margin:0; overflow:hidden; border-radius:var(--radius-lg); background:var(--color-background); box-shadow:var(--shadow-soft); }
.before-after-panel img { display:block; width:100%; aspect-ratio:600/420; object-fit:cover; }
.before-after-panel figcaption { padding:1rem 1.25rem; color:var(--color-brand); font-weight:600; }
.gallery-cta { background:var(--color-brand); color:#fff; }
.gallery-cta h2,.gallery-cta .eyebrow { color:#fff; }
.gallery-cta p:not(.eyebrow) { color:rgba(255,255,255,.76); }

.gallery-lightbox { position:fixed; z-index:2000; inset:0; display:none; align-items:center; justify-content:center; padding:1.25rem; }
.gallery-lightbox.is-open { display:flex; }
.gallery-lightbox__backdrop { position:absolute; inset:0; background:rgba(10,20,24,.88); }
.gallery-lightbox__dialog { position:relative; z-index:1; width:min(100%,1000px); max-height:92vh; overflow:auto; padding:1rem; border-radius:var(--radius-lg); background:var(--color-background); box-shadow:0 24px 80px rgba(0,0,0,.3); }
.gallery-lightbox__header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.25rem .25rem 1rem; }
.gallery-lightbox__header h2 { margin:0; color:var(--color-brand); font-size:1.25rem; }
.gallery-lightbox__close { display:grid; width:2.5rem; height:2.5rem; place-items:center; border:0; border-radius:50%; background:var(--color-surface); color:var(--color-brand); }
.gallery-lightbox__dialog > img { display:block; width:100%; max-height:72vh; object-fit:contain; background:var(--color-surface); }
.gallery-lightbox__note { margin:.85rem 0 0; color:var(--color-muted-text); font-size:.85rem; }
body.lightbox-open { overflow:hidden; }

@media(max-width:767.98px) {
    .gallery-breadcrumb { margin-bottom:1.5rem; }
    .before-after-panel { grid-template-columns:1fr; }
    .gallery-lightbox { padding:.6rem; }
    .gallery-lightbox__dialog { padding:.65rem; }
}
