/* YouTube "Videos" slide on hot-tub + swim-spa PDPs (wellness-yard-product-video). */
.twy-pdp__main-yt { position: relative; width: 100%; max-height: none; background: #000; }
.twy-yt__stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.twy-yt__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.twy-yt__facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.twy-yt__facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.twy-yt__play {
  position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(20, 23, 15, 0.72); color: #fff; transition: transform .15s ease, background .15s ease;
}
.twy-yt__play svg { margin-left: 3px; }
.twy-yt__facade:hover .twy-yt__play, .twy-yt__facade:focus-visible .twy-yt__play { transform: scale(1.08); background: rgba(20, 23, 15, 0.9); }

/* Clip picker under the player. */
/* width:0 + min-width:100% keeps the row out of the gallery's intrinsic
   width (the phone layout sizes to content), so it scrolls instead of
   stretching the page sideways. */
.twy-yt__clips { width: 0; min-width: 100%; box-sizing: border-box; display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #14170f; scrollbar-width: thin; }
.twy-yt__clip {
  position: relative; flex: 0 0 auto; width: 84px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent;
  border-radius: 4px; overflow: hidden; background: #000; cursor: pointer; opacity: .7; transition: opacity .15s ease;
}
.twy-yt__clip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.twy-yt__clip span {
  position: absolute; left: 3px; bottom: 3px; min-width: 16px; padding: 1px 4px; border-radius: 3px;
  background: rgba(0, 0, 0, .7); color: #fff; font: 600 10px/1.3 inherit; text-align: center;
}
.twy-yt__clip:hover, .twy-yt__clip:focus-visible { opacity: 1; }
.twy-yt__clip.is-active { opacity: 1; border-color: #fff; }

/* Strip thumb: poster + play + clip count badge. */
.twy-pdp__thumb--yt img { object-fit: cover; }
.twy-yt__count {
  position: absolute; top: 4px; right: 4px; z-index: 1; min-width: 18px; padding: 2px 5px; border-radius: 999px;
  background: #fff; color: #14170f; font: 700 10px/1.2 inherit; text-align: center; pointer-events: none;
}

.twy-yt-cta {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: 0; border-radius: 999px;
  background: rgba(20, 23, 15, 0.82); color: #fff;
  font: 600 13px/1 inherit; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.twy-yt-cta:hover, .twy-yt-cta:focus-visible { background: rgba(20, 23, 15, 0.95); }
.twy-pdp__main-img-wrap.is-yt-active .twy-yt-cta { display: none; }
@media (max-width: 600px) {
  .twy-yt-cta { left: 10px; bottom: 10px; padding: 8px 12px; font-size: 12px; }
  .twy-yt__clip { width: 72px; }
}

/* Sizing. Every other slide is an <img> whose intrinsic width sizes the
   gallery; the video slide has none. On desktop the wrap just needs to grow
   into the row. On phones the gallery row is a column with
   align-items:flex-start, which shrink-wraps the main column around its
   content, so the column and wrap must stretch or they collapse to 0px.
   youtube.js puts .is-yt-active on the wrap and on .twy-pdp__gallery-row. */
.twy-pdp__main-img-wrap.is-yt-active { flex: 1 1 auto; min-width: 0; }
@media (max-width: 900px) {
  .twy-pdp__gallery-row.is-yt-active > .twy-pdp__main-col,
  .twy-pdp__gallery-row.is-yt-active > .twy-pdp__main-img-wrap,
  .twy-pdp__main-img-wrap.is-yt-active { align-self: stretch; width: 100%; }
}

/* The "Special / Sale" roundel sits over the gallery and covers the
   player's controls, so it steps aside while a video is showing. */
.twy-pdp__gallery.is-yt-active > .twy-pdp-ht__badge { display: none; }
