/* Preview embed styles — complements hub styles.css */
.sandbox-banner {
  background: var(--sea-deep);
  color: var(--paper);
  text-align: center;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
}
.sandbox-banner a { color: #f0d5c4; }
.preview-main { max-width: 42rem; }
.preview-main .embed-hero {
  margin: 0 -1rem 1.5rem;
  max-width: none;
  width: calc(100% + 2rem);
}
@media (min-width: 720px) {
  .preview-main .embed-hero {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
  }
}
.embed-hero img,
.embed-figure img,
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #e8e0d4;
}
.carousel-slide img {
  display: block;
  max-width: 100%;
  max-height: min(54vh, 480px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
  cursor: zoom-in;
}
.embed-figure,
.gallery-item,
.carousel-slide {
  margin: 1.25rem 0;
}
.embed-figure figcaption,
.gallery-item figcaption,
.carousel-slide figcaption {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.embed-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}
@media (min-width: 560px) {
  .embed-gallery { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 840px) {
  .embed-gallery { grid-template-columns: 1fr 1fr 1fr; }
}
.embed-carousel {
  margin: 1.5rem 0;
  outline: none;
}
.embed-carousel--hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}
.embed-carousel--hero .carousel-track {
  aspect-ratio: auto;
  min-height: min(52vh, 420px);
  max-height: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper) 70%, #e8e0d4);
  min-height: 280px;
  aspect-ratio: auto;
}
.carousel-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.carousel-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.65rem;
}
.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
}
.carousel-dot.is-active { background: var(--sea); }
.embed-callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--clay);
  background: rgba(196, 92, 38, 0.06);
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
  border-radius: 0 8px 8px 0;
}
.embed-callout p { margin: 0.35rem 0 0; }
.embed-map { margin: 1.5rem 0; }
.map-canvas {
  height: min(52vh, 380px);
  min-height: 240px;
  border-radius: 8px;
  border: 1px solid var(--line);
  z-index: 1;
}
.map-note {
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}
.program-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.program-list li {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}
.program-list h2 {
  margin: 0;
  font-size: 1.35rem;
}
@media (max-width: 640px) {
  header .brand-bar { flex-direction: column; align-items: flex-start; }
}
.carousel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(27, 36, 32, 0.75);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.carousel-lightbox.is-open { opacity: 1; }
.carousel-lightbox figure {
  margin: 0;
  max-width: min(100%, 56rem);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.25s ease;
}
.carousel-lightbox.is-open figure { transform: scale(1); }
.carousel-lightbox img {
  max-width: 100%;
  max-height: min(85vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.carousel-lightbox figcaption {
  margin-top: 0.75rem;
  color: var(--paper);
}
.carousel-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(246, 241, 232, 0.92);
  color: var(--ink);
  cursor: pointer;
}
