:root {
  /* Pool-party palette — light base, bright accents */
  --bg: #f5fbfd;
  --surface: #ffffff;
  --ink: #14323b;
  --ink-soft: #3d5b63;
  --aqua: #00a7c4;
  --aqua-deep: #007a93; /* AA-accessible on white */
  --coral: #fa4a3a;
  --sun: #ffd23f;
  --radius: 12px;
  --maxw: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.banner__title,
h2,
summary {
  font-family: "Original Surfer", cursive;

  font-weight: 400;
  letter-spacing: 0.2px;
}

a {
  color: var(--aqua-deep);
}

.main-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* ---------- Banner ---------- */
.banner {
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
  color: #ffffff;
  text-align: center;
  padding: 2.25rem 1.25rem;
}

.banner__intro {
  margin: 0 0 0.25rem;
  font-size: clamp(0.25rem, 3.4vw, 1.2rem);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  background: linear-gradient(180deg, var(--sun) 0%, 65%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--sun);
}

.banner__title {
  margin: 0;
  font-size: clamp(2rem, 9vw, 4.5rem);
  line-height: 1.1;
  overflow-wrap: break-word;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

/* ---------- Callout ---------- */
.callout {
  max-width: 720px;
  margin: 1.75rem auto 0;
  padding: 0 1.25rem;
}

.callout__text {
  margin: 0;
  background: #e8f8fb;
  color: var(--ink);
  border: 2px solid var(--aqua-deep);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 122, 147, 0.15);
}

.callout__text p {
  margin: 0;
}

.callout__text p + p {
  margin-top: 0.85rem;
  font-weight: 400;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.8rem 1.25rem;
}

h2 {
  color: var(--aqua-deep);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0 0 1rem;
}

.section--split {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section__text {
  flex: 1;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

li::marker {
  color: var(--coral);
}

/* ---------- Photos ---------- */
.photo {
  flex: 1;
  width: 100%;
  min-height: 240px;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 122, 147, 0.15);
}

.slide {
  flex: 0 0 80%;
  height: 240px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 122, 147, 0.15);
  scroll-snap-align: center;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide:focus-visible {
  outline: 3px solid var(--aqua-deep);
  outline-offset: 3px;
}

/* ---------- Details ---------- */
.details {
  display: grid;
  gap: 1rem;
}

details {
  background: var(--surface);
  border: 2px solid var(--aqua);
  border-radius: var(--radius);
  padding: 0.5rem 0.5rem;
}

details[open] {
  box-shadow: 0 8px 24px rgba(0, 122, 147, 0.12);
}

details p {
  padding-inline: 1.4rem;
}

summary {
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1.2;
  padding: 0.7rem 0;
  background: linear-gradient(180deg, var(--sun) 0%, 25%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

summary:focus-visible {
  outline: 3px solid var(--aqua-deep);
  outline-offset: 3px;
}

.details--compact {
  gap: 0.6rem;
}

.details--compact details {
  border-width: 1px;
  padding: 0.1rem 0.6rem;
}

.details--compact summary {
  font-family:
    "Nunito",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

.details--compact details p {
  margin: 0.6rem 0;
  font-size: 0.95rem;
  padding-inline: 1rem;
}

.details--compact details[open] p {
  margin-bottom: 1.5rem;
}

/* ---------- Carousel ---------- */
.carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.carousel:focus-visible {
  outline: 3px solid var(--aqua-deep);
  outline-offset: 3px;
}

.carousel__track {
  display: flex;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #ffffff;
  text-align: center;
  padding: 2rem 1.25rem;
  margin-top: 2rem;
}

.footer p {
  margin: 0;
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Larger screens (mobile-first → enhance up) ---------- */
@media (min-width: 720px) {
  .section--split {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }

  .section--reverse {
    flex-direction: row-reverse;
  }

  .photo {
    flex: 0 1 40%;
    max-width: 40%;
    min-height: 320px;
  }

  .details--compact {
    justify-items: start;
  }

  .details--compact details {
    width: 20rem;
  }

  .details--compact details[open] {
    width: 32rem;
    max-width: 100%;
  }

  .slide {
    flex-basis: 45%;
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Lightbox (full-screen modal carousel) ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(8, 28, 33, 0.92);
}

.lightbox::backdrop {
  background: rgba(8, 28, 33, 0.92);
}

.lightbox:not([open]) {
  display: none;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "figure figure"
    "prev   next";
  justify-content: center;
  align-content: center;
  gap: 1rem;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  grid-area: figure;
  justify-self: center;
  max-width: 94vw;
}

.lightbox__img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.lightbox__counter {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 1px;
}

.lightbox__close,
.lightbox__nav {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
  transition: background 0.15s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--aqua);
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
}

.lightbox__nav {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 2.25rem;
  flex-shrink: 0;
}

.lightbox__nav--prev {
  grid-area: prev;
  justify-self: end;
}

.lightbox__nav--next {
  grid-area: next;
  justify-self: start;
}

/* Desktop: switch to a single row with the buttons flanking the image */
@media (min-width: 720px) {
  .lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lightbox__figure {
    max-width: calc(100vw - 11rem);
  }

  .lightbox__img {
    max-height: 82vh;
  }

  .lightbox__nav {
    width: 4rem;
    height: 4rem;
  }
}
