/*
 * SHARK page - 7. Demo: the video thumbnail, linking to YouTube.
 */

.shark .video {
  position: relative;
  display: block;
  align-self: center;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sd-night);
  width: min(100%, calc((var(--sd-vh) - 2 * var(--sd-pad) - 230px) * 1.7778));
  min-width: min(100%, 480px);
}

.shark .video img {
  width: 100%;
}

.shark .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--sd-sky);
  color: var(--sd-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 599px) {
  .shark .play {
    width: 56px;
    height: 56px;
    left: auto;
    top: auto;
    right: 14px;
    bottom: 14px;
    transform: none;
  }

  .shark .play svg {
    width: 24px;
    height: 24px;
  }
}

/* ---- Brochure ---------------------------------------------------------------------- */

/* Demo: the thumbnail, its address printed under it */
.brochure-mode .shark .video {
  width: 120mm;
  min-width: 0;
  break-inside: avoid;
}

.brochure-mode .shark .play {
  width: 16mm;
  height: 16mm;
}
