@charset "UTF-8";

/*Миксины*/

.media-popup-open {
  cursor: pointer;
}

.media-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  z-index: 100;
  overflow: hidden;
  padding: 48px 0;
  background: none !important;
}

.media-popup .close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
  visibility: visible;
}

.media-popup__overlay {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: var(--fon-vi);
  opacity: 0.98;
}

.media-popup__content {
  height: 100%;
  margin: auto;
  overflow: hidden;
  visibility: hidden;
  gap: 32px;
  position: relative;
}

.media-popup__title {
  visibility: visible;
  z-index: 1;
  color: var(--black);
  text-align: center;
  width: 100%;
  margin: 0;
}

.popup-slider {
  width: calc((((100vw - (32px * 2)) + 32px) / 12 * 10) - 32px + 0px);
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  overflow: hidden;
  margin: 0 auto;
}

.media-popup__slide {
  height: 100%;
  text-align: center;
  gap: 32px;
}

.popup-slider__navigation {
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 100%;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.popup-slider__navigation .slider__arrow {
  visibility: visible;
}

.popup-slider__navigation .slider__arrow.swiper-button-disabled {
  opacity: 0.5;
}

.media-popup__slide,
.popup-slider .swiper-slide,
.popup-slider,
.popup-slider__navigation {
  visibility: hidden;
}

.media-popup__slide img,
.media-popup__one img {
  max-width: 100%;
  max-height: 100%;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  -o-object-fit: contain;
     object-fit: contain;
  margin: auto;
  visibility: visible;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.media-popup__slide video,
.media-popup__slide iframe,
.media-popup__one video,
.media-popup__one iframe {
  visibility: visible;
  width: auto !important;
  max-width: 100%;
  height: 100%;
  background: var(--black);
  width: 100% !important;
}

.media-popup__slide .video__wrapper,
.media-popup__one .video__wrapper {
  visibility: visible;
  width: 100%;
  height: 100%;
}

.media-popup__slide .video__wrapper img,
.media-popup__one .video__wrapper img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.media-popup__image {
  max-width: 100%;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow: hidden;
}

.popup-slider-small {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  overflow: visible;
  visibility: visible;
  margin: 0 auto;
  -webkit-transform: translateX(8px);
      -ms-transform: translateX(8px);
          transform: translateX(8px);
  height: 80px;
}

.popup-slider-small .swiper-slide {
  width: auto;
}

.popup-slider-small .video__overlay {
  background: none;
}

.media-popup-small__slide {
  height: 80px;
  width: 80px;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
  cursor: pointer;
}

.media-popup-small__slide::before,
.media-popup-small__slide::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  opacity: 0;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.media-popup-small__slide::after {
  background: none;
  -webkit-box-shadow: inset 0 0 0 2px var(--violet);
          box-shadow: inset 0 0 0 2px var(--violet);
  z-index: 1;
}

.media-popup-small__slide .video__overlay::before {
  background: var(--fon-vi);
}

.media-popup-small__slide img {
  height: 100%;
}

.swiper-slide-active .media-popup-small__slide::before {
  opacity: 0.3;
}

.swiper-slide-active .media-popup-small__slide::after {
  opacity: 1;
}

.media-popup__one {
  height: 100%;
  gap: 32px;
  position: relative;
  width: calc((((100vw - (32px * 2)) + 32px) / 12 * 10) - 32px + 0px);
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  margin: 0 auto;
}

.media-popup__one img {
  visibility: visible;
  max-height: 100%;
}

.media-popup__one iframe,
.media-popup__one video {
  width: 100%;
  height: 100%;
  visibility: visible;
}

.max-popup {
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 1px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  visibility: visible;
}

.max-popup rect {
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.big-show {
  padding: 0 !important;
  overflow: hidden;
}

.big-show .media-popup__title,
.big-show .popup-slider-small,
.big-show .slider__arrow,
.big-show .max-popup rect:first-child {
  display: none;
}

.big-show .media-popup__content {
  overflow: visible;
}

.big-show .popup-slider,
.big-show .media-popup__one {
  overflow: visible;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  margin-left: -144px;
}

.big-show .max-popup,
.big-show .close {
  top: 48px;
}