/* Фото покупателей — адаптация Weaver gallery-service + work-photo-gallery для витрины */

.product-customer-photos-carousel {
  display: block;
  clear: both;
  margin-top: 1.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.product-customer-photos-carousel-row {
  margin-top: 1rem;
  width: 100%;
}

.product-customer-photos-carousel__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.product-customer-photos-carousel__wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.product-customer-photos-carousel__scroller {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-customer-photos-carousel__scroller::-webkit-scrollbar {
  display: none;
}

.product-customer-photos-carousel__list {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
}

.product-customer-photos-carousel__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 285px;
  max-width: 100%;
}

.product-customer-photos-carousel__link {
  display: block;
  width: 285px;
  height: 180px;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 767px) {
  .product-customer-photos-carousel__item,
  .product-customer-photos-carousel__link {
    width: min(285px, 100%);
  }

  .product-customer-photos-carousel__link {
    height: auto;
    aspect-ratio: 285 / 180;
  }
}

.product-customer-photos-carousel__link:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.product-customer-photos-carousel__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-customer-photos-carousel__arrow {
  position: relative;
  top: auto;
  transform: none;
  flex: 0 0 32px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-customer-photos-carousel__arrow--prev {
  left: auto;
}

.product-customer-photos-carousel__arrow--next {
  right: auto;
}

.product-customer-photos-carousel__arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.product-customer-photos-gallery {
  margin-top: 1.5rem;
  max-width: 100%;
}

.product-customer-photos-gallery__heading {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.product-customer-photos-gallery__slider-area {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  max-width: 100%;
}

.product-customer-photos-gallery__swiper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.product-customer-photos-gallery__slides-track.swiper-wrapper {
  align-items: stretch;
  box-sizing: border-box;
}

.product-customer-photos-gallery__slide.swiper-slide {
  width: calc((100% - 32px) / 3);
  height: auto;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .product-customer-photos-gallery__slide.swiper-slide {
    width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 767px) {
  .product-customer-photos-gallery__slide.swiper-slide {
    width: calc(100% - 56px);
    max-width: 100%;
  }
}

.product-customer-photos-gallery__slide-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 125%;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f3f3;
}

.product-customer-photos-gallery__image-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  z-index: 1;
}

.product-customer-photos-gallery__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.product-customer-photos-gallery__caption {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #666;
}

.product-customer-photos-gallery__nav-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  padding: 0 0.25rem;
}

@media (max-width: 767px) {
  .product-customer-photos-gallery__nav-pill {
    display: none;
  }
}

.product-customer-photos-gallery__nav-button {
  width: 40px;
  height: 36px;
  border: 0;
  cursor: pointer;
  background: #fff;
  -webkit-mask-image: url("../img/gallery-arrow.svg");
  mask-image: url("../img/gallery-arrow.svg");
  -webkit-mask-position: 50%;
  mask-position: 50%;
  -webkit-mask-size: 18px 18px;
  mask-size: 18px 18px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.product-customer-photos-gallery__nav-button--prev {
  transform: rotate(180deg);
}

.product-customer-photos-gallery__nav-button.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.product-customer-photos-gallery__empty {
  margin-bottom: 1.5rem;
  color: #666;
}

.product-customer-photos-gallery__upload h4 {
  margin: 0 0 1rem;
}

.product-customer-photos-gallery__feedback {
  margin: 0 0 1rem;
}

.product-customer-photos-gallery__feedback[hidden] {
  display: none;
}

.product-customer-photos-gallery__captcha img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.product-customer-photos-gallery__captcha .btn {
  vertical-align: middle;
}

.product-customer-photos-gallery__dropzone {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.product-customer-photos-gallery__dropzone.is-dragover {
  border-color: #337ab7;
  background: #f0f7ff;
}

.product-customer-photos-gallery__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.product-customer-photos-gallery__file-name {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: #333;
}

.product-customer-photos-gallery__upload-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.5rem 0;
}

.product-customer-photos-gallery__upload-progress[hidden] {
  display: none;
}

.product-customer-photos-gallery__upload-progress-ring {
  width: 88px;
  height: 88px;
}

.product-customer-photos-gallery__upload-progress-ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-customer-photos-gallery__upload-progress-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}

.product-customer-photos-gallery__upload-progress-label {
  margin: 0;
  font-size: 0.875rem;
  color: #666;
}
