/* ── Hero ── */
.gallery-hero {
  padding: calc(var(--section-gap) * 0.8) 0;
  border-bottom: 1px solid var(--color-primary-border);
}

/* ── Video ── */
.video-section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.video-embed-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-primary-border);
  background: var(--color-dark-2);
}
.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.video-play-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}
.video-play-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(46, 216, 180, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
  box-shadow: 0 0 40px rgba(46, 216, 180, 0.3);
}
.video-play-btn:hover .video-play-circle {
  transform: scale(1.1);
  background: var(--color-primary);
}
.video-play-circle svg {
  width: 28px;
  height: 28px;
  fill: #0a0a0a;
  margin-left: 4px;
}
.video-embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}
.video-embed-wrapper.playing iframe   { display: block; }
.video-embed-wrapper.playing .video-thumb,
.video-embed-wrapper.playing .video-play-btn { display: none; }

/* ── Gallery sections ── */
.gallery-section {
  padding: var(--section-gap) 0;
}
.gallery-section + .gallery-section {
  padding-top: 0;
}
.gallery-header {
  margin-bottom: 32px;
}
.gallery-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-top: 8px;
}

.gallery-grid {
  display: grid;
  gap: 10px;
}
.gallery-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid--4 { grid-template-columns: repeat(4, 1fr); }

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-md);
  background: var(--color-dark-2);
}
.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.gallery-item:hover .gallery-item__img {
  transform: scale(1.05);
}
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 216, 180, 0.12);
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}
.gallery-item__zoom {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(46, 216, 180, 0.6);
  background: rgba(10, 10, 10, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transform: scale(0.8);
  transition: transform var(--transition-fast);
}
.gallery-item:hover .gallery-item__zoom {
  transform: scale(1);
}
.gallery-item__zoom svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__img {
  max-width: min(90vw, 520px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--color-gray-mid);
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition-fast);
  line-height: 1;
}
.lightbox__close:hover { color: var(--color-white); }
.lightbox__close svg { width: 24px; height: 24px; stroke: currentColor; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.lightbox__nav:hover {
  background: rgba(46, 216, 180, 0.15);
  border-color: rgba(46, 216, 180, 0.5);
}
.lightbox__nav svg { width: 20px; height: 20px; stroke: currentColor; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--color-gray-mid);
}

@media (max-width: 900px) {
  .gallery-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav { display: none; }
}
@media (max-width: 480px) {
  .gallery-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gallery-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .video-play-circle { width: 60px; height: 60px; }
  .video-play-circle svg { width: 22px; height: 22px; }
}
