/* Photo gallery (rendered by js/sections/gallery.js) */
.gallery { background: var(--paper); }
.gallery-controls { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-top: 42px; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 7px; }
.gallery-filter { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; font-size: .69rem; transition: border-color .2s ease, background .2s ease; }
.gallery-filter:hover { border-color: var(--gold); }
.gallery-filter.active { border-color: var(--wine); background: var(--wine); color: var(--on-wine); }
.gallery-room-label { display: flex; min-width: 250px; flex-direction: column; gap: 7px; color: var(--muted); font-size: .65rem; font-weight: var(--fw-strong); letter-spacing: .08em; text-transform: uppercase; }
.gallery-room-label select { height: 42px; padding: 0 35px 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: .72rem; text-transform: none; }

/* Horizontal swipe track: 3 photos per view on desktop, 2 on tablet, 1 + a peek on mobile.
   Arrows sit on the left/right edges of the photo row, vertically centred. */
.gallery-carousel { position: relative; margin-top: 34px; }
.gallery-mosaic { --gallery-gap: 22px; --gallery-per-view: 3; display: flex; gap: var(--gallery-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-mosaic::-webkit-scrollbar { display: none; }
.gallery-arrow { position: absolute; z-index: 3; top: 50%; display: grid; width: 48px; height: 48px; place-items: center; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(250,248,238,.95); box-shadow: 0 6px 18px rgba(74,20,10,.22); color: var(--wine); cursor: pointer; font-size: 1.7rem; line-height: 1; transform: translateY(-50%); transition: background .2s ease, color .2s ease, opacity .2s ease, visibility .2s ease; }
.gallery-arrow-prev { left: -24px; }
.gallery-arrow-next { right: -24px; }
.gallery-arrow:hover, .gallery-arrow:focus-visible { background: var(--wine); color: var(--on-wine); }
.gallery-arrow:disabled { opacity: 0; visibility: hidden; }

.gallery-item { position: relative; display: block; flex: 0 0 calc((100% - (var(--gallery-per-view) - 1) * var(--gallery-gap)) / var(--gallery-per-view)); aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0; border-radius: 14px; background: #e6dcc3; cursor: pointer; scroll-snap-align: start; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item > span { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 56px 18px 16px; background: linear-gradient(rgba(40,10,6,0), rgba(40,10,6,.48) 45%, rgba(40,10,6,.8)); color: var(--on-wine); text-align: left; }
.gallery-item b { min-width: 0; font-family: var(--sans); font-size: 1.1rem; font-weight: var(--fw-strong); line-height: 1.25; }
.gallery-item small { flex: 0 0 auto; color: var(--accent); font-size: .62rem; text-align: right; }

@media (max-width: 1100px) {
  .gallery-mosaic { --gallery-gap: 20px; --gallery-per-view: 2; }
}

@media (max-width: 800px) {
  .gallery-controls { align-items: stretch; flex-direction: column; }
  .gallery-room-label { min-width: 0; }
  .gallery-arrow-prev { left: 10px; }
  .gallery-arrow-next { right: 10px; }
}

@media (max-width: 560px) {
  .gallery-mosaic { --gallery-gap: 14px; }
  .gallery-item { flex-basis: 86%; }
  .gallery-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .gallery-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; }
  .gallery-filter { flex: 0 0 auto; }
}
