/* Alive PDP gallery — swipeable carousel + thumbnail strip */
.ag-mount {
  width: 100%;
  box-sizing: border-box;
}

.ag-root {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Stage = main image viewport */
.ag-stage {
  position: relative;
  width: 100%;
  background: #1a2f6b;
  overflow: hidden;
}

.ag-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ag-track::-webkit-scrollbar { display: none; }

.ag-slide {
  flex: 0 0 92%;
  scroll-snap-align: start;
  aspect-ratio: 336 / 320;
  background: #1a2f6b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ag-slide:first-child { margin-left: 0; }
.ag-slide:last-child { margin-right: 8%; }

.ag-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Counter chip */
.ag-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  pointer-events: none;
}

/* Zoom button */
.ag-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(9, 14, 36, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.ag-zoom:hover { background: #fff; transform: scale(1.05); }
.ag-zoom:active { transform: scale(0.95); }

/* Thumbnail strip */
.ag-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px 12px;
  background: #eef0f8;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.ag-thumbs::-webkit-scrollbar { display: none; }

.ag-thumb {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1.5px solid rgba(26, 47, 107, 0.18);
  background: #1a2f6b;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s;
}
.ag-thumb:hover { border-color: rgba(245, 184, 0, 0.55); }
.ag-thumb.is-active { border: 2px solid #f5b800; }
.ag-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Empty state */
.ag-empty {
  width: 100%;
  aspect-ratio: 336 / 320;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ede8d8 0%, #d8ccbc 50%, #e8e0d0 100%);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 47, 107, 0.4);
}

/* Lightbox */
.ag-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 12, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: agFade 0.18s ease;
}
.ag-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
@keyframes agFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Desktop: gallery sits in a sticky left column */
@media (min-width: 900px) {
  .ag-mount {
    width: 55%;
    flex-shrink: 0;
    position: sticky;
    top: 94px;
    align-self: flex-start;
  }
  .ag-root {
    max-width: 560px;
  }
  .ag-thumbs {
    padding: 12px 8px 4px;
    background: transparent;
    flex-wrap: wrap;
  }
}
