/* Video Gallery — YouTube embed auto slider */

.youtube-videos-section {
  background: #faf7f4;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.youtube-videos-section .section-header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.youtube-videos-section .section-header h2 {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: #242729;
  margin: 0;
  letter-spacing: -0.01em;
}

.youtube-videos-section .section-label,
.youtube-videos-section .section-description {
  display: none;
}

.youtube-slider {
  position: relative;
  --slides-per-view: 4;
  --slide-gap: 1rem;
  --autoplay-ms: 3000ms;
  padding-inline: clamp(2.5rem, 5vw, 3.25rem);
}

.youtube-slider-viewport {
  overflow: hidden;
  border-radius: 4px;
}

.youtube-slider-track {
  display: flex;
  gap: var(--slide-gap);
  transition: transform 620ms var(--ease-luxury);
  will-change: transform;
}

.youtube-slider-card {
  flex: 0 0
    calc(
      (100% - (var(--slides-per-view) - 1) * var(--slide-gap)) /
        var(--slides-per-view)
    );
  min-width: 0;
}

.youtube-slider-card-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 28px rgba(40, 23, 10, 0.14);
}

.youtube-slider-card-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.65rem;
  height: 2.65rem;
  border: none;
  border-radius: 50%;
  background: #1f2122;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(29, 111, 191, 0.35);
  transition:
    background 220ms ease,
    transform 220ms var(--ease-luxury),
    box-shadow 220ms ease;
}

.youtube-slider-btn:hover:not([disabled]) {
  background: #155a9c;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 8px 26px rgba(29, 111, 191, 0.45);
}

.youtube-slider-btn:focus-visible {
  outline: 2px solid #1d6fbf;
  outline-offset: 3px;
}

.youtube-slider-btn.prev {
  left: 0;
}

.youtube-slider-btn.next {
  right: 0;
}

.youtube-slider-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.youtube-slider-channel {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.95rem;
}

.youtube-slider-channel a {
  color: #1d6fbf;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.youtube-slider-channel a:hover {
  color: #155a9c;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 1100px) {
  .youtube-slider {
    --slides-per-view: 4;
  }
}

@media (max-width: 900px) {
  .youtube-slider {
    --slides-per-view: 3;
    --slide-gap: 0.85rem;
  }
}

@media (max-width: 640px) {
  .youtube-slider {
    --slides-per-view: 2;
    --slide-gap: 0.75rem;
    padding-inline: 2.35rem;
  }

  .youtube-slider-btn {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .youtube-slider-track {
    transition: none;
  }
}
