.gallery-swiper {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.gallery-swiper .swiper-slide {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gallery-swiper .swiper-slide.contained img {
  max-width: 70vw;
  max-height: 70vh;
  object-fit: contain;
}

.gallery-swiper .swiper-slide.fullscreen img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

.swiper-slide.contained .controls-wrapper .caption {
  color: #000;
}

.swiper-slide.fullscreen .controls-wrapper .caption {
  color: #000;
}

.controls-wrapper .caption {
  transition: opacity 0.25s ease;
}

.controls-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}

.controls-wrapper.visible {
  opacity: 1;
  pointer-events: auto;
}

.caption-wrapper {
  position: absolute;
  bottom: var(--space-md);
  padding: 0 var(--space-sm);
  width: 100%;
  display: flex;
  justify-content: center;
}

.caption {
  text-align: center;
  font-size: .9rem;
  line-height: 1.3;
  word-break: keep-all;
  word-spacing: -.1em;
  color: var(--color-black-200);
}

.swiper-button-next-unique,
.swiper-button-prev-unique {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black-200);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  cursor: pointer;
}

.swiper-button-next-unique {
  right: 24px;
}

.swiper-button-prev-unique {
  left: 24px;
}

.swiper-button-next-unique:hover,
.swiper-button-prev-unique:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.swiper-button-next {
  display: none;
}

/* PREVIEW */
.hover-image-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: -999999;
}

.hover-image.contained {
  max-width: 50vw;
  max-height: 50vh;
  object-fit: contain;
  opacity: 1;
}

.menu-item:hover .hover-image-wrapper {
  opacity: 1;
}

.hover-image.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 9999;
  pointer-events: none;
  display: none;
}

.menu-item:hover .hover-image.fullscreen {
  display: block;
}

@media screen and (max-width: 768px) {
  .gallery-swiper {
    width: 100vw;
    height: 100%;
    overflow: hidden;
    z-index: 999998;
    position: relative;
  }

  .swiper-pagination-unique {
    position: fixed;
    top: 12px;
    right: var(--space-sm);
    display: flex;
    gap: 8px;
    z-index: 9999;
  }

  .swiper-button-next-unique,
  .swiper-button-prev-unique {
    position: static;
    transform: none;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .gallery-swiper .swiper-slide.fullscreen img,
  .gallery-swiper .swiper-slide.contained img {
    max-width: 100vw;
    max-height: 65vh;
    object-fit: contain;
    padding: 0 var(--space-sm);
  }

  .gallery-swiper .swiper-slide {
    height: auto !important;
  }
  
  .caption {
    word-spacing: -.3em;
    font-size: .8rem;
  }

  .caption-wrapper {
    z-index: 999999;
    display: block;
  }

}

@media only screen and (max-width: 1024px) and (orientation: portrait) {
  .gallery-swiper .swiper-slide.fullscreen img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    padding: 0 var(--space-sm);
  }

  .swiper-pagination-unique {
    position: fixed;
    top: 12px;
    right: var(--space-sm);
    display: flex;
    gap: 8px;
    z-index: 9999;
  }

  .swiper-button-next-unique,
  .swiper-button-prev-unique {
    position: static;
    transform: none;
    border-bottom: 0;
    padding-bottom: 0;
  }
}

@media only screen and (max-width: 1366px) and (orientation: landscape) {
  .gallery-swiper .swiper-slide.fullscreen img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
  }
}
