@charset "utf-8";
.product-gallery {
  width: 100%;
  
  margin: 0 auto;
}

.pg-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  
  overflow: hidden;
  background: #f9fafb;
}

.pg-main img,
.pg-main video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pg-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 5px;
}

.pg-thumb {
  flex: 0 0 80px;
  height: 80px;
  border: 2px solid #e5e7eb;
  
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s;
  position: relative;
}

.pg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-thumb.active {
  border-color: #1a3a6b;
}

.pg-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: #1a3a6b;
}

@media (max-width: 768px) {
  .pg-thumb {
    flex: 0 0 60px;
    height: 60px;
  }
}
