/* Shared interaction design for the main sites in this bundle. */
@media (max-width: 768px) {
  .global-menu-standard {
    box-sizing: border-box !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 62px !important;
    margin: 0 !important;
    padding: 5px 2px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  .global-menu-standard > span {
    position: static !important;
    display: block !important;
    width: 36px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: currentColor !important;
    opacity: 1 !important;
    transform: none !important;
    transition: transform .22s ease, opacity .22s ease !important;
  }

  .global-menu-standard > small,
  .global-menu-standard > b {
    display: block !important;
    margin: 1px 0 0 !important;
    color: inherit !important;
    font: 700 10px/1.1 Arial, sans-serif !important;
    letter-spacing: .15em !important;
    text-transform: uppercase !important;
  }

  .global-menu-standard[aria-expanded="true"] > span:nth-of-type(1) {
    transform: translateY(9px) rotate(45deg) !important;
  }

  .global-menu-standard[aria-expanded="true"] > span:nth-of-type(2) {
    opacity: 0 !important;
  }

  .global-menu-standard[aria-expanded="true"] > span:nth-of-type(3) {
    transform: translateY(-9px) rotate(-45deg) !important;
  }
}

/* Unified YouTube thumbnail: image, subtle shade, centered circular play mark. */
:where(.youtube-thumb, .video-thumb, .works-video-card > a) {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: #0d0d0d;
  color: #fff;
  cursor: pointer;
}

:where(.youtube-thumb, .video-thumb, .works-video-card > a) > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease, filter .28s ease;
}

:where(.youtube-thumb, .video-thumb, .works-video-card > a)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .35));
}

:where(.youtube-thumb > span, .video-thumb > .play-mark, .works-play-mark) {
  position: absolute !important;
  inset: 50% auto auto 50% !important;
  z-index: 2 !important;
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  border-radius: 50% !important;
  background: rgba(12, 12, 12, .62) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  transform: translate(-50%, -50%) !important;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

:where(.youtube-thumb > span, .video-thumb > .play-mark, .works-play-mark)::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
}

:where(.youtube-thumb, .video-thumb, .works-video-card > a):is(:hover, :focus-visible) > img {
  filter: brightness(.82) contrast(1.06);
  transform: scale(1.025);
}

.youtube-preview,
.work-youtube-list {
  min-width: 0;
}

.youtube-preview iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #000;
}

@media (max-width: 520px) {
  :where(.youtube-thumb, .video-thumb, .works-video-card > a) {
    border-radius: 8px;
  }

  :where(.youtube-thumb > span, .video-thumb > .play-mark, .works-play-mark) {
    width: 48px !important;
    height: 48px !important;
  }
}
