@import './player.css';

.studio-gallery, .reformer-booking-footer { background: #20251f; color: #faf9f1; }
.studio-gallery { padding-block: clamp(2.25rem, 4.6vw, 5rem); }
.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-bottom: clamp(1.3rem, 2.7vw, 2.8rem);
}
.gallery-heading h2 {
  scroll-margin-block-start: .5rem;
  margin: 0;
  font-size: clamp(2.05rem, 4.45vw, 4.85rem);
  font-weight: 450;
  line-height: 1.02;
  letter-spacing: -.062em;
}
.gallery-heading p { margin: 0; font-size: .9rem; color: #c7cbbd; }
.gallery-heading p span { padding-inline: .16rem; }
.gallery-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(15rem, .85fr);
  align-items: start;
  gap: clamp(1.8rem, 4.25vw, 5rem);
}
.gallery-item { color: inherit; text-decoration: none; min-inline-size: 0; }
.gallery-lead { display: block; }
.gallery-preview {
  position: relative;
  display: block;
  min-width: 0;
  background: #343a31;
  overflow: hidden;
}
.gallery-preview img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.gallery-lead .gallery-preview img { height: auto; }
.gallery-item-text { display: flex; min-width: 0; }
.gallery-lead .gallery-item-text { justify-content: space-between; align-items: baseline; gap: .8rem; margin-top: .75rem; }
.gallery-item-title { font-size: clamp(1.06rem, 1.45vw, 1.5rem); line-height: 1.2; letter-spacing: -.035em; }
.gallery-item-text small { flex: none; color: #c4c9b9; font-size: .78rem; line-height: 1.3; }
.gallery-media-icon {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  display: grid;
  place-items: center;
  inline-size: 2rem;
  block-size: 2rem;
  color: #252921;
  background: #f7f6ee;
  border-radius: 50%;
  pointer-events: none;
}
.gallery-item[data-kind="photo"] .gallery-media-icon { font-size: 1.2rem; }
.gallery-item[data-kind="video"] .gallery-media-icon::before {
  content: '';
  margin-left: 2px;
  border-block: .31rem solid transparent;
  border-left: .48rem solid currentColor;
}
.gallery-strip { display: grid; min-width: 0; margin: 0; padding: 0; list-style: none; }
.gallery-strip li { min-width: 0; border-top: 1px solid #52594c; }
.gallery-strip li:last-child { border-bottom: 1px solid #52594c; }
.gallery-strip .gallery-item {
  display: grid;
  grid-template-columns: clamp(5.3rem, 8.4vw, 8.75rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.8rem, 1.5vw, 1.5rem);
  padding-block: .48rem;
}
.gallery-strip .gallery-preview { aspect-ratio: 1.6; }
.gallery-strip .gallery-item-text { flex-direction: column-reverse; align-items: start; gap: .35rem; }
.gallery-strip .gallery-media-icon { inline-size: 1.55rem; block-size: 1.55rem; right: .25rem; bottom: .25rem; }
.gallery-strip [data-kind="photo"] .gallery-media-icon { display: none; }
.gallery-item:is(:hover, :focus-visible) .gallery-item-title { text-decoration: underline; text-underline-offset: .18em; }
.gallery-item:focus-visible { outline: 2px solid #f7f6ee; outline-offset: 2px; }
.gallery-scroll { display: none; }

.gallery-lightbox {
  --viewer-paper: #f7f6ee;
  width: min(71rem, calc(100% - 2rem));
  max-width: none;
  height: min(52rem, calc(100dvh - 2rem));
  max-height: none;
  padding: 0;
  border: 1px solid #51574c;
  color: var(--viewer-paper);
  background: #191d18;
  overflow: hidden;
}
.gallery-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.gallery-lightbox::backdrop { background: rgb(10 12 10 / .87); }
body:has(.gallery-lightbox[open]) { overflow: hidden; }
.gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-inline: clamp(.65rem, 2vw, 1.5rem);
  border-bottom: 1px solid #40463c;
}
.gallery-position { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; font-size: .85rem; }
.gallery-position span:first-child { color: #cad0c0; }
.gallery-position span:last-child { font-variant-numeric: tabular-nums; }
.gallery-tools, .gallery-scroll { align-items: center; gap: .25rem; }
.gallery-tools { display: flex; }
.gallery-tools button, .gallery-scroll button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 .2rem;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.gallery-tools button:not([data-gallery-close]), .gallery-scroll button { font: 1.4rem/1 Arial, sans-serif; }
.gallery-tools [data-gallery-close] { margin-left: .45rem; padding-left: .9rem; font-size: .88rem; }
.gallery-tools [data-gallery-close] span { margin-left: .4rem; font: 1.3rem/1 Arial, sans-serif; }
.gallery-tools button:hover, .gallery-scroll button:hover { background-color: #3c4237; }
.gallery-tools button:focus-visible, .gallery-scroll button:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.gallery-lightbox-body { min-width: 0; min-height: 0; display: grid; place-items: center; background: #11140f; }
.gallery-lightbox-photo { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; touch-action: pan-y pinch-zoom; }
.gallery-lightbox-caption { display: grid; gap: .28rem; padding: clamp(.75rem, 1.7vw, 1.5rem); border-top: 1px solid #40463c; }
.gallery-lightbox-caption h3 { margin: 0; font-weight: 500; font-size: clamp(1.12rem, 2vw, 1.7rem); line-height: 1.14; letter-spacing: -.035em; }
.gallery-lightbox-caption p { max-width: 65ch; margin: 0; color: #cdd2c4; font-size: .9rem; line-height: 1.35; }

@media (max-width: 47rem) {
  .gallery-heading { margin-bottom: 1.05rem; }
  .gallery-heading h2 { flex-basis: 100%; }
  .gallery-spread { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .gallery-strip {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    padding: .15rem 0 .55rem;
    scrollbar-color: #89917e #343a31;
    scrollbar-width: thin;
  }
  .gallery-strip li { flex: 0 0 clamp(7rem, 39%, 15rem); border: 0; scroll-snap-align: start; }
  .gallery-strip li:last-child { border: 0; }
  .gallery-strip .gallery-item { display: block; padding: 0; }
  .gallery-strip .gallery-preview { aspect-ratio: 1.42; }
  .gallery-strip .gallery-item-text { gap: .16rem; margin-top: .42rem; }
  .gallery-strip .gallery-item-title { font-size: .96rem; }
  .gallery-strip .gallery-item:focus-visible { outline-offset: -2px; }
  .gallery-scroll { display: flex; margin: -.5rem 0 -.5rem auto; }
  .gallery-scroll button:disabled { opacity: .4; cursor: default; }
  .gallery-lightbox { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; }
  .gallery-bar { padding-inline: .55rem; min-height: 50px; }
  .gallery-tools { gap: 0; }
  .gallery-tools [data-gallery-close] { margin-left: .15rem; padding-left: .35rem; }
}
@media (max-height: 31rem) {
  .gallery-lightbox { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; }
  .gallery-bar { min-height: 44px; }
  .gallery-lightbox-caption { min-height: 0; max-height: 20dvh; overflow-y: auto; padding: .45rem .85rem; }
  .gallery-lightbox-caption h3 { font-size: 1.03rem; }
  .gallery-lightbox-caption p { font-size: .8rem; }
}
