/* The fixed navigation has its own space above every slideshow. */
.hero-slideshow { margin-top: calc(var(--nav-bottom, 86px) + 20px); }

/* Bright previews: photos keep their original brightness and portrait framing. */
html[data-hero-layout] .hero-slideshow { background: #faf7f2; color: #3d3833; max-width: 1440px; margin-left: auto; margin-right: auto; }
html[data-hero-layout] .hero-overlay { display: none; }
html[data-hero-layout] .hero-content { padding: 0 !important; margin: 0 !important; min-height: 0 !important; max-width: none !important; }
html[data-hero-layout] .hero-copy { background: none !important; margin: 0 !important; padding: 40px !important; align-items: center !important; }
html[data-hero-layout] .hero-eyebrow { color: #9f2855 !important; line-height: 1.6; }
html[data-hero-layout] .hero-title { color: #3d3833 !important; font-size: clamp(32px, 3.6vw, 48px) !important; }
html[data-hero-layout] .hero-description { color: #655c53 !important; }
html[data-hero-layout] .hero-contact { color: #8e2149 !important; border-color: #c992a5 !important; overflow-wrap: anywhere; }
html[data-hero-layout] .hero-slide { object-fit: contain; object-position: center; }
html[data-hero-layout] .hero-controls { background: rgba(250, 247, 242, .88); border-color: #d3cbc2; box-shadow: 0 4px 18px #3d38330c; }
html[data-hero-layout] .hero-controls button { color: #3d3833; }
html[data-hero-layout] .hero-controls button:hover { background: #eee3e6; }
html[data-hero-layout] .hero-controls button:focus-visible { outline-color: #b71e59; }
html[data-hero-layout] .hero-dots button::before { background: #bcb0a5; }
html[data-hero-layout] .hero-dots button[aria-current="true"]::before { background: #b71e59; }

/* 1: A dedicated portrait panel beside the introduction. */
html[data-hero-layout="split"] .hero-slideshow { display: grid; grid-template-columns: 44% 56%; min-height: 0; }
html[data-hero-layout="split"] .hero-slides { position: relative; inset: auto; grid-column: 2; grid-row: 1; height: clamp(540px, 72vh, 760px); background: #e9e6df; }
html[data-hero-layout="split"] .hero-content { grid-column: 1; grid-row: 1; justify-content: center; }
html[data-hero-layout="split"] .hero-controls { right: calc(28% - 147px); bottom: 18px; }

/* 2: An airy photograph with a smaller cream introduction card. */
html[data-hero-layout="spotlight"] .hero-slideshow { min-height: 630px; height: clamp(630px, 80vh, 850px); background: #e9e6df; }
html[data-hero-layout="spotlight"] .hero-slides { left: 38%; }
html[data-hero-layout="spotlight"] .hero-content { position: absolute !important; left: 32px; bottom: 40px; width: 40%; }
html[data-hero-layout="spotlight"] .hero-copy { flex: none !important; padding: 30px !important; background: #faf7f2 !important; border: 1px solid #fff; border-radius: 24px; box-shadow: 0 10px 40px #3d383309; }
html[data-hero-layout="spotlight"] .hero-title { font-size: clamp(32px, 4vw, 52px) !important; }
html[data-hero-layout="spotlight"] .hero-description { font-size: 16px !important; }
html[data-hero-layout="spotlight"] .hero-controls { right: calc(31% - 147px); bottom: 18px; }

/* 3: The introduction sits above a three-photo studio gallery. */
html[data-hero-layout="gallery"] .hero-slideshow { display: flex; flex-direction: column; min-height: 0; padding: 0 32px; }
html[data-hero-layout="gallery"] .hero-content { order: 0; }
html[data-hero-layout="gallery"] .hero-copy { justify-content: center; text-align: center; padding: 26px 20px 32px !important; }
html[data-hero-layout="gallery"] .hero-description { max-width: 640px !important; margin-left: auto !important; margin-right: auto !important; }
html[data-hero-layout="gallery"] .hero-title { max-width: 960px !important; margin-left: auto !important; margin-right: auto !important; font-size: clamp(30px, 3.8vw, 48px) !important; }
html[data-hero-layout="gallery"] .hero-actions { justify-content: center; padding-top: 20px !important; }
html[data-hero-layout="gallery"] .hero-slides { order: 1; position: relative; inset: auto; height: min(calc((100vw - 96px) * 5 / 12), 560px); }
html[data-hero-layout="gallery"] .hero-slide { display: none; }
.hero-gallery-frame { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; opacity: 0; transition: opacity 1.6s ease-in-out; }
.hero-gallery-frame.is-active { opacity: 1; }
.hero-gallery-photo { min-width: 0; height: 100%; overflow: hidden; background: #e9e6df; border-radius: 18px; }
.hero-gallery-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
html[data-hero-layout="gallery"] .hero-controls { order: 2; position: relative; right: auto; bottom: auto; align-self: center; margin: 18px 0 4px; }

@media (max-width: 700px) {
  html[data-hero-layout] .hero-slideshow { display: flex; flex-direction: column; height: auto; min-height: 0; }
  html[data-hero-layout] .hero-content { order: 0; position: relative !important; left: auto; bottom: auto; width: 100%; }
  html[data-hero-layout] .hero-copy { padding: 28px 24px !important; border: 0; border-radius: 0; box-shadow: none; }
  html[data-hero-layout] .hero-title { font-size: 32px !important; }
  html[data-hero-layout] .hero-slides { order: 1; position: relative; inset: auto; width: 100%; height: 520px; flex: none; }
  html[data-hero-layout] .hero-controls { order: 2; position: relative; inset: auto; margin: 16px auto 4px; }
  html[data-hero-layout="gallery"] .hero-slideshow { padding: 0 16px; }
  html[data-hero-layout="gallery"] .hero-slides { height: calc((100vw - 32px) * 5 / 4); }
  .hero-gallery-frame { display: block; }
  .hero-gallery-photo:not(:nth-child(2)) { display: none; }
}

@media (prefers-reduced-motion: reduce) { .hero-gallery-frame { transition: none; } }
