/* ── RESULTS CAROUSEL GALLERY ── */
.gallery-section {
  padding: 0 clamp(24px,5vw,80px) clamp(40px,6vw,64px);
  background: transparent;
}

.gallery-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: clamp(16px,2vw,24px);
}

.gallery-header-text { display: flex; flex-direction: column; gap: 10px; }
.gallery-header-text h2 {
  font-size: clamp(1.6rem,3vw,2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.gallery-header-text p {
  font-size: clamp(0.85rem,1.2vw,1rem);
  font-weight: 300;
  color: rgba(215,226,234,0.6);
  max-width: 32rem;
  margin: 0;
}

.gallery-nav-buttons { display: flex; gap: 8px; flex-shrink: 0; }

.gallery-nav-btn {
  height: 40px; width: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--toggle-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.gallery-nav-btn:hover:not(:disabled) { border-color: var(--purple-2); }
.gallery-nav-btn:disabled { opacity: 0.35; pointer-events: none; }
.gallery-nav-btn svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 2; }

.gallery-viewport { overflow: hidden; margin: 0 -4px; touch-action: pan-y; }

.gallery-track {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  padding: 4px;
  gap: 20px;
  transition: transform 0.35s ease-out;
}

.gallery-card {
  display: block;
  flex-shrink: 0;
  width: clamp(230px, 78vw, 300px);
  border-radius: clamp(16px,2.5vw,20px);
  text-decoration: none;
  color: inherit;
}

@media (min-width: 640px) {
  .gallery-card { width: clamp(260px, 40vw, 300px); }
}

.gallery-card-inner {
  position: relative;
  overflow: hidden;
  border-radius: clamp(16px,2.5vw,20px);
  height: clamp(280px, 60vw, 22rem);
  border: 1px solid var(--border-card, var(--border));
  background: var(--bg-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gallery-card:hover .gallery-card-inner {
  border-color: var(--card-hover-border);
  box-shadow: 0 8px 32px var(--card-hover-shadow);
}

.gallery-card-inner img {
  position: absolute;
  height: 100%; width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.gallery-card:hover .gallery-card-inner img { transform: scale(1.05); }

.gallery-card-overlay {
  position: absolute; inset: 0; height: 100%;
  background: linear-gradient(to bottom, transparent 45%, rgba(0,0,0,0.55), rgba(0,0,0,0.85));
}

.gallery-card-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(18px,2.5vw,24px);
  color: #ffffff;
}
.gallery-card-content .card-title {
  margin-bottom: 6px;
  font-size: clamp(1rem,1.6vw,1.15rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.gallery-card-content .card-desc {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 300;
}

.gallery-dots { margin-top: clamp(24px,3vw,32px); display: flex; justify-content: center; gap: 8px; }
.gallery-dot {
  height: 8px; width: 8px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: var(--border);
  transition: background-color 0.2s, width 0.2s;
}
.gallery-dot.active { background: var(--purple-2); width: 20px; border-radius: 4px; }

/* ── LIGHTBOX ── */
.gallery-card-inner { cursor: zoom-in; }

.gallery-card-inner img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  -webkit-user-drag: none;
}

.lightbox {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px,5vw,60px);
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
  margin: 0 !important;
}
.lightbox.open {
  display: flex !important;
  opacity: 1;
}
.lightbox img {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
  cursor: zoom-in;
  touch-action: none;
  will-change: transform;
}
.lightbox img.zoomed { cursor: grab; }
.lightbox img.zoomed:active { cursor: grabbing; }

.lightbox-close {
  position: absolute;
  top: clamp(16px,3vw,32px);
  right: clamp(16px,3vw,32px);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
.lightbox-close svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; fill: none; }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 1001;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
.lightbox-arrow svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2; fill: none; }
.lightbox-prev { left: clamp(10px,3vw,28px); }
.lightbox-next { right: clamp(10px,3vw,28px); }
@media (max-width: 560px) {
  .lightbox-arrow { width: 38px; height: 38px; }
  .lightbox-arrow svg { width: 18px; height: 18px; }
}