.gallery-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
}

/* Fixed frame that stays in place */
.gallery-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 4px solid #000;
  box-sizing: border-box;
  background-color: #d3d3d3;
  overflow: hidden;
}

.gallery-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  height: 100%;
  transition: transform 0.3s ease-out;
  touch-action: pan-y pinch-zoom;
}

.gallery-slide {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.gallery-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
}

.gallery-arrow {
  background: #000080;
  color: white;
  border: 2px solid #000;
  padding: 10px 20px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

.gallery-arrow:hover {
  background: #0000CC;
}

.gallery-arrow:active {
  background: #000066;
}

.gallery-counter {
  color: #000;
  font-weight: bold;
  font-size: 14px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #666;
  border: 1px solid #000;
  cursor: pointer;
}

.gallery-dot.active {
  background: #000080;
}

.gallery-buy {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.gallery-buy-btn {
  background: #000080;
  color: white;
  border: 2px solid #000;
  padding: 12px 30px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.gallery-buy-btn:hover {
  background: #0000CC;
}

@media (max-width: 600px) {
  .gallery-arrow {
    padding: 8px 15px;
    font-size: 16px;
  }
}
