body.ach-modal-open {
  overflow: hidden;
}
.ach-event-modal-overlay {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 32, 38, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 2vw;
}
.ach-event-modal-outer {
  background: var(--color-neutral-object);
  border-radius: 12px;
  max-width: 1140px;
  width: 100%;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: overlay;
}
.ach-event-modal-content {
  outline: none;
}

.ach-event-modal-buttons {
  position: absolute;
  top: 40px;
  right: 40px;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 2;
}

.ach-event-modal-close {
  position: static;
  font-size: 16px;
  background: var(--color-neutral-object);
  border: 1px solid var(--color-border-neutral);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  color: var(--color-body-loud);
  cursor: pointer;
  transition: background 0.2s;
}

.ach-event-modal-main {
  display: flex;
  gap: 16px;
}
.ach-event-modal-info {
  flex: 2 1 0;
  min-width: 0;
}
.ach-event-modal-featured {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 260px;
  max-width: 340px;
  position: relative;
  /* height: 100%; */
}
.ach-event-modal-featured-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: 1.2rem;
  object-fit: cover;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  display: block;
}
.ach-event-modal-date-badge {
  position: relative;
  top: 90px;
  right: 254px;
  text-align: center;
  background: var(--color-object-accent-loud);
  color: #fff;
  font-weight: 600;
  border-radius: 24px;
  padding: 8px;
  z-index: 2;
  backdrop-filter: blur(8px);
  display: flex;
  width: 76px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.ach-event-modal-date-badge span {
  display: block;
}

.ach-event-modal-date-badge .day {
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%; /* 33.6px */
}

.ach-event-modal-date-badge .month {
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 175%;
  text-transform: uppercase;
}
.ach-event-modal-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-heading-loud);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.ach-event-modal-section {
  margin-bottom: 1.5rem;
}
.ach-event-modal-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-body-loud);
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.5em;
}
.ach-event-modal-description {
  font-size: 16px;
  color: var(--color-body-loud);
  line-height: 175%;
}
.ach-event-modal-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem 2.5rem;
  font-size: 18px;
  margin-top: 0.5rem;
}
.ach-event-modal-details-grid div {
  min-width: 0;
}
.ach-event-modal-details-grid span {
  font-weight: 400;
  font-size: 16px;
  color: var(--color-body);
}
.ach-event-modal-details-grid strong {
  font-weight: 600;
  color: var(--color-body-loud);
  font-size: 18px;
}
.ach-event-modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.ach-event-modal-gallery-img {
  width: 100%;
  border-radius: 0.8rem;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
}
/* Hide mobile featured image by default */
.ach-event-modal-featured-mobile {
  display: none;
}

@media (max-width: 900px) {
  .ach-event-modal-main {
    flex-direction: column;
    gap: 1.5rem;
  }
  .ach-event-modal-featured {
    align-items: flex-start;
    max-width: 100%;
    min-width: 0;
    height: auto;
  }
  .ach-event-modal-featured-img {
    height: auto;
    min-height: 0;
    margin-top: 1.2rem;
  }
}
@media (max-width: 600px) {
  .ach-event-modal-buttons {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    justify-content: space-between;
    padding-top: 16px;
  }

  .ach-event-modal-main {
    display: flex;
    flex-direction: column;
  }
  .ach-event-modal-title {
    order: 1;
    margin-bottom: 0.7rem;
  }
  .ach-event-modal-featured {
    order: 2;
    margin-bottom: 0.7rem;
  }
  .ach-event-modal-description {
    order: 3;
    margin-bottom: 0.7rem;
  }
  .ach-event-modal-details-grid {
    order: 4;
    margin-bottom: 0.7rem;
  }
  .ach-event-modal-gallery {
    order: 5;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.7rem;
  }
  /* Ensure all modal main children take full width */
  .ach-event-modal-main > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .ach-event-modal-outer {
    padding: 16px;
    border-radius: 0.7rem;
    max-width: 100vw;
    width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }
  .ach-event-modal-main {
    flex-direction: column;
    gap: 1rem;
  }
  .ach-event-modal-featured,
  .ach-event-modal-info {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    align-items: stretch;
    margin-top: 45px;
  }
  .ach-event-modal-featured {
    margin-top: 0.7rem;
    height: auto;
    align-items: stretch;
  }
  .ach-event-modal-featured-img {
    width: 100%;
    min-height: 0;
    height: auto;
    margin-top: 0;
    border-radius: 0.7rem;
  }
  .ach-event-modal-date-badge {
    position: absolute;
    left: 24px;
    margin: 0.5rem 0 0.5rem 0;
    width: 64px;
    top: auto;
    right: auto;
  }
  .ach-event-modal-close {
    position: static;
    width: 36px;
    height: 36px;
    font-size: 14px;
    padding: 0;
  }
  .ach-event-modal-buy {
    top: 12px;
    right: 56px;
    margin-right: 8px;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
  }
  .ach-event-modal-title {
    font-size: 1.3rem;
  }
  .ach-event-modal-details-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .ach-event-modal-gallery {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .ach-event-modal-overlay {
    padding: 0.5rem;
    align-items: flex-start;
  }
  .ach-event-modal-content {
    max-height: unset;
    overflow: visible;
  }
  /* Show mobile featured image, hide sidebar featured image */
  .ach-event-modal-featured-mobile {
    display: block;
    margin-bottom: 0.7rem;
  }
  .ach-event-modal-featured {
    display: none !important;
  }
  .ach-event-modal-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.7rem;
  }
  .ach-event-modal-featured-mobile .ach-event-modal-featured-img {
    width: 100%;
    min-height: 0;
    height: auto;
    border-radius: 0.7rem;
    margin-top: 0.5rem;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    /* Fallback for older browsers */
    max-width: 100%;
    max-height: 100vw;
    display: block;
  }
  .ach-event-modal-featured-mobile .ach-event-modal-date-badge {
    margin-bottom: 0.3rem;
    width: 64px;
  }
}
.ach-event-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.ach-loading-spinner {
  width: 2em;
  height: 2em;
  border: 3px solid #e0e0e0;
  border-top: 3px solid #2d3a5a;
  border-radius: 50%;
  animation: ach-spin 1s linear infinite;
}
@keyframes ach-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
