/* Full-screen mixed media gallery — Figma node 320:87587 */

body.has-venue-gallery {
  overflow: hidden;
}

.venue-detail-space .swiper-slide {
  cursor: zoom-in;
}

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

.venue-gallery-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(26, 28, 30, 0.55);
  backdrop-filter: blur(2px);
}

.venue-gallery-modal:focus {
  outline: none;
}

.venue-gallery-modal__content {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) 100px;
}

.venue-gallery-modal__main {
  width: calc(100% - 40px);
  max-width: 1699px;
  height: 100%;
  max-height: 960px;
  align-self: center;
}

.venue-gallery-modal__main .swiper-wrapper,
.venue-gallery-modal__main .swiper-slide {
  height: 100%;
}

.venue-gallery-modal__main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.venue-gallery-modal__main .swiper-slide>img,
.venue-gallery-modal__main .swiper-slide>video,
.venue-gallery-modal__video {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  /* background: var(--semantic-bg); */
}

.venue-gallery-modal__main .swiper-slide>img,
.venue-gallery-modal__main .swiper-slide>video {
  max-width: 1280px;
}

.venue-gallery-modal__video {
  position: relative;
  overflow: hidden;
}

.venue-gallery-modal__main .venue-gallery-modal__video {
  width: 100%;
  height: auto;
  max-height: 960px;
  aspect-ratio: 278 / 157;
  padding: var(--stroke-1);
  border: var(--stroke-1) solid var(--semantic-border);
  border-radius: var(--radius-md);
  background: var(--semantic-white);
}

.venue-gallery-modal__video video,
.venue-gallery-modal__video [data-gallery-video-play],
.venue-gallery-modal__video [data-gallery-video-play]>img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.venue-gallery-modal__video video {
  background: var(--semantic-black);
  object-fit: contain;
}

.venue-gallery-modal__video [data-gallery-video-play] {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: var(--semantic-white);
}

.venue-gallery-modal__video [data-gallery-video-play]>img {
  object-fit: cover;
}

.venue-gallery-modal__video [data-gallery-video-play]>span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 110px;
  height: 112px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-full);
  background: var(--badge-alpha-b-60);
}

.venue-gallery-modal__video [data-gallery-video-play]>span img {
  display: block;
  width: 30px;
  height: 32px;
}

.venue-gallery-modal__video [data-gallery-video-play]>small {
  position: absolute;
  right: var(--spacing-sm);
  bottom: var(--spacing-sm);
  padding: var(--spacing-3xs) var(--spacing-xs);
  border-radius: var(--radius-full);
  color: var(--semantic-white);
  background: var(--badge-alpha-b-60);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-16);
}

.venue-gallery-modal__video.is-playing [data-gallery-video-play] {
  display: none;
}

.venue-gallery-modal__control {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  width: 80px;
  height: 80px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  /* box-shadow: var(--shadow-toast); */
}

.venue-gallery-modal__control img {
  display: block;
}

.venue-gallery-modal__prev,
.venue-gallery-modal__next {
  top: calc((100% - 100px) / 2);
  transform: translateY(-50%);
}

.venue-gallery-modal__prev {
  left: var(--spacing-lg);
}

.venue-gallery-modal__next {
  right: var(--spacing-lg);
}

.venue-gallery-modal__prev img,
.venue-gallery-modal__next img {
  width: 20px;
  height: 40px;
}

.venue-gallery-modal__close {
  top: var(--spacing-lg);
  right: var(--spacing-lg);
}

.venue-gallery-modal__close img {
  width: 20px;
  height: 20px;
}

.venue-gallery-modal__thumbs {
  width: 100%;
  height: 100px;
}

.venue-gallery-modal__thumbs .swiper-slide {
  position: relative;
  width: 133px;
  height: 100px;
  cursor: pointer;
  /* background: var(--semantic-bg); */
  padding: 0;
  border: 0;
}

.venue-gallery-modal__thumbs .swiper-slide::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: var(--stroke-3) solid var(--semantic-white);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.venue-gallery-modal__thumbs .swiper-slide::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--badge-alpha-b-60);
  content: "";
  opacity: 1;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.venue-gallery-modal__thumbs .swiper-slide-thumb-active {
  border: 0;
}

.venue-gallery-modal__thumbs .swiper-slide-thumb-active::before {
  opacity: 1;
}

.venue-gallery-modal__thumbs .swiper-slide-thumb-active::after {
  opacity: 0;
}

.venue-gallery-modal__thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-gallery-modal__control:focus-visible,
.venue-gallery-modal__thumbs .swiper-slide:focus-visible {
  /* outline: var(--stroke-2) solid var(--semantic-white); */
  /* outline-offset: var(--stroke-2); */
}

@media (max-width: 767px) {
  .venue-gallery-modal__content {
    grid-template-rows: minmax(0, 1fr) 80px;
  }

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

  .venue-gallery-modal__main .swiper-slide {
    padding: var(--spacing-base);
  }

  .venue-gallery-modal__video [data-gallery-video-play]>span {
    width: 64px;
    height: 64px;
  }

  .venue-gallery-modal__video [data-gallery-video-play]>span img {
    width: 18px;
    height: 20px;
  }

  .venue-gallery-modal__control {
    width: 48px;
    height: 48px;
  }

  .venue-gallery-modal__prev,
  .venue-gallery-modal__next {
    top: calc((100% - 80px) / 2);
  }

  .venue-gallery-modal__prev {
    left: 0;
  }

  .venue-gallery-modal__next,
  .venue-gallery-modal__close {
    right: 0;
  }

  .venue-gallery-modal__close {
    top: 0;
  }

  .venue-gallery-modal__prev img,
  .venue-gallery-modal__next img {
    width: 10px;
    height: 20px;
  }

  .venue-gallery-modal__close img {
    width: 16px;
    height: 16px;
  }

  .venue-gallery-modal__thumbs,
  .venue-gallery-modal__thumbs .swiper-slide {
    height: 80px;
  }

  .venue-gallery-modal__thumbs .swiper-slide {
    width: 25%;
  }
}
