.cms-section {
  position: relative;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-padding-sm {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-padding-lg {
  padding-top: 120px;
  padding-bottom: 120px;
}

.section-my-0 {
  margin-top: 0;
  margin-bottom: 0;
}
.section-my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.section-my-5 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 767.98px) {
  .section-padding {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-padding-lg {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* ─── Gallery: Swiper slider ─── */

/* Left padding mirrors Bootstrap container alignment; overflow visible for right-side peek bleed */
.gallery-swiper {
  padding-left: max(1rem, calc((100vw - 1320px) / 2 + 1rem)) !important;
  padding-bottom: 2.5rem;
  overflow: visible;
}

.gallery-swiper__slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Dot pagination */
.gallery-swiper__pagination .swiper-pagination-bullet {
  background: #555;
  opacity: 1;
}

.gallery-swiper__pagination .swiper-pagination-bullet-active {
  background: var(--jm-color-orange);
}

@media (max-width: 767.98px) {
  .gallery-swiper {
    padding-left: 1rem !important;
  }
}

/* ─── Event: Swiper slider ─── */

.event-swiper {
  padding-left: max(1rem, calc((100vw - 1320px) / 2 + 1rem)) !important;
  overflow: visible;
}

.event-swiper__slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 767.98px) {
  .event-swiper {
    padding-left: 1rem !important;
  }
}

/* ─── Event API: featured slider ─── */

.event-api-kicker {
  color: #c45a32;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.event-api-heading {
  font-family: var(--font-title, "Lora", Georgia, serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.15;
  color: #f4efe6;
}

.event-api-intro {
  color: rgba(255, 255, 255, 0.72);
  width: 100%;
}

.event-api-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.event-api-nav:hover,
.event-api-nav:focus-visible {
  background: #fff;
  color: #111;
  border-color: #fff;
  opacity: 1;
}

.event-api-nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.event-api-feature__media {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.event-api-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-api-feature__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #2a1a12 0%, #111 55%, #3a1f0b 100%);
}

.event-api-feature__body {
  padding-top: 2rem;
}

.event-api-feature__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.event-api-feature__title {
  font-family: var(--font-title, "Lora", Georgia, serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  color: #fff;
}

.event-api-feature__title::before {
  display: none;
}

.event-api-feature__subtitle {
  display: inline-flex;
  align-items: center;
  margin: 0.75rem 0 0;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #f4efe6;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.event-api-feature__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid #fff;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.event-api-feature__cta:hover,
.event-api-feature__cta:focus-visible {
  background: #f4efe6;
  border-color: #f4efe6;
  color: #111;
  text-decoration: none;
}

.event-api-feature__description {
  width: 100%;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0 0 1.35rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.event-api-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.event-api-feature__meta i {
  margin-right: 0.4rem;
  color: var(--jm-color-orange, #f7941e);
}

@media (max-width: 767.98px) {
  .event-api-head__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-api-feature__title-row {
    flex-direction: column;
  }

  .event-api-feature__media {
    aspect-ratio: 16 / 9;
  }
}

/* ─── Partner: fixed-width flex grid ─── */

.partner-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
}

.partner-grid__item a {
  max-width: 200px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-grid__item a img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
