.studio-wellness { padding-block: clamp(48px, 6vw, 88px); }

.studio-wellness .section-head {
  max-width: 780px;
  margin-bottom: clamp(24px, 3.4vw, 40px);
}

.studio-wellness h2,
.studio-wellness h3 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-transform: none;
}

.studio-wellness h2 { font-size: clamp(2rem, 4vw, 3.125rem); }
.studio-wellness h3 { font-size: clamp(1.125rem, 2vw, 1.4rem); }
.studio-wellness-link { display: inline-block; margin-top: 16px; }

.studio-gallery-stage {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg-2);
  touch-action: pan-y pinch-zoom;
}

.studio-gallery-stage > img,
.studio-gallery-thumb-media > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

/* Keep the full sauna photo in the wide frame, with a garden-toned background. */
.studio-gallery-stage[data-gallery-area="sauna"] {
  position: relative;
  isolation: isolate;
  background: #dce0ca;
}

.studio-gallery-stage[data-gallery-area="sauna"]::before {
  content: '';
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: url('../assets/studio-galerie-sauna.jpg') center bottom / cover;
  filter: blur(28px);
  opacity: .35;
}

.studio-gallery img[src$="studio-galerie-sauna.jpg"] { object-fit: contain; }

.studio-gallery-stage > .studio-gallery-image {
  animation: studio-gallery-appear 200ms ease;
}

@keyframes studio-gallery-appear {
  from { opacity: .65; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-gallery-stage > .studio-gallery-image { animation: none; }
}

.studio-gallery-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 6px;
  background: var(--bg-2);
  color: var(--cocoa);
  text-align: center;
}

.studio-gallery-stage .studio-gallery-placeholder strong {
  color: var(--green);
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
}

.studio-gallery-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.studio-gallery-nav[hidden],
.studio-gallery-caption a[hidden] { display: none; }

.studio-gallery-thumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 48px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--green);
  text-align: left;
  cursor: pointer;
}

.studio-gallery-thumb[aria-pressed="true"] { border-color: var(--green); }
.studio-gallery-thumb:hover { background: var(--bg-2); }
.studio-gallery-thumb:focus-visible { outline-offset: -2px; outline-color: var(--gold-ink); }

.studio-gallery-thumb-media {
  display: grid;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  background: var(--bg-2);
  font-size: .8rem;
}

.studio-gallery-thumb-title {
  display: block;
  margin: 5px 3px 2px;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.studio-gallery-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--taupe);
}

.studio-gallery-copy p { margin-top: 6px; color: var(--cocoa); }

.studio-gallery-rotation {
  padding: .55rem .85rem;
  border: 1px solid var(--taupe);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font: inherit;
  cursor: pointer;
}


@media (max-width: 640px) {
  .studio-gallery-nav {
    grid-template-columns: none;
    grid-auto-columns: clamp(116px, 31vw, 136px);
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .studio-gallery-caption { margin-top: 16px; padding-top: 14px; }
}
