/* gallery
--------------------------------------------- */
.gallery-modal {
  position: relative;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease-in-out;
}

.gallery-modal.is-active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.gallery-modal_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0 0 0 / 0.6);
}

.gallery-modal_inner {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  filter: blur(8px);
  transition: filter 0.4s ease-in-out;
  overflow: hidden;
}

.gallery-modal.is-active .gallery-modal_inner {
  overflow: scroll;
  filter: blur(0);
  transition: filter 0.4s ease-in-out;
}

.gallery-modal_close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 8px;
  z-index: 1;
  width: 44px;
  height: 44px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.gallery-modal_close:before {
  content: '×';
}

.gallery-modal_close:hover {
  cursor: pointer;
  opacity: 0.5;
}

.gallery-modal_container {
  position: relative;
  z-index: 0;
}

.gallery_main_photo {
  width: 100vw;
  height: calc(100vh - 44px - 88px);
  margin: 44px auto 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.gallery_slider_arrow-prev,
.gallery_slider_arrow-next {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  translate: 0 -50%;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery_slider_arrow-prev[aria-disabled='true'],
.gallery_slider_arrow-next[aria-disabled='true'] {
  opacity: 0;
  cursor: auto;
  pointer-events: none;
}

.gallery_slider_arrow-prev:after,
.gallery_slider_arrow-next:after {
  content: '';
  display: block;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  width: 14px;
  height: 14px;
  rotate: 45deg;
  translate: -25% 0;
}

.gallery_slider_arrow-next {
  right: min(5vw, 25px);
}
.gallery_slider_arrow-prev {
  left: min(5vw, 25px);
  scale: -1 1;
}
