/* Shared detail navigation and duration controls for image/video media modals. */
.venue-gallery-modal__detail-link,
.video-modal__detail-link {
  position: absolute;
  z-index: 4;
  top: var(--gallery-detail-top, 20px);
  display: inline-flex;
  height: 30px;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: var(--spacing-3xs);
  color: var(--semantic-white);
  background: var(--badge-alpha-b-20);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-20);
  text-decoration: none;
}

.venue-gallery-modal__detail-link {
  left: var(--gallery-detail-left, 20px);
}

.video-modal__detail-link {
  top: 20px;
  left: 20px;
}

.venue-gallery-modal__detail-link img,
.video-modal__detail-link img {
  display: block;
  width: 7px;
}

.video-modal__duration {
  z-index: 4;
  min-height: 24px;
  padding: 4px 8px;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-16);
}

.video-modal__content > .video-modal__duration {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 767px) {
  .video-modal__detail-link {
    top: 16px;
    left: 16px;
  }

  .venue-gallery-modal__main .swiper-slide > img,
  .venue-gallery-modal__main .swiper-slide > video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
  }
}
/* Keep one gallery item per viewport regardless of the source image ratio. */
.venue-gallery-modal__main {
  overflow: hidden;
}

.venue-gallery-modal__main .swiper-wrapper {
  width: 100%;
}

.venue-gallery-modal__main .swiper-slide {
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
  overflow: hidden;
  box-sizing: border-box;
}