.product-gallery-section {
  padding-top: 24px;
}

.product-gallery {
  padding: 24px;
}

.product-gallery__head {
  margin-bottom: 18px;
}

.product-gallery__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f3f4f2;
}

.product-gallery__image {
  width: 100%;
  height: 520px;
  object-fit: contain;
  object-position: center;
}

.product-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.product-gallery__nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.04);
}

.product-gallery__nav--prev {
  left: 18px;
}

.product-gallery__nav--next {
  right: 18px;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.product-gallery__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f3f4f2;
  cursor: pointer;
}

.product-gallery__thumb.is-active {
  border-color: var(--brand);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 760px) {
  .product-gallery {
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .product-gallery__stage {
    min-height: 320px;
  }

  .product-gallery__image {
    height: 320px;
  }

  .product-gallery__nav {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .product-gallery__nav--prev {
    left: 10px;
  }

  .product-gallery__nav--next {
    right: 10px;
  }

  .product-gallery__thumbs {
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 8px;
  }
}
