/* SGW02 editorial photos: intrinsic proportions, scoped to these galleries. */
.sgw-photo-section .section-head { max-width: 48rem; }
.sgw-photo-section .section-head .lead { margin-bottom: 0; }
.sgw-photo-gallery { --photo-gap: clamp(1.25rem, 3vw, 2rem); --photo-width: calc((100% - var(--photo-gap)) / 2); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--photo-gap); align-items: start; }
.sgw-photo-gallery > figure { flex: 0 0 var(--photo-width); max-width: 100%; }
.sgw-photo-gallery > figure[hidden] { display: none; }
.sgw-photo-figure { margin: 0; min-width: 0; }
.sgw-photo-figure picture { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper); }
.sgw-photo-gallery img { display: block; width: 100%; height: auto; }
.sgw-photo-figure figcaption { margin-top: .65rem; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.sgw-photo-figure--portrait { grid-row: span 2; }
@media (max-width: 600px) {
  .sgw-photo-gallery { --photo-width: 100%; --photo-gap: 1.75rem; }
  .sgw-photo-figure--portrait { grid-row: auto; }
}

/* P27: a quiet, bounded photo room in the existing SGW palette. */
.page-hero--photo-selected .page-hero__bg { background-size: cover; animation-name: none; transform: none; }
.restaurant-photo-section { background: var(--paper); }
.restaurant-gallery { border-top: 1px solid rgba(66, 59, 46, .2); border-bottom: 1px solid rgba(66, 59, 46, .2); }
.restaurant-gallery__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid rgba(66, 59, 46, .2); }
.restaurant-gallery__tabs[hidden], .restaurant-gallery__panel[hidden] { display: none; }
.restaurant-gallery__tabs button { appearance: none; background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 1.1rem .2rem; min-height: 48px; font: inherit; font-size: 1.125rem; font-weight: 600; cursor: pointer; }
.restaurant-gallery__tabs button[aria-selected="true"] { color: var(--burgundy, #7c2433); border-bottom-color: currentColor; }
.restaurant-gallery__tabs button:hover { color: var(--burgundy, #7c2433); }
.restaurant-gallery__tabs button:focus, .restaurant-gallery__panel:focus-visible { outline: 3px solid var(--burgundy, #7c2433); outline-offset: 5px; }
.restaurant-gallery__panel { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.restaurant-gallery__panel h3 { margin: 0 0 1.25rem; }
.restaurant-gallery__grid { --photo-gap: 1.5rem; --photo-width: calc((100% - 2 * var(--photo-gap)) / 3); align-items: start; }
.restaurant-gallery__grid--garden { --photo-width: calc((100% - var(--photo-gap)) / 2); }
.restaurant-gallery__grid picture { border-radius: .35rem; }
.restaurant-gallery__grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.restaurant-gallery__grid figcaption { color: var(--brown-soft, #5b5145); font-size: 1.0625rem; }
@media (max-width: 760px) {
  .restaurant-gallery__grid, .restaurant-gallery__grid--garden { --photo-width: 100%; }
  .restaurant-gallery__tabs button { flex: 1; text-align: center; }
}

/* Customer-approved photo collection: same native disclosure pattern and palette. */
body[data-content-page="bildergalerie"] .sgw-photo-section { padding-top:clamp(10rem,16vw,13rem); }
.customer-photo-group { scroll-margin-top:10rem; }
.customer-gallery-index { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); justify-content: center; gap:.6rem; margin:1.5rem auto 2.5rem; max-width:76rem; }
.customer-gallery-index a { display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--burgundy,#7c2433); border-radius:var(--radius,.75rem); min-height:48px; max-width:100%; padding:.75rem 1.1rem; color:var(--burgundy,#7c2433); background:var(--creme,#f7f2e8); font-weight:600; line-height:1.4; text-align:center; text-decoration:none; }
.customer-gallery-index a:hover, .customer-gallery-index a[aria-current="location"] { background:var(--burgundy,#7c2433); color:#fff; }
.customer-photo-group { border-top:1px solid rgba(66,59,46,.2); margin:0 0 2rem; padding:1rem 0; }
.customer-photo-group summary { cursor:pointer; font-size:clamp(1.3rem,3vw,1.8rem); font-weight:600; padding:.75rem 0 1.5rem; }
.customer-photo-group summary span { font-size:1rem; font-weight:400; }
.customer-photo-group a:focus-visible,.customer-gallery-index a:focus-visible,.customer-photo-group summary:focus-visible { outline:3px solid var(--burgundy,#7c2433); outline-offset:5px; }
.customer-photo-group img { display:block; width:100%; height:auto; border-radius:var(--radius-lg); }
.customer-gallery-index a { padding:.7rem .6rem; font-size:.9375rem; }
.customer-photo-group .sgw-photo-figure figcaption { position:static; color:#493a2e; background:none; padding:.7rem .2rem; font-size:1rem; line-height:1.5; text-align:left; }
@media (max-width: 999px) { .customer-gallery-index { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width: 540px) { .customer-gallery-index { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:790px) and (max-width:1100px) {
  body[data-content-page="bildergalerie"] .nav__inner { grid-template-columns:minmax(0,1fr); gap:.35rem; }
  body[data-content-page="bildergalerie"] .brand { grid-area:1/1; justify-self:center; }
  body[data-content-page="bildergalerie"] .nav__menu-host { grid-area:2/1; }
  body[data-content-page="bildergalerie"] .nav__links { display:flex; justify-content:center; gap:.75rem; }
  body[data-content-page="bildergalerie"] .nav__categories { flex-wrap:wrap; justify-content:center; }
  body[data-content-page="bildergalerie"] .nav__cta { flex-shrink:0; }
}
