:root {
  --surface: #2c2c2c;
  --gap: 12px;
  --radius: 5px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

.sub {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.8rem;
}

.sub span {
  color: var(--primary);
}

/* ════════════════ SLIDER SHELL ════════════════ */
.slider-shell {
  position: relative;
  width: 100%;
  max-width: 1280px;
}

/* ════════════════ VIEWPORT ════════════════ */
.slider-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

/* ════════════════ TRACK ════════════════ */
.slider-track {
  display: flex;
  gap: var(--gap);
  transition: transform .52s var(--ease);
  will-change: transform;
  cursor: grab;
}

.slider-track.is-dragging {
  transition: none;
  cursor: grabbing;
}

/* ════════════════ SLIDES ════════════════ */
/*
      --slides-visible is set via JS per breakpoint.
      Each slide width = (100% - gaps) / visible
    */
.slide {
  flex: 0 0 var(--slide-w);
  width: var(--slide-w);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--surface);
}

.slide-inner {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
  pointer-events: none;
}

.slide:hover img {
  transform: scale(1.06);
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1rem .75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.slide-caption .title {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
  line-height: 1.2;
}

.zoom-hint {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .65rem;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .07em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.zoom-hint svg {
  width: 13px;
  height: 13px;
}

/* ════════════════ ARROWS ════════════════ */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 2px;
  background: var(--secondary);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .22s ease, border-color .22s ease, transform .22s ease, opacity .22s ease;
}

.arrow:hover {
  background: rgba(200, 168, 75, .28);
  border-color: var(--secondary);
  transform: translateY(-50%) scale(1.08);
  color: var(--secondary)
}

.arrow:active {
  transform: translateY(-50%) scale(.94);
}

.arrow.disabled {
  opacity: .25;
  pointer-events: none;
}

.arrow svg {
  width: 18px;
  height: 18px;
}

.arrow-prev {
  left: -23px;
}

.arrow-next {
  right: -23px;
}

@media (max-width: 600px) {
  .arrow-prev {
    left: 4px;
  }

  .arrow-next {
    right: 4px;
  }
}

/* ════════════════ DOTS + COUNTER ════════════════ */
.slider-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.1rem;
}

.dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .1);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .28s ease, width .28s ease, border-radius .28s ease;
}

.dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
  border-color: var(--primary);
}

.dot:hover:not(.active) {
  background: rgba(255, 255, 255, .38);
}

.counter {
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--muted);
}

.counter strong {
  color: var(--primary);
}

/* ════════════════ LIGHTBOX ════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(5px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-wrap {
  position: relative;
  width: min(94vw, 1300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lb-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  max-height: 82vh;
}

.lb-track {
  display: flex;
  transition: transform .45s var(--ease);
  will-change: transform;
}

.lb-track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.lb-slide {
  flex: 0 0 100%;
  max-height: 82vh;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  max-height: 82vh;
}

/* lb bottom bar */
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  width: 100%;
}

.lb-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.lb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .28s ease, width .28s ease, border-radius .28s ease;
   border: none;
}

.lb-dot.active {
  background: var(--primary);
  width: 18px;
  border-radius: 4px;
}

.lb-dot:hover:not(.active) {
  background: rgba(255, 255, 255, .45);
}

.lb-caption {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

/* lb arrows */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 1.5rem));
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 2px;
  background: rgba(15, 15, 15, .85);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}

.lb-arrow:hover {
  background: rgba(200, 168, 75, .28);
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(calc(-50% - 1.5rem)) scale(1.07);
}

.lb-arrow:active {
  transform: translateY(calc(-50% - 1.5rem)) scale(.95);
}

.lb-arrow svg {
  width: 22px;
  height: 22px;
}

.lb-prev {
  left: max(-26px, -3vw);
}

.lb-next {
  right: max(-26px, -3vw);
}

/* lb top bar */
.lb-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.2rem;
  pointer-events: none;
}

.lb-counter-top {
  font-size: .78rem;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .4);
  background: rgba(0, 0, 0, .45);
  padding: .28rem .65rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .07);
  pointer-events: none;
}

.lb-counter-top strong {
  color: var(--primary);
}

.lb-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 15, 15, .8);
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  pointer-events: all;
  transition: background .22s ease, border-color .22s ease;
}

.lb-close:hover {
  background: rgba(200, 168, 75, .28);
  border-color: var(--primary);
}

.lb-close svg {
  width: 15px;
  height: 15px;
}