@charset "UTF-8";

/*Миксины*/

.gallery {
  overflow: hidden;
  position: relative;
}

.gallery .video__overlay {
  background: none;
}

.gallery .video__overlay img {
  opacity: 1;
}

.gallert__title {
  font-weight: 400;
}

.gallery__top {
  padding: 0 62px 8px;
  position: relative;
}

.gallery__big {
  overflow: hidden;
  width: 100%;
}

.gallery__big video {
  height: 100%;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery__item::before {
  content: "";
  display: block;
  margin-top: 65.558%;
}

.gallery__item img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  border-radius: 0;
}

.gallery__item .video__wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--zero);
}

.gallery-slider__nav {
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translatY(-50%);
      -ms-transform: translatY(-50%);
          transform: translatY(-50%);
  width: 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: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.gallery__arrow--left {
  left: 0;
}

.gallery__arrow--right {
  right: 0;
}

.gallery__bottom {
  padding: 0 62px;
  position: relative;
}

.gallery__small {
  width: 100%;
  overflow: hidden;
}

.gallery__small__item {
  width: auto !important;
  height: 68px !important;
  margin-right: 8px;
  position: relative;
  line-height: 0;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery__small__item img {
  height: 100%;
  width: auto;
  margin: 0 !important;
  border-radius: 0;
}

.gallery__small__item::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
  opacity: 0;
  -webkit-transition: 0.2s;
  -o-transition: 0.2s;
  transition: 0.2s;
  -webkit-box-shadow: inset 0 0 0 2px var(--brend);
          box-shadow: inset 0 0 0 2px var(--brend);
  border-radius: 4px;
}

.gallery__small__item.swiper-slide-active::before {
  opacity: 1;
}

.gallery__small__item .video__overlay::before,
.gallery__small__item .video__overlay::after {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .gallery {
    margin: 0 auto;
  }

  .gallery__top {
    padding: 0 0 8px;
  }

  .gallery__big {
    overflow: visible;
  }

  .gallery-slider__nav {
    display: none;
  }

  .gallery__bottom {
    padding: 0;
  }

  .gallery__small__item {
    height: 42px;
  }
}