/* Галерея «О нас»: большое фото + миниатюры, без горизонтального скролла страницы */

.content-about__main-wrap {
  cursor: default;
}

.section-about__video-wrapper.content-about__main-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
}

.content-about__main {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.content-about__main-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.32s ease;
}

.content-about__main-img.is-fading {
  opacity: 0.2;
}

@media (prefers-reduced-motion: reduce) {
  .content-about__main-img,
  .content-about__main-img.is-fading {
    transition: none;
    opacity: 1;
  }
}

/* Контейнер секции: обрезка по границам (как у красных линий), без вылезания вправо */
.section-about .container {
  max-width: 100%;
  overflow-x: hidden;
}

/* Swiper: как в style.css — скрывает слайды за краем; не overflow: visible */
.content-about__swiper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  margin-left: 0;
  margin-right: 0;
  padding: 6px 0 4px;
  box-sizing: border-box;
  overflow: hidden;
}

.content-about__swiper .swiper-wrapper {
  box-sizing: border-box;
}

.content-about__swiper .swiper-slide.js-about-thumb {
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.content-about__swiper .swiper-slide.js-about-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.content-about__swiper .swiper-slide.js-about-thumb:hover {
  opacity: 0.92;
}

/* Inset: рамка внутри слайда — не вылезает за клип, не перекрывает боковые линии */
.content-about__swiper .swiper-slide.js-about-thumb.is-active {
  box-shadow: inset 0 0 0 2px var(--accent, #d40707);
  border-radius: 12px;
  opacity: 1;
}

.content-about__swiper .swiper-slide.js-about-thumb:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent, #d40707);
  border-radius: 12px;
}

.content-about__swiper .swiper-slide.js-about-thumb,
.content-about__swiper .swiper-slide {
  width: 256px;
  height: 168px;
  border-radius: 12px;
}

.content-about__swiper .swiper-slide:not(:last-child) {
  margin-right: 16px;
}

@media screen and (max-width: 1200px) {
  .content-about__swiper .swiper-slide.js-about-thumb,
  .content-about__swiper .swiper-slide {
    width: 220px;
    height: 145px;
  }
}

@media screen and (max-width: 767px) {
  .content-about__swiper {
    margin-top: 4px;
    padding: 8px 0 6px;
  }

  .content-about__swiper .swiper-slide.js-about-thumb,
  .content-about__swiper .swiper-slide {
    width: 128px;
    height: 84px;
    border-radius: 8px;
  }

  .content-about__swiper .swiper-slide:not(:last-child) {
    margin-right: 8px;
  }

  .content-about__swiper .swiper-slide.js-about-thumb img {
    border-radius: 8px;
  }

  .content-about__swiper .swiper-slide.js-about-thumb.is-active,
  .content-about__swiper .swiper-slide.js-about-thumb:focus-visible {
    border-radius: 8px;
  }
}

@media screen and (max-width: 380px) {
  .content-about__swiper .swiper-slide.js-about-thumb,
  .content-about__swiper .swiper-slide {
    width: 110px;
    height: 72px;
  }
}

@media screen and (max-width: 575px) {
  .section-about__video-wrapper.content-about__main-wrap {
    margin-bottom: 44px;
  }
}
