/* ==========================================================================
   Tunas Muda — Berita Peristiwa (editorial feed, mobile-first)
   ========================================================================== */

.berita-peristiwa-page {
  --bp-navy: var(--tm-primary);
  --bp-navy-deep: var(--tm-primary-dark);
  --bp-teal: #2a9d8f;
  --bp-gold: var(--tm-secondary);
  --bp-gold-soft: var(--tm-gold-soft);
  --bp-line: rgba(29, 54, 92, 0.12);
  --bp-radius: 16px;
  --bp-shadow: 0 4px 28px rgba(12, 24, 41, 0.08);
  --bp-gap: clamp(2rem, 4vw, 3rem);
  --bp-section-pad: clamp(2.5rem, 5vw, 4rem);
}

.berita-peristiwa-page.tm-theme-bg-page,
.berita-peristiwa-page.tm-theme-bg-page .main {
  background: transparent;
}

.berita-peristiwa-page.tm-theme-bg-page .bp-page.section {
  background: transparent;
  --background-color: transparent;
}

.berita-peristiwa-page .tm-skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 100050;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--bp-navy-deep);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(15, 30, 53, 0.12);
  transition: top 0.2s ease;
}

.berita-peristiwa-page .tm-skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--bp-gold);
  outline-offset: 3px;
}

@media (min-width: 1200px) {
  .berita-peristiwa-page:not(.scrolled) #header.header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .berita-peristiwa-page:not(.scrolled) .navmenu > ul > li > a {
    color: rgba(255, 255, 255, 0.92) !important;
    background: transparent !important;
  }

  .berita-peristiwa-page:not(.scrolled) .navmenu > ul > li > a:hover,
  .berita-peristiwa-page:not(.scrolled) .navmenu > ul > li > a:focus-visible {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  .berita-peristiwa-page:not(.scrolled) .navmenu > ul > li > a.active {
    color: var(--bp-gold) !important;
    background: rgba(255, 199, 54, 0.18) !important;
  }

  .berita-peristiwa-page:not(.scrolled) .tm-header-cta {
    background: var(--bp-gold);
    color: var(--bp-navy-deep) !important;
    box-shadow: 0 4px 20px rgba(255, 199, 54, 0.35);
  }
}

.berita-peristiwa-page:not(.scrolled) #header .mobile-nav-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1199.98px) {
  .mobile-nav-active.berita-peristiwa-page #header.header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
  }

  .mobile-nav-active.berita-peristiwa-page .tm-scroll-progress {
    z-index: 9999;
  }
}

/* —— Hero (Visi & Misi / Dalam Dilema pattern) —— */
.tm-bp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  min-height: clamp(280px, 40svh, 400px);
  padding:
    calc(var(--tm-header-h, 72px) + 0.75rem + env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    clamp(0.85rem, 2vh, 1.25rem)
    max(1rem, env(safe-area-inset-left, 0px));
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.tm-bp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tm-bp-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: calc(var(--tm-header-h, 72px) + 4rem);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 24, 41, 0.82) 0%,
    rgba(12, 24, 41, 0.48) 45%,
    rgba(12, 24, 41, 0.12) 78%,
    transparent 100%
  );
}

.tm-bp-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: grayscale(0.35) contrast(1.06) brightness(0.92);
  transform: scale(1.02);
}

.tm-bp-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.tm-bp-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.22;
  background-image:
    linear-gradient(135deg, rgba(255, 199, 54, 0.08) 1px, transparent 1px),
    linear-gradient(-135deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  pointer-events: none;
}

.tm-bp-hero__inner {
  position: relative;
  z-index: 4;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  min-height: 0;
}

.tm-bp-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.tm-bp-hero__crumb {
  margin: 0 0 1.15rem;
  padding: 0;
}

.tm-bp-hero__crumb ol {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  list-style: none;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(12, 24, 41, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tm-bp-hero__crumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.tm-bp-hero__crumb a:hover {
  color: var(--bp-gold);
}

.tm-bp-hero__crumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.42);
}

.tm-bp-hero__crumb li[aria-current="page"] {
  color: var(--bp-gold);
  font-weight: 600;
}

.tm-bp-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bp-gold);
}

.tm-bp-hero h1 {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(12, 24, 41, 0.35);
  text-wrap: balance;
}

/* —— Page canvas —— */
.bp-page {
  position: relative;
  isolation: isolate;
  margin-top: clamp(-0.75rem, -2vw, -0.25rem);
  padding: var(--bp-section-pad) 0 clamp(3.5rem, 7vw, 5rem);
  overflow: hidden;
}

.bp-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tm-bp-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
}

@media (min-width: 1200px) {
  .tm-bp-content {
    max-width: 1000px;
  }
}

.tm-bp-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.tm-bp-canvas__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.tm-bp-canvas__orb--1 {
  top: 8%;
  right: -4%;
  width: min(280px, 50vw);
  height: min(280px, 50vw);
  background: rgba(42, 157, 143, 0.22);
}

.tm-bp-canvas__orb--2 {
  bottom: 12%;
  left: -6%;
  width: min(320px, 55vw);
  height: min(320px, 55vw);
  background: rgba(255, 199, 54, 0.16);
}

.tm-bp-intro {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  scroll-margin-top: calc(var(--tm-header-h, 72px) + 1.25rem);
}

.tm-bp-intro__tagline {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bp-teal);
}

.tm-bp-intro h2 {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  color: var(--bp-navy);
  line-height: 1.2;
  text-wrap: balance;
}

.tm-bp-intro__lead {
  max-width: 40rem;
  margin: 0.85rem auto 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #4f5968;
}

.tm-bp-intro__divider {
  display: block;
  width: min(88px, 28%);
  height: 3px;
  margin: 1.1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bp-teal), var(--bp-navy));
}

/* —— Year filter —— */
.tm-bp-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tm-bp-filter__btn {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--bp-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bp-navy);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--bp-shadow);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tm-bp-filter__btn:hover {
  border-color: var(--bp-teal);
  color: var(--bp-teal);
}

.tm-bp-filter__btn:focus-visible {
  outline: 2px solid var(--bp-gold);
  outline-offset: 2px;
}

.tm-bp-filter__btn.is-active {
  background: var(--bp-navy);
  border-color: var(--bp-navy);
  color: #fff !important;
}

/* —— Year sections —— */
.tm-bp-timeline {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.tm-bp-year.is-hidden {
  display: none;
}

.tm-bp-year__head {
  text-align: center;
  margin-bottom: 0.25rem;
  scroll-margin-top: calc(var(--tm-header-h, 72px) + 1.5rem);
}

.tm-bp-year__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bp-teal);
}

.tm-bp-year__head h3 {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 700;
  color: var(--bp-navy);
}

.tm-bp-year__sub {
  margin: 0.45rem 0 0;
  font-size: 0.9375rem;
  color: #5f6d7e;
}

.tm-bp-year__divider {
  display: block;
  width: min(72px, 24%);
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bp-gold), var(--bp-navy));
}

.tm-bp-story {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

/* —— Event chapters (Keanggotaan / Dalam Dilema pattern) —— */
.tm-bp-event {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 2.5vw, 1.25rem);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border-radius: calc(var(--bp-radius) + 2px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--bp-line);
  box-shadow: var(--bp-shadow);
}

.tm-bp-event__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.tm-bp-event__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: calc(var(--bp-radius) - 2px);
  overflow: hidden;
  background: #f0f3f7;
}

/* Full photo — never cropped (same rule as Keanggotaan) */
.tm-bp-event__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.tm-bp-event__media .tm-bp-meta__cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(12, 24, 41, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(12, 24, 41, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tm-bp-event__date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bp-teal);
}

.tm-bp-event__date .bi {
  font-size: 0.95rem;
  color: var(--bp-gold);
}

.tm-bp-event__title {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--bp-navy);
}

/* NOTE: Foreign-language event names (kept in original language) render in italic */
.tm-bp-event__title em {
  font-style: italic;
  font-weight: inherit;
}

.tm-bp-event__text {
  margin: 0;
  font-size: clamp(0.9375rem, 1.8vw, 1.02rem);
  line-height: 1.75;
  color: #3d4a5c;
  max-width: 65ch;
}

.tm-bp-event__text strong {
  color: var(--bp-navy);
  font-weight: 600;
}

.tm-bp-event .tm-bp-gallery {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--bp-line);
}

/* —— Side-by-side @ tablet+ (same layout for every event card) —— */
@media (min-width: 768px) {
  .tm-bp-event {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(1rem, 2.5vw, 1.5rem);
  }

  .tm-bp-event:nth-child(even) .tm-bp-event__media {
    order: 2;
  }

  .tm-bp-event:nth-child(even) .tm-bp-event__body {
    order: 1;
  }

  .tm-bp-event__media img {
    max-height: min(28rem, 58vh);
  }
}

.tm-bp-gallery__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.tm-bp-gallery__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bp-navy);
}

.tm-bp-gallery__label .bi {
  color: var(--bp-teal);
  font-size: 0.95rem;
}

.tm-bp-gallery__count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7a8f;
}

.tm-bp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.tm-bp-meta__cat {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(12, 24, 41, 0.08);
  color: var(--bp-navy);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tm-bp-meta__date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #6b7a8f;
}

/* —— Photo strip —— */
.tm-bp-gallery {
  position: relative;
}

.tm-bp-gallery__track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bp-teal) transparent;
}

.tm-bp-gallery__track::-webkit-scrollbar {
  height: 6px;
}

.tm-bp-gallery__track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--bp-teal);
}

.tm-bp-gallery__item {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(132px, 40vw, 196px);
  min-height: 5.5rem;
  scroll-snap-align: start;
  border: none;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #f0f3f7;
  transition: opacity 0.2s ease;
}

.tm-bp-gallery__item::after {
  content: "\f62c";
  font-family: "bootstrap-icons";
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(12, 24, 41, 0.72);
  color: #fff;
  font-size: 0.75rem;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.tm-bp-gallery__item:hover::after,
.tm-bp-gallery__item:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.tm-bp-gallery__item:hover {
  opacity: 0.94;
}

.tm-bp-gallery__item:focus-visible {
  outline: 2px solid var(--bp-gold);
  outline-offset: 2px;
}

.tm-bp-gallery__item img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  max-height: min(11rem, 30vh);
  object-fit: contain;
  object-position: center;
}

.tm-bp-gallery__nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.tm-bp-gallery__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--bp-navy);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tm-bp-gallery__arrow:hover {
  background: var(--bp-navy);
  color: #fff;
}

.tm-bp-gallery__arrow:focus-visible {
  outline: 2px solid var(--bp-gold);
  outline-offset: 2px;
}

/* —— Lightbox —— */
.tm-bp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(12, 24, 41, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tm-bp-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.tm-bp-lightbox__dialog {
  position: relative;
  max-width: min(92vw, 900px);
  max-height: min(85dvh, 85vh);
  border-radius: var(--bp-radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.tm-bp-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(85dvh, 85vh);
  width: auto;
  height: auto;
  margin: 0 auto;
}

.tm-bp-lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(12, 24, 41, 0.75);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.tm-bp-lightbox__close:focus-visible {
  outline: 2px solid var(--bp-gold);
  outline-offset: 2px;
}

.tm-bp-lightbox__prev,
.tm-bp-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(12, 24, 41, 0.65);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.tm-bp-lightbox__prev {
  left: 0.65rem;
}

.tm-bp-lightbox__next {
  right: 0.65rem;
}

.tm-bp-lightbox__prev:focus-visible,
.tm-bp-lightbox__next:focus-visible {
  outline: 2px solid var(--bp-gold);
  outline-offset: 2px;
}

/* —— Reveal disabled (content always visible) —— */

/* —— Mobile-first overhaul —— */
.berita-peristiwa-page .tm-bp-content.container {
  padding-left: max(var(--bs-gutter-x, 0.75rem), env(safe-area-inset-left, 0px));
  padding-right: max(var(--bs-gutter-x, 0.75rem), env(safe-area-inset-right, 0px));
}

@media (max-width: 767.98px) {
  .berita-peristiwa-page {
    --bp-section-pad: clamp(1.5rem, 5vw, 2.25rem);
  }

  .tm-bp-hero {
    min-height: clamp(220px, 34svh, 300px);
  }

  .tm-bp-hero__photo {
    object-position: center 38%;
    transform: none;
  }

  .tm-bp-filter {
    position: sticky;
    top: calc(var(--tm-header-h, 72px) + env(safe-area-inset-top, 0px));
    z-index: 20;
    padding: 0.45rem 0 0.65rem;
    margin-bottom: 0.15rem;
    background: color-mix(in srgb, #f6f8fa 90%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .tm-bp-filter__btn {
    flex: 1 1 calc(33.333% - 0.35rem);
    min-width: calc(33.333% - 0.35rem);
    padding-inline: 0.65rem;
    font-size: 0.8125rem;
  }

  .tm-bp-event {
    padding: 1rem;
    border-radius: 14px;
    gap: 0.75rem;
  }

  .tm-bp-event__media {
    border-radius: 12px;
  }

  /* Mobile: natural full image height — no cap, no crop */
  .tm-bp-event__media img {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .tm-bp-event__title {
    font-size: clamp(1.02rem, 4.5vw, 1.22rem);
    line-height: 1.35;
  }

  .tm-bp-event__text {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .tm-bp-gallery__item {
    width: clamp(128px, 42vw, 172px);
    min-height: 5rem;
  }

  .tm-bp-gallery__item img {
    max-height: min(9.5rem, 26vh);
  }

  .tm-bp-gallery__track {
    gap: 0.5rem;
    scroll-padding-inline: 0.5rem;
  }
}

@media (max-width: 374.98px) {
  .tm-bp-filter__btn {
    font-size: 0.75rem;
    padding-inline: 0.5rem;
  }

  .tm-bp-year__head h3 {
    font-size: 1.15rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .tm-bp-hero {
    min-height: auto;
    padding-bottom: 0.65rem;
  }

  .tm-bp-hero__photo {
    object-position: center 40%;
  }

  .tm-bp-lightbox__dialog,
  .tm-bp-lightbox__img {
    max-height: min(92dvh, 92vh);
  }
}

@media (min-width: 1400px) {
  .tm-bp-content {
    max-width: 1080px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .tm-bp-gallery__item::after {
    opacity: 1;
    transform: scale(1);
  }

  .tm-bp-gallery__track {
    scroll-padding-inline: 0.75rem;
    padding-inline-end: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-bp-gallery__track {
    scroll-behavior: auto;
  }

  .tm-bp-lightbox {
    transition: none;
  }

  .tm-bp-gallery__item,
  .tm-bp-gallery__item::after,
  .tm-bp-filter__btn {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .tm-bp-event__media .tm-bp-meta__cat {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 24, 41, 0.92);
  }

  .tm-bp-filter__btn:not(.is-active) {
    background: #fff;
  }
}
