:root {
  --pink: #e4378a;
  --ink: #3b2b46;
  --sky: #d7eefb;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 80% 40% at 15% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(ellipse 50% 30% at 90% 8%, rgba(255, 255, 255, 0.75), transparent 70%),
    linear-gradient(180deg, var(--sky), #ffffff 38%);
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.banner {
  display: block;
  width: 100%;
  height: clamp(116px, 22vh, 200px);
  object-fit: contain;
  object-position: center;
}

.lede {
  margin: 4px 0 8px;
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 700;
}

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #f6fbfd;
  box-shadow: 0 18px 46px rgba(70, 96, 120, 0.16);
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: white;
  transition: opacity 0.45s ease;
}

.slide.is-on {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.photo {
  width: 100%;
  height: 100%;
}

.photo.fill {
  object-fit: cover;
  object-position: center 28%;
}

.photo.fit,
.photo.whole { object-fit: contain; }

.photo.portrait {
  object-fit: cover;
  object-position: 68% 30%;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 12px 72px 58px;
}

.trio img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.caption {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  max-width: calc(100% - 120px);
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  text-align: center;
}

.nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(40, 40, 60, 0.16);
}

.nav.prev { left: 12px; }
.nav.next { right: 12px; }

.tools {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dots { display: flex; gap: 8px; }

.dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(59, 43, 70, 0.28);
  cursor: pointer;
}

.dots button[aria-current="true"] { background: var(--pink); }

.pause {
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.contact {
  display: flex;
  justify-content: center;
  margin: 10px 0 0;
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(228, 55, 138, 0.28);
}

.contact a:focus-visible,
.nav:focus-visible,
.pause:focus-visible,
.dots button:focus-visible {
  outline: 3px solid #3b2b46;
  outline-offset: 3px;
}

.contact img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  background: white;
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 12px, 1080px); }
  .photo.fill,
  .photo.whole { object-fit: contain; object-position: center; }
  .photo.portrait { object-fit: cover; object-position: center 18%; }
  .trio { gap: 6px; padding: 8px 8px 64px; }
  .caption { bottom: 10px; max-width: calc(100% - 28px); font-size: 0.95rem; }
  .tools { left: 50%; bottom: 48px; transform: translateX(-50%); }
  .contact a { font-size: 1.05rem; }
}

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