/* === YouTube Lightbox Popup (no arrow, CMS-safe) === */

/* Inline layout: text → icon */
.yt-inline {
  display: flex;
  align-items: center;
  gap: 10px;               /* space between text and icon */
  line-height: 1.4;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Clickable text */
.yt-text {
  font-size: 1rem;
  color: #000;             /* change to brand color if desired */
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

/* Icon (normal <img>) */
.yt-img {
  display: inline-block;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform .15s ease, box-shadow .2s ease;
  vertical-align: middle;
}
.yt-img:hover,
.yt-img:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  outline: none;
}
.yt-img:active {
  transform: scale(0.97);
}

/* === Lightbox overlay === */
.yt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  place-items: center;
  z-index: 9999;
  opacity: 0;
}
.yt-overlay.is-open {
  display: grid;
  animation: ytFadeIn .18s ease forwards;
}

/* Dialog */
.yt-dialog {
  position: relative;
  width: min(92vw, 960px);
  background: #000;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: scale(.96);
  overflow: hidden;
}

/* Close button */
.yt-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.yt-close:hover,
.yt-close:focus-visible {
  background: rgba(0,0,0,.7);
  outline: none;
  transform: scale(1.05);
}

/* Iframe wrapper */
.yt-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.yt-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Prevent page scroll on popup */
body.yt-no-scroll {
  overflow: hidden;
}

/* Animations */
@keyframes ytFadeIn { to { opacity: 1; } }
@keyframes ytPop { to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .yt-overlay.is-open,
  .yt-dialog {
    animation: none !important;
  }
}
.yt-inline { gap: 14px; }
