.gallery-page .site-header { background: #24170f; padding: 14px 0; }
.furniture-gallery { padding: 140px 0 80px; }
.gallery-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--fc-text-muted); margin-bottom: 36px; }
.gallery-breadcrumb a, .gallery-back { color: var(--fc-primary); }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.gallery-heading > div { max-width: 760px; }
.gallery-heading h1 { font-size: clamp(32px, 4vw, 60px); }
.gallery-heading p { margin: 22px 0 0; color: var(--fc-text-muted); font-size: 18px; line-height: 1.7; }
.gallery-heading .btn { flex-shrink: 0; white-space: normal; }
.gallery-categories { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 36px; }
.gallery-categories a { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--fc-border); color: var(--fc-primary); background: var(--fc-white); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.gallery-categories a:hover, .gallery-categories .is-active { background: var(--fc-dark); color: var(--fc-white); }
.gallery-intro { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px 0; border-top: 1px solid var(--fc-border); color: var(--fc-text-muted); font-size: 13px; }
.gallery-intro > :first-child { font-size: 18px; color: var(--fc-text); font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.gallery-photo { position: relative; border: 0; padding: 0; border-radius: 28px; overflow: hidden; background: var(--fc-bg-soft); aspect-ratio: 4 / 3; cursor: zoom-in; text-align: left; color: white; box-shadow: var(--fc-shadow); }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery-photo:hover img { transform: scale(1.04); }
.gallery-photo__caption { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 60px 26px 24px; background: linear-gradient(transparent, rgba(36,23,15,.8)); font-size: 16px; font-weight: 600; }
.gallery-photo__zoom { border: 1px solid #ffffff70; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.gallery-note { margin: 26px 0; color: var(--fc-text-muted); max-width: 800px; line-height: 1.7; font-size: 14px; }
.gallery-back { font-weight: 700; display: inline-block; padding: 12px 0; }
.gallery-page :is(a, button):focus-visible { outline: 3px solid var(--fc-accent); outline-offset: 4px; }
.gallery-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 20px 28px; border: 0; background: #160f0af5; color: #fffcf7; }
.gallery-lightbox::backdrop { background: #160f0a; }
.gallery-lightbox[open] { display: flex; flex-direction: column; }
.gallery-lightbox__bar { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.gallery-lightbox button { background: #ffffff12; border: 1px solid #ffffff30; color: white; border-radius: 50%; width: 48px; height: 48px; font-size: 24px; flex-shrink: 0; }
.gallery-lightbox button:hover { background: #ffffff30; }
.gallery-lightbox button:focus-visible { outline: 3px solid #c9a36f; outline-offset: 3px; }
.gallery-lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; }
.gallery-lightbox figure { margin: 0; min-width: 0; height: 100%; flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
.gallery-lightbox__image { width: 100%; height: 100%; min-height: 0; object-fit: contain; touch-action: pan-y pinch-zoom; }
.gallery-lightbox figcaption { text-align: center; font-size: 14px; flex-shrink: 0; }
.gallery-lightbox__hint { text-align: center; color: #ffffff80; font-size: 12px; padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 991px) {
    .gallery-heading { flex-direction: column; align-items: flex-start; gap: 24px; }
    .furniture-gallery { padding-top: 125px; }
    .gallery-photo__caption { padding: 50px 18px 18px; font-size: 14px; }
}
@media (max-width: 575px) {
    .furniture-gallery { padding: 110px 0 44px; }
    .gallery-breadcrumb { margin-bottom: 28px; font-size: 12px; }
    .gallery-heading p { font-size: 15px; margin-top: 16px; }
    .gallery-heading .btn { width: 100%; }
    .gallery-categories { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 4px 12px 24px; scrollbar-width: thin; }
    .gallery-categories a { flex-shrink: 0; padding: 11px 16px; font-size: 12px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 18px; }
    .gallery-photo { border-radius: 22px; }
    .gallery-intro { font-size: 12px; }
    .gallery-lightbox { padding: max(12px, env(safe-area-inset-top)) 12px 12px; }
    .gallery-lightbox__stage { position: relative; padding-bottom: 70px; gap: 0; }
    .gallery-lightbox__prev, .gallery-lightbox__next { position: absolute; bottom: 10px; }
    .gallery-lightbox__prev { left: calc(50% - 62px); }
    .gallery-lightbox__next { right: calc(50% - 62px); }
    .gallery-lightbox__hint { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-photo img, .gallery-categories a { transition: none; }
}

.gallery-project { display: block; cursor: pointer; color: white; }
.gallery-project:hover { color: white; }
.gallery-project small { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; }
.gallery-project__empty { display: grid; place-items: center; height: 100%; color: var(--fc-text-muted); }
