@charset "UTF-8";

/*Миксины*/

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

.media-popup-open .video__wrapper::after {
  content: "";
  display: block;
  margin-top: 64%;
}

.media-popup-open .video__wrapper video,
.media-popup-open .video__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.media-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  padding: 24px 40px;
  -ms-grid-rows: 1fr;
  grid-template-rows: 1fr;
}

.media-popup__overlay {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: #141414;
}

.media-popup__block {
  position: relative;
  z-index: 1;
}

.media-popup__top {
  display: none;
  /* padding-bottom: 32px;
  border-bottom: 1px solid $white3;
  margin-bottom: auto;
  @media (max-width: $windowWidth4) {
      padding-bottom: 16px;
  } */
}

.media-popup__bottom {
  display: none;
  /* padding-top: 32px;
  border-top: 1px solid $white3;
  margin-top: auto;
  @media (max-width: $windowWidth4) {
      padding-top: 16px;
  } */
}

.media-popup__gallery-name {
  text-transform: uppercase;
}

.media-popup__gallery-title {
  width: 50%;
  margin: 0 auto;
  min-height: 64px;
}

.media-popup__content {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.media-popup__slide {
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.media-popup__slide img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  margin: 0 auto;
}

.media-popup__title {
  visibility: visible;
  position: absolute;
  z-index: 1;
  color: #fff;
  bottom: calc(100% + 14px);
  text-align: center;
  width: 100%;
  margin: 0;
}

.popup-slider {
  width: calc((((100vw - (40px * 2)) + 24px) / 8 * 6) - 24px + 0px);
  height: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.popup-slider__navigation {
  position: absolute;
  left: 40px;
  bottom: 24px;
  z-index: 2;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 16px;
}

.popup-slider__arrow {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
  cursor: pointer;
  visibility: visible;
  background: #212322;
  border: none;
}

.popup-slider__arrow path {
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.popup-slider__arrow.swiper-button-disabled {
  opacity: 0;
  cursor: default;
}

.popup-slider__arrow:hover path {
  fill: #00CB62;
}

.popup-slider__pagination {
  position: absolute;
  top: 24px;
  left: 40px;
  z-index: 1;
  width: auto;
  height: auto;
}

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

.media-popup__slide img {
  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 {
  visibility: visible;
  width: auto !important;
  max-width: 100%;
  height: 100%;
  background: none;
}

.media-popup__slide iframe {
  width: 100% !important;
}

.media-popup__slide .video__wrapper {
  visibility: visible;
  width: 100% !important;
  max-width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

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

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

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

.media-popup__close {
  position: absolute;
  top: 24px;
  right: 40px;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
  cursor: pointer;
  visibility: visible;
  background: #212322;
  border: none;
}

.media-popup__close path {
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.media-popup__close:hover path {
  fill: #00CB62;
}

.media-popup__one {
  width: calc(100% - 272px);
  height: calc(100% - 150px);
  position: relative;
  z-index: 1;
  margin: 90px auto 0;
}

.media-popup__one img {
  max-width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

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

.media-popup__one .media-popup__title {
  bottom: auto;
  top: calc(100% + 14px);
}

@media (max-width: 680px) {
  .media-popup {
    padding: 24px 10px;
  }

  .media-popup__gallery-title {
    min-height: 32px;
    font-size: 12px;
    line-height: 140%;
    width: calc(100% - 64px - 32px);
  }

  .media-popup__content {
    margin: 24px 0;
  }

  .popup-slider {
    width: 100%;
  }

  .popup-slider__navigation {
    left: 10px;
    bottom: 10px;
  }

  .popup-slider__arrow {
    width: 32px;
    height: 32px;
    border-radius: 4px;
  }

  .popup-slider__arrow svg {
    width: 16px;
    height: 16px;
  }

  .popup-slider__pagination {
    top: 10px;
    left: 10px;
  }

  .media-popup__close {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    top: 10px;
    right: 10px;
  }

  .media-popup__close svg {
    width: 16px;
    height: 16px;
  }
}