.celebration-section {
  scroll-margin-top: 110px;
}

.celebration-section .s-title {
  font-size: 36px;
  letter-spacing: 0;
}

.celebration-section .s-sub {
  max-width: 72ch;
}

.onam-section {
  background: #fff;
}

.onam-feature {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  align-items: stretch;
  gap: 32px;
  margin-top: 32px;
}

.onam-film,
.celebration-photo {
  min-width: 0;
  margin: 0;
}

.onam-film video,
.onam-film iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  border: 0;
  border-radius: 8px;
}

.celebration-photo-link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f0;
  cursor: zoom-in;
}

.celebration-photo-link:focus-visible {
  outline: 3px solid #a67924;
  outline-offset: 4px;
}

.celebration-photo picture,
.celebration-photo img {
  display: block;
  width: 100%;
}

.onam-feature-photo {
  display: flex;
  flex-direction: column;
}

.onam-feature-photo .celebration-photo-link {
  flex: 1;
  min-height: 0;
}

.onam-feature-photo img {
  height: 100%;
  object-fit: cover;
}

.celebration-caption {
  margin: 0;
  padding-top: 10px;
  color: #43534d;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.onam-duration {
  display: inline-block;
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}

.celebration-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  margin-top: 36px;
}

.celebration-gallery .celebration-photo {
  display: flex;
  flex-direction: column;
}

.celebration-gallery .celebration-photo-link {
  aspect-ratio: 3 / 4;
}

.celebration-gallery picture,
.celebration-gallery img {
  height: 100%;
  object-fit: cover;
}

.celebration-gallery .celebration-photo--wide {
  grid-column: span 2;
}

.celebration-gallery .celebration-photo--wide .celebration-photo-link {
  flex: 1;
  aspect-ratio: auto;
}

.celebration-gallery .celebration-photo--poster .celebration-photo-link {
  aspect-ratio: 4 / 5;
}

@media (max-width: 900px) {
  .celebration-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .celebration-gallery .celebration-photo--wide {
    grid-column: span 2;
  }

  .celebration-gallery .celebration-photo--wide .celebration-photo-link {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .onam-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .onam-film {
    width: min(100%, 330px);
    justify-self: center;
  }

  .onam-feature-photo .celebration-photo-link {
    flex: none;
  }

  .onam-feature-photo img {
    height: auto;
  }
}

@media (max-width: 600px) {
  .celebration-section .s-title {
    font-size: 28px;
  }

  .celebration-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .celebration-gallery .celebration-photo--wide {
    grid-column: auto;
  }

  .celebration-gallery .celebration-photo-link {
    aspect-ratio: auto;
  }

  .celebration-gallery .celebration-photo--wide .celebration-photo-link {
    aspect-ratio: 16 / 9;
  }

  .celebration-gallery img {
    height: auto;
  }
}

/* ─── Events & Student Life mosaic ─── */

.event-life-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 20px;
  margin-top: 36px;
}

.event-life-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f0;
}

.event-life-item picture,
.event-life-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-life-item img {
  transition: transform 0.4s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .event-life-item:hover img {
    transform: scale(1.035);
  }
}

.event-life-item--wide {
  grid-column: span 2;
}

.event-life-item--tall {
  grid-row: span 2;
}

.event-life-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 28px 14px 10px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 24, 20, 0.72), rgba(10, 24, 20, 0));
}

@media (max-width: 900px) {
  .event-life-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }

  .event-life-item:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .event-life-gallery {
    grid-auto-rows: 140px;
    gap: 12px;
  }
}

/* ─── CNE topic list disclosure ─── */

#cne-topics .cne-extra {
  display: none;
}

#cne-topics.is-open .cne-extra {
  display: table-row;
}

/* ─── National Conference highlight (CNE section) ─── */

.conference-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 32px;
  align-items: center;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #e7ece9;
}

.conference-highlight h3 {
  margin: 0 0 12px;
}

.conference-highlight-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 12px;
  background: #0f3326;
}

@media (max-width: 760px) {
  .conference-highlight {
    grid-template-columns: minmax(0, 1fr);
  }

  .conference-highlight-video {
    max-width: 300px;
  }
}
