/* One-photo hall carousels: 2026-09-17 */
.space-section > .section-heading {
  margin-bottom: 30px;
}
.space-section .section-heading h2 {
  font-size: clamp(32px, 3.2vw, 46px);
}
.space-list {
  gap: 20px;
}
.space-card,
.v3 .space-card {
  display: grid;
  grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr);
  gap: 28px;
  min-height: 390px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper, #fff) 96%, var(--accent) 4%);
  align-items: center;
}
.space-copy h3 {
  font-size: clamp(28px, 2.5vw, 36px);
  margin: 7px 0 14px;
}
.space-copy > p:not(.eyebrow) {
  max-width: 46ch;
  margin-bottom: 20px;
}
.space-card:nth-child(even),
.v1 .space-card:nth-child(even),
.v2 .space-card:nth-child(even),
.v3 .space-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, .82fr);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.space-card:nth-child(even) .space-copy {
  order: 2;
}
.space-card:nth-child(even) .mini-gallery {
  order: 1;
}
.space-card:nth-child(even) .eyebrow {
  color: rgba(255, 255, 255, .78);
}
.space-card:nth-child(even) .link {
  color: #fff;
}
.space-card:nth-child(even) .button {
  color: var(--accent);
  background: #fff;
  border-color: #fff;
}
.space-card:nth-child(even) .button:hover {
  background: rgba(255, 255, 255, .9);
  filter: none;
}
.space-card:nth-child(even) a:focus-visible,
.space-card:nth-child(even) button:focus-visible {
  outline-color: #fff;
}
.mini-gallery[data-hall-carousel] {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 10%, var(--paper));
  isolation: isolate;
}
.mini-gallery[data-hall-carousel] > figure {
  position: absolute;
  inset: 0;
  margin: 0;
}
.mini-gallery[data-hall-carousel] .mini-photo,
.mini-gallery[data-hall-carousel] .mini-photo img {
  width: 100%;
  height: 100%;
}
.mini-gallery[data-hall-carousel] .mini-photo img {
  aspect-ratio: auto;
  object-fit: cover;
}
.hall-carousel-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 31, 23, .72);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.hall-carousel-arrow:hover {
  background: rgba(12, 31, 23, .9);
  transform: translateY(-50%) scale(1.04);
}
.hall-carousel-arrow svg {
  width: 22px;
  height: 22px;
}
.hall-carousel-prev { left: 16px; }
.hall-carousel-next { right: 16px; }
.hall-carousel-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  min-width: 58px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(12, 31, 23, .72);
  font: 600 14px/1.2 Manrope, Arial, sans-serif;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.mini-gallery.is-single .hall-carousel-arrow {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .hall-carousel-arrow,
  .mini-gallery[data-hall-carousel] .mini-photo img {
    transition: none;
  }
}
@media (max-width: 980px) {
  .space-card,
  .v1 .space-card:nth-child(even),
  .v2 .space-card:nth-child(even),
  .v3 .space-card,
  .v3 .space-card:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .space-card:nth-child(even) .space-copy,
  .space-card:nth-child(even) .mini-gallery {
    order: initial;
  }
  .mini-gallery[data-hall-carousel] {
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 640px) {
  .space-section > .section-heading {
    margin-bottom: 22px;
  }
  .space-card,
  .v3 .space-card {
    gap: 22px;
    padding: 20px;
  }
  .mini-gallery[data-hall-carousel] {
    aspect-ratio: 4 / 3;
  }
  .hall-carousel-arrow {
    width: 44px;
    height: 44px;
  }
  .hall-carousel-prev { left: 10px; }
  .hall-carousel-next { right: 10px; }
  .hall-carousel-count {
    right: 10px;
    bottom: 10px;
  }
}

