/* ── Us_cluster Tour Gallery ── */

.usg {
  margin-top: 32px;
  margin-bottom: 0;
  width: 100%;
}

/* ── Main stage ── */
.usg__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.usg__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Video overlay ── */
.usg__video-hint {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
.usg__video-hint.is-on {
  display: flex;
}
.usg__play-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.90);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.usg__play-icon svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
}

/* ── Nav arrows ── */
.usg__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  transition: background 0.13s;
}
.usg__arrow:hover {
  background: #fff;
}
.usg__arrow svg {
  width: 16px;
  height: 16px;
  stroke: #f9771c;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.usg__arrow--prev { left: 10px; }
.usg__arrow--next { right: 10px; }

/* ── Counter ── */
.usg__counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  border-radius: 999px;
  padding: 2px 9px;
  pointer-events: none;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* ── Thumbnail strip ── */
.usg__thumbs {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.usg__thumbs::-webkit-scrollbar {
  display: none;
}
.usg__thumb {
  flex-shrink: 0;
  width: 90px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  opacity: 0.58;
  cursor: pointer;
  transition: border-color 0.12s, opacity 0.12s;
  background: #ccc;
  box-sizing: border-box;
}
.usg__thumb.is-active,
.usg__thumb:hover {
  border-color: #f9771c;
  opacity: 1;
}

/* ── Lightbox ── */
.usg__lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.92);
}
.usg__lb.is-open {
  display: flex;
  animation: usg-lb-in 0.15s ease;
}
@keyframes usg-lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.usg__lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: background 0.12s;
}
.usg__lb-close:hover {
  background: rgba(255, 255, 255, 0.16);
}
.usg__lb-close svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
}

.usg__lb-img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 4px;
  object-fit: contain;
}
.usg__lb-video {
  display: none;
  width: 90vw;
  height: 50.625vw;
  max-height: 84vh;
  border: 0;
  border-radius: 4px;
  background: #000;
}

.usg__lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: background 0.12s;
}
.usg__lb-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
}
.usg__lb-arrow svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.usg__lb-arrow--prev { left: 14px; }
.usg__lb-arrow--next { right: 14px; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .usg__thumb  { width: 62px; height: 40px; }
  .usg__arrow  { width: 28px; height: 28px; }
  .usg__arrow svg { width: 13px; height: 13px; }
  .usg__lb-arrow { width: 32px; height: 32px; }
}
