/* Portal V46.6.18 — public Activities gallery with natural-proportion carousel media. */

.public-activities-page {
  color: var(--ink);
  background: #f4f8f8;
}

.public-activities-page main {
  min-height: 70vh;
}

.activity-page-hero,
.activity-event-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(245, 196, 105, .2) 0 8%, transparent 8.5%),
    radial-gradient(circle at 88% 18%, transparent 0 15%, rgba(255, 255, 255, .08) 15.3% 16%, transparent 16.3%),
    linear-gradient(125deg, #073f49 0%, #0b5965 58%, #137580 100%);
}

.activity-page-hero::after,
.activity-event-hero::after {
  position: absolute;
  right: -150px;
  bottom: -250px;
  width: 540px;
  height: 540px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 68px rgba(255, 255, 255, .025), 0 0 0 145px rgba(255, 255, 255, .018);
}

.activity-page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  gap: 62px;
  align-items: center;
  padding-block: 76px;
}

.activity-page-intro,
.activity-event-hero-copy {
  min-width: 0;
}

.activity-page-intro .eyebrow,
.activity-event-hero .eyebrow {
  color: #ffd680;
}

.activity-page-intro h1,
.activity-event-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.activity-page-intro > p:last-of-type,
.activity-event-hero-copy > p {
  max-width: 690px;
  margin: 24px 0 0;
  color: #e6f2f3;
  font-size: 1.05rem;
  line-height: 1.72;
}

.activity-page-stats,
.activity-event-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.activity-page-stats span,
.activity-event-counts span {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  padding: 9px 13px;
  color: #edf8f9;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}

.activity-page-stats strong,
.activity-event-counts strong {
  color: #ffd680;
  font-size: 1rem;
}

.activity-feature-video {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #061f24;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(2, 26, 31, .4);
}

.activity-feature-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #061f24;
}

.activity-feature-play {
  border-radius: 26px;
}

.activity-timeline-section,
.activity-gallery-section {
  padding: 88px 0 104px;
}

.activity-section-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.activity-section-heading h2 {
  margin: 0;
  color: var(--teal-900);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.activity-order-chip {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #744900;
  background: #fff1cf;
  border: 1px solid #edd596;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.activity-event-list {
  display: grid;
  gap: 28px;
}

.activity-event-card {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  min-width: 0;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid #c9dadd;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(5, 54, 63, .08);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.activity-event-card:hover,
.activity-event-card:focus-visible {
  transform: translateY(-5px);
  border-color: #82adb4;
  box-shadow: 0 24px 54px rgba(5, 54, 63, .15);
}

.activity-event-card:focus-visible {
  outline: 4px solid rgba(245, 196, 105, .72);
  outline-offset: 3px;
}

.activity-event-cover {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: #dce9ea;
}

.activity-event-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.activity-event-card:hover .activity-event-cover img {
  transform: scale(1.025);
}

.activity-event-date-chip {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 9px 12px;
  color: #fff;
  background: rgba(4, 48, 56, .91);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  font-size: .78rem;
  font-weight: 820;
}

.activity-event-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 38px 42px;
}

.activity-event-card-copy .eyebrow {
  margin-bottom: 10px;
}

.activity-event-card-copy h3 {
  margin: 0;
  color: var(--teal-900);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.activity-event-card-copy > p {
  margin: 17px 0 0;
  color: #4c6268;
  line-height: 1.65;
}

.activity-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.activity-event-meta span {
  padding: 7px 10px;
  color: #31545b;
  background: #edf5f5;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 760;
}

.activity-event-open {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  align-self: flex-start;
  margin-top: 27px;
  color: var(--teal-800);
  font-weight: 820;
}

.activity-event-hero {
  padding: 58px 0 72px;
}

.activity-event-hero > .shell {
  position: relative;
  z-index: 1;
}

.activity-back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: #eff9fa;
  font-size: .88rem;
  font-weight: 780;
  text-decoration: none;
}

.activity-back-link:hover,
.activity-back-link:focus-visible {
  color: #ffd680;
  text-decoration: underline;
}

.activity-event-hero-copy {
  max-width: 880px;
}

.activity-event-hero h1 {
  font-size: clamp(2.55rem, 5vw, 4.5rem);
}

.activity-gallery-help {
  max-width: 390px;
  margin: 0;
  color: #536a70;
  text-align: right;
  line-height: 1.5;
}

.activity-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.activity-media-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #dce9ea;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 9px 24px rgba(5, 54, 63, .1);
}

.activity-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}

.activity-media-card:hover img {
  transform: scale(1.04);
  filter: brightness(.88);
}

.activity-media-card:focus-visible {
  outline: 4px solid var(--gold-500);
  outline-offset: 3px;
}

.activity-media-type {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 9px;
  color: #fff;
  background: rgba(4, 48, 56, .91);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 820;
  text-transform: uppercase;
}

.activity-media-card[data-kind="video"]::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  content: "▶";
  transform: translate(-50%, -50%);
  place-items: center;
  padding-left: 3px;
  color: #073f49;
  background: rgba(255, 214, 128, .95);
  border: 3px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  box-shadow: 0 7px 24px rgba(0, 0, 0, .3);
  pointer-events: none;
}

.activity-loading,
.activity-error,
.activity-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px;
  color: #4c6268;
  background: #fff;
  border: 1px solid #c9dadd;
  border-radius: 16px;
}

.activity-error {
  color: #842e2e;
  background: #fff4f4;
  border-color: #e2b9b9;
}

.activity-lightbox {
  width: min(1200px, calc(100% - 32px));
  max-width: none;
  height: min(900px, calc(100% - 32px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  background: #061f24;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.activity-lightbox::backdrop {
  background: rgba(1, 15, 18, .88);
  backdrop-filter: blur(8px);
}

.activity-lightbox-panel {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.activity-lightbox-topbar,
.activity-lightbox-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  color: #fff;
  background: #073f49;
}

.activity-lightbox-topbar > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.activity-lightbox-topbar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-lightbox-position {
  color: #c8dde0;
  font-size: .78rem;
}

.activity-lightbox-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  place-items: center;
  font-size: 1.6rem;
}

.activity-lightbox-stage {
  display: grid;
  min-height: 0;
  padding: 20px;
  place-items: center;
  overflow: hidden;
  background: #03191d;
}

.activity-lightbox-stage img,
.activity-lightbox-stage video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

.activity-lightbox-stage video {
  background: #000;
}

.activity-carousel-button,
.activity-download-button {
  display: inline-flex;
  min-width: 132px;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  color: #fff;
  background: #0b6875;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}

.activity-download-button {
  color: #3b2800;
  background: #ffd680;
  border-color: #ffd680;
}

.activity-carousel-button:hover,
.activity-carousel-button:focus-visible,
.activity-download-button:hover,
.activity-download-button:focus-visible,
.activity-lightbox-close:hover,
.activity-lightbox-close:focus-visible {
  filter: brightness(1.08);
  outline: 3px solid rgba(255, 214, 128, .75);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .activity-page-hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 64px;
  }

  .activity-page-intro {
    max-width: 780px;
  }

  .activity-event-card {
    grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  }

  .activity-event-card-copy {
    padding: 30px;
  }

  .activity-event-cover {
    min-height: 280px;
  }

  .activity-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .activity-page-hero-grid {
    gap: 34px;
    padding-block: 52px;
  }

  .activity-page-intro h1,
  .activity-event-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.45rem);
  }

  .activity-timeline-section,
  .activity-gallery-section {
    padding: 64px 0 76px;
  }

  .activity-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .activity-gallery-help {
    max-width: none;
    text-align: left;
  }

  .activity-event-card {
    grid-template-columns: 1fr;
  }

  .activity-event-cover {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .activity-event-card-copy {
    padding: 26px 24px 30px;
  }

  .activity-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .activity-media-card {
    border-radius: 13px;
  }

  .activity-lightbox {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  .activity-lightbox-stage {
    padding: 10px;
  }

  .activity-lightbox-controls {
    gap: 8px;
    padding: 12px 10px max(12px, env(safe-area-inset-bottom));
  }

  .activity-carousel-button,
  .activity-download-button {
    min-width: 0;
    min-height: 46px;
    flex: 1 1 0;
    padding: 8px;
    font-size: .76rem;
  }
}

@media (max-width: 430px) {
  .activity-page-stats,
  .activity-event-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .activity-page-stats span,
  .activity-event-counts span {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding-inline: 7px;
    text-align: center;
  }

  .activity-media-type {
    right: 7px;
    bottom: 7px;
    padding: 5px 7px;
    font-size: .62rem;
  }

  .activity-media-card[data-kind="video"]::before {
    width: 44px;
    height: 44px;
    font-size: .82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activity-event-card,
  .activity-event-cover img,
  .activity-media-card img {
    transition: none;
  }
}

@media print {
  .public-activities-page .site-header,
  .public-activities-page .site-footer,
  .activity-feature-video,
  .activity-lightbox,
  .activity-gallery-help {
    display: none !important;
  }

  .activity-page-hero,
  .activity-event-hero {
    color: #102f35;
    background: #fff;
  }

  .activity-page-intro h1,
  .activity-event-hero h1,
  .activity-page-intro > p:last-of-type,
  .activity-event-hero-copy > p {
    color: #102f35;
  }

  .activity-media-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
