/* SIDS GALLERY — Home section and room pages (20 Nov 2026, v2). Uses the site's tokens from site.css. */
.sg { background: var(--bone); }
.sg-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px 56px; align-items: end; margin-bottom: 34px; }
.sg-title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; margin: 10px 0 0; color: var(--ink); }
.sg-title em { color: var(--brass); }
.sg-lead { color: var(--ink-2); margin: 0 0 18px; max-width: 52ch; }
.sg-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sg-sub { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--taupe-ink); margin: 30px 0 14px; display: flex; align-items: center; gap: 14px; }
.sg-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sg-note { margin: 26px 0 0; font-size: 13px; color: var(--muted); max-width: 72ch; }

/* tiles shared by the strip */
.sg-tile, .sg-room { position: relative; display: block; overflow: hidden; background: var(--linen); color: #fff; text-decoration: none; border-radius: 2px; }
.sg-tile img, .sg-room img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.sg-tile:hover img, .sg-room:hover img { transform: scale(1.04); }
.sg-tile:focus-visible, .sg-room:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sg-cap, .sg-room-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; background: linear-gradient(to top, rgba(5, 15, 46, .8), rgba(5, 15, 46, 0)); display: flex; flex-direction: column; gap: 2px; }
.sg-cap b { font: 600 14px/1.25 var(--sans); }
.sg-cap span, .sg-room-txt span { font-size: 12.5px; opacity: .88; }

/* New this week: 6 across on desktop, swipe on phones */
.sg-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.sg-strip .sg-tile { aspect-ratio: 4 / 5; }

/* Browse by room: cards */
.sg-rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sg-room { aspect-ratio: 4 / 3; }
.sg-room-txt b { font: 500 clamp(19px, 1.7vw, 24px)/1.15 var(--serif); }
.sg-room-txt span { color: var(--gold); opacity: 1; font-weight: 600; }

@media (max-width: 1100px) { .sg-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sg-rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sg-head { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .sg-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .sg-strip::-webkit-scrollbar { display: none; }
  .sg-strip .sg-tile { flex: 0 0 62%; scroll-snap-align: start; }
  .sg-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sg-room { aspect-ratio: 1 / 1; }
  .sg-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* Room pages /gallery/<room>/ */
.sgp { background: var(--paper); }
.sgp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.sgp-crumbs a { color: var(--ink-2); }
.sgp-meta { font-size: 13px; color: var(--taupe-ink); margin: 0 0 16px; }
.sgp-moods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.sgp-moods a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font: 600 13px/1.2 var(--sans); color: var(--ink); text-decoration: none; background: #fff; }
.sgp-moods a:hover { border-color: var(--navy); }
.sgp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.sgp-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.sgp-item:target { outline: 3px solid var(--gold); }
.sgp-open { display: block; overflow: hidden; }
.sgp-open img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.sgp-open:hover img { transform: scale(1.03); }
.sgp-item figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.sgp-item figcaption b { font-weight: 600; color: var(--ink); }
.sgp-item figcaption span { font-size: 13px; color: var(--taupe-ink); }
.sgp-item .sgp-note { color: var(--muted); }
.sgp-cta { margin-top: 6px; align-self: flex-start; font-weight: 600; font-size: 14px; color: var(--navy); border-bottom: 2px solid var(--gold); text-decoration: none; }
.sgp-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; }
.sgp-pages a, .sgp-pages span { min-width: 40px; padding: 9px 12px; text-align: center; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); background: #fff; }
.sgp-pages span { background: var(--navy); color: #fff; border-color: var(--navy); }
.sgp-cta-row { margin-top: 22px; }
.sgp-more { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 36px); margin: 46px 0 14px; }
.sgp-rooms { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sgp-rooms a { display: inline-flex; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; font: 600 14px/1.2 var(--sans); }
.sgp-rooms a span { color: var(--taupe-ink); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .sg-tile img, .sg-room img, .sgp-open img { transition: none; } }
