/* =========================================================
   OUR EVENTS PAGE
   ========================================================= */

/* ----- Banner ----- */
.oe-banner {
  position: relative;
  width: 100%;
  min-height: 700px;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../images/our-events/our_events_banner.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oe-banner__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 768px;
}

.oe-banner__title-group {
  position: relative;
  width: 710px;
  height: 120px;
}

.oe-banner__title {
  position: absolute;
  inset: 0;
  font-family: "Akira Expanded", "Arial Black", sans-serif;
  font-weight: 800;
  font-size: 80px;
  line-height: 120px;
  text-transform: capitalize;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oe-banner__title--blur {
  color: rgba(194, 27, 181, 0.6);
  filter: blur(15px);
}

.oe-banner__subtitle {
  font-family: "FONTSPRING DEMO - Proxima Nova Medium", "Proxima Nova", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: #ffffff;
  text-align: center;
  width: 768px;
  margin: 0;
}

/* ----- Calendar Section ----- */
.oe-cal-section {
  padding: 64px 80px 0 80px;
}

.oe-cal-section__inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ----- Calendar widget ----- */
.oe-calendar {
  width: 796px;
  flex-shrink: 0;
  filter: drop-shadow(0px 0.615px 0.615px rgba(0, 0, 0, 0.12));
}

.oe-cal-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13.03px;
  padding: 0 6.15px 19.67px 0;
}

.oe-cal-nav__btn {
  width: 26.06px;
  height: 26.06px;
  background: #000000;
  border: none;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.oe-cal-nav__btn:hover {
  background: var(--color-purple);
}

.oe-cal-nav__label {
  font-family: "FONTSPRING DEMO - Proxima Nova", "Proxima Nova", sans-serif;
  font-weight: 700;
  font-size: 19.55px;
  line-height: 24px;
  color: #000000;
}

/* Calendar grid */
.oe-cal-grid {
  display: flex;
  flex-direction: column;
}

.oe-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 113.71px);
  background: #fafafa;
}

.oe-cal-weekdays span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26.75px;
  font-family: "FONTSPRING DEMO - Proxima Nova Medium", "Proxima Nova", sans-serif;
  font-weight: 500;
  font-size: 9.83px;
  line-height: 12px;
  color: #ffffff;
  background: var(--color-purple, #9728b8);
  border: 0.615px solid #cccbcb;
}

.oe-cal-weekdays span:first-child {
  border-radius: 8.69px 0 0 0;
}

.oe-cal-weekdays span:last-child {
  border-radius: 0 8.69px 0 0;
}

.oe-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 113.71px);
  height: 591.93px;
  grid-auto-rows: 1fr;
}

/* Day cell base */
.oe-cal-day {
  width: 113.71px;
  padding: 7.38px;
  border: 0.615px solid #cccbcb;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  cursor: default;
}

.oe-cal-day:nth-last-child(7) {
  border-radius: 0 0 0 13.03px;
}

.oe-cal-day:last-child {
  border-radius: 0 0 13.03px 0;
}

.oe-cal-day--other-month {
  background: #f8f8f8;
}

.oe-cal-day--other-month .oe-cal-day__num {
  opacity: 0.4;
}

.oe-cal-day--past {
  background: #f8f8f8;
}

.oe-cal-day--past .oe-cal-day__num {
  opacity: 0.4;
}

.oe-cal-day--today {
  border: 1.086px solid var(--color-purple);
}

.oe-cal-day--selected:not(.oe-cal-day--event):not(.oe-cal-day--event-blue) {
  background: rgba(151, 40, 184, 0.08);
  border-color: var(--color-purple);
}

.oe-cal-day--event {
  cursor: pointer;
}

.oe-cal-day--clickable {
  cursor: pointer;
}

.oe-cal-day--clickable:hover {
  background: rgba(151, 40, 184, 0.05);
}

.oe-cal-day--event .oe-cal-day__num {
  color: #ffffff;
  font-family: "FONTSPRING DEMO - Proxima Nova", "Proxima Nova", sans-serif;
  font-weight: 400;
}

/* Light-background event cells (yellow, green) need dark text */
.oe-cal-day--event-light .oe-cal-day__num,
.oe-cal-day--event-light .oe-cal-day__event-label {
  color: #000000;
}

.oe-cal-day__num {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 12.91px;
  line-height: 16px;
  color: #000000;
  align-self: stretch;
}

.oe-cal-day__event-label {
  font-family: "FONTSPRING DEMO - Proxima Nova", "Proxima Nova", sans-serif;
  font-weight: 700;
  font-size: 9.83px;
  line-height: 12px;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- Featured Event Panel ----- */
.oe-featured {
  width: 404px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding-top: 48px;
}

.oe-featured__badge {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px;
  width: 184px;
  height: 35px;
  background: rgba(25, 77, 147, 0.2);
  border-radius: 100px;
  flex-shrink: 0;
  align-self: flex-start;
  font-family: "FONTSPRING DEMO - Proxima Nova", "Proxima Nova", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  color: #194d93;
  white-space: nowrap;
}

.oe-featured__badge--event {
  background: rgba(151, 40, 184, 0.2);
  color: var(--color-purple);
}

.oe-featured__badge--today {
  background: rgba(250, 93, 62, 0.12);
  color: #fa5d3e;
  width: auto;
  padding: 8px 16px;
}

.oe-featured__badge--past {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
  width: auto;
  padding: 8px 16px;
}

.oe-featured__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.oe-featured__nav[hidden] {
  display: none;
}

.oe-featured__nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.oe-featured__nav-btn--prev {
  background: #d9d9d9;
}

.oe-featured__nav-btn--prev:hover {
  background: #c4c4c4;
}

.oe-featured__nav-btn--prev.is-active {
  background: var(--color-purple);
}

.oe-featured__nav-btn--prev.is-active:hover {
  opacity: 0.88;
  background: var(--color-purple);
}

.oe-featured__nav-btn--prev.is-active path {
  stroke: #ffffff;
}

.oe-featured__nav-btn--next {
  background: var(--color-purple);
}

.oe-featured__nav-btn--next:hover {
  opacity: 0.88;
}

.oe-featured__nav-btn--next.is-inactive,
.oe-featured__nav-btn--prev:not(.is-active) {
  cursor: not-allowed;
}

.oe-featured__nav-btn--next.is-inactive {
  background: #d9d9d9;
  opacity: 1;
}

.oe-featured__nav-btn--next.is-inactive path {
  stroke: #131211;
}

/* Sidebar featured card: fill column width, otherwise identical to .event-card */
.oe-featured__card {
  width: 100%;
  flex: none;
}

/* Empty state card overrides */
.oe-featured__card--empty {
  background: #f4f3ff;
  border: 2px solid var(--color-purple);
}

/* Empty state content */
.oe-no-events {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 500px;
  padding: 48px 32px;
  text-align: center;
}

.oe-no-events img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.oe-no-events h3 {
  font-family: "FONTSPRING DEMO - Proxima Nova", "Proxima Nova", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  color: #000000;
  margin: 0;
  white-space: nowrap;
}

.oe-no-events p {
  font-family: "FONTSPRING DEMO - Proxima Nova Medium", "Proxima Nova", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #555555;
  margin: 0;
}

/* ----- Upcoming Events Section ----- */
.oe-upcoming {
  padding: 120px 0 0 0;
}

.oe-upcoming__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

.oe-upcoming__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.oe-upcoming__label {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  gap: 8px;
  height: 35px;
  background: rgba(25, 77, 147, 0.2);
  border-radius: 100px;
  font-family: "FONTSPRING DEMO - Proxima Nova", "Proxima Nova", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  color: #194d93;
  white-space: nowrap;
}

.oe-upcoming__heading {
  font-family: "Akira Expanded", "Arial Black", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 40px;
  color: var(--color-purple);
  margin: 0;
}

.oe-upcoming__sub {
  font-family: "FONTSPRING DEMO - Proxima Nova Medium", "Proxima Nova", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  margin: 0;
}

/* Cards grid — uses shared .event-card from base.css */
.oe-cards-grid {
  display: flex;
  flex-direction: row;
  gap: 34px;
  flex-wrap: wrap;
}

.oe-no-past-events {
  width: 100%;
  padding: 48px 32px;
  font-family: "FONTSPRING DEMO - Proxima Nova Medium", "Proxima Nova", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #555555;
  text-align: center;
  margin: 0;
}

/* ----- Gallery Modal ----- */
.oe-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.oe-gallery-modal[hidden] {
  display: none;
}

.oe-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

/*
 * --card-w drives every internal dimension proportionally.
 * The three-way min() ensures the card never overflows the viewport
 * on either axis, keeping 20px clear on all four sides at any size.
 * aspect-ratio locks the height so layout stays in Figma proportions.
 */
.oe-gallery-modal__card {
  --card-w: min(1280px, calc(100vw - 40px), calc((100vh - 40px) * 1280 / 728));
  position: relative;
  width: var(--card-w);
  aspect-ratio: 1280 / 728;
  background: #ffffff;
  border-radius: calc(var(--card-w) * 24 / 1280);
  padding: calc(var(--card-w) * 40 / 1280) calc(var(--card-w) * 24 / 1280) calc(var(--card-w) * 24 / 1280);
  box-sizing: border-box;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.oe-gallery-modal__close {
  position: absolute;
  top: calc(var(--card-w) * 16 / 1280);
  right: calc(var(--card-w) * 16 / 1280);
  width: calc(var(--card-w) * 36 / 1280);
  height: calc(var(--card-w) * 36 / 1280);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  z-index: 2;
}

.oe-gallery-modal__close svg {
  width: calc(var(--card-w) * 24 / 1280);
  height: calc(var(--card-w) * 24 / 1280);
}

.oe-gallery-modal__close:hover {
  background: rgba(0, 0, 0, 0.08);
}

.oe-gallery-modal__title {
  font-family: "FONTSPRING DEMO - Proxima Nova", "Proxima Nova", sans-serif;
  font-weight: 700;
  font-size: calc(var(--card-w) * 32 / 1280);
  line-height: 1;
  color: #131211;
  text-align: center;
  margin: 0 0 calc(var(--card-w) * 24 / 1280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.oe-gallery-modal__viewer {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--card-w) * 16 / 1280);
  margin-bottom: calc(var(--card-w) * 40 / 1280);
}

.oe-gallery-viewer-nav {
  width: calc(var(--card-w) * 28 / 1280);
  height: calc(var(--card-w) * 28 / 1280);
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.oe-gallery-viewer-nav svg {
  width: 100%;
  height: 100%;
}

.oe-gallery-viewer-nav:hover {
  opacity: 0.6;
}

.oe-gallery-modal__main-img {
  width: calc(var(--card-w) * 698 / 1280);
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--card-w) * 24 / 1280);
  flex-shrink: 0;
  display: block;
}

.oe-gallery-modal__thumbs-section {
  position: relative;
  height: calc(var(--card-w) * 162 / 1280);
  flex-shrink: 0;
}

.oe-gallery-thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--card-w) * 28 / 1280);
  height: calc(var(--card-w) * 28 / 1280);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 4;
}

.oe-gallery-thumb-nav svg {
  width: 100%;
  height: 100%;
}

.oe-gallery-thumb-nav:hover {
  opacity: 0.6;
}

.oe-gallery-thumb-nav--prev {
  left: 0;
}
.oe-gallery-thumb-nav--next {
  right: 0;
}

.oe-gallery-modal__thumbs-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.oe-gallery-modal__thumbs-track {
  display: flex;
  gap: calc(var(--card-w) * 16 / 1280);
  height: 100%;
  transition: transform 0.3s ease;
}

.oe-gallery-thumb {
  width: calc(var(--card-w) * 233 / 1280);
  height: 100%;
  flex-shrink: 0;
  border-radius: calc(var(--card-w) * 24 / 1280);
  object-fit: cover;
  cursor: pointer;
  box-sizing: border-box;
  border: 2px solid transparent;
  transition: opacity 180ms ease;
}

.oe-gallery-thumb--active {
  border-color: #000000;
}

.oe-gallery-thumb:hover {
  opacity: 0.85;
}

.oe-gallery-modal__thumbs-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffffff -6.47%, rgba(255, 255, 255, 0) 50.39%, #fffbfb 107.24%);
  pointer-events: none;
  z-index: 2;
}

/* button reset for event-pill used as gallery trigger */
button.event-pill {
  cursor: pointer;
  background: transparent;
}

/* Disabled gallery button — event has no gallery images */
button.event-pill--disabled {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .oe-cal-section {
    padding: 40px 20px 48px;
  }

  .oe-cal-section__inner {
    flex-direction: column;
    gap: 32px;
  }

  .oe-upcoming__heading {
    text-align: center;
  }

  .oe-upcoming__sub {
    text-align: center;
  }

  .oe-calendar {
    width: 100%;
    overflow-x: auto;
  }

  .oe-cal-weekdays,
  .oe-cal-days {
    grid-template-columns: repeat(7, 1fr);
    min-width: 320px;
  }

  .oe-cal-days {
    height: auto;
  }

  .oe-cal-day {
    width: auto;
    padding: 5px;
    height: 70px;
  }

  .oe-cal-day__num {
    font-size: 10px;
    line-height: 12px;
  }

  .oe-cal-day__event-label {
    font-size: 7px;
    line-height: 9px;
    -webkit-line-clamp: 2;
  }

  .oe-cal-weekdays span {
    height: 20px;
    font-size: 7px;
  }

  .oe-cal-nav__label {
    font-size: 14px;
  }

  .oe-featured {
    width: 100%;
  }

  .oe-featured__card {
    min-height: 420px;
  }

  .oe-upcoming {
    padding: 48px 0 60px;
  }

  .oe-upcoming__inner {
    padding: 0 20px;
  }

  .oe-cards-grid {
    flex-direction: column;
    gap: 20px;
  }

  .oe-cards-grid .event-card {
    width: 100%;
    flex: none;
    min-height: 0;
  }

  .oe-cards-grid .event-card > img {
    height: 200px;
  }

  .oe-featured__card > img {
    height: 200px;
  }

  .oe-banner__content {
    width: 90%;
    padding: 0 20px;
  }

  .oe-banner__title {
    font-size: 40px;
    line-height: 60px;
    text-align: center;
  }

  .oe-banner__title-group {
    width: 100%;
    height: 70px;
  }

  .oe-banner__subtitle {
    width: 100%;
    font-size: 15px;
    line-height: 24px;
  }

  .oe-banner {
    background-image: linear-gradient(180deg, rgba(9, 7, 18, 0.64) 0%, rgba(22, 13, 41, 0.38) 100%), url("../images/our-events/our_events_banner_mobile.jpg");
  }
}
