.gallery {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 15px;
}

.gallery-image-container {
  position: relative;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-main:not([src]) {
  opacity: 0;
}

.gallery-main-incoming {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
}

.circle {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.6;
  transition: all 0.2s ease;
  height: 50px;
  width: 50px;
  border-radius: 25px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.gallery-left,
.gallery-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.gallery-left {
  left: 10px;
}
.gallery-right {
  right: 10px;
}

.gallery-left:hover .circle,
.gallery-right:hover .circle {
  opacity: 0.9;
  transform: scale(1.1);
}

.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gallery-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-indicator:hover {
  background: rgba(255,255,255,0.7);
  transform: scale(1.2);
}

.gallery-indicator.active {
  background: rgba(255,255,255,0.9);
  transform: scale(1.3);
}

.gallery-caption {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  pointer-events: none;
  text-align: center;
  width: fit-content;
  opacity: 0;
}