/* 0.28.0: the home hero's film of Greece (inc/home-video.php). The video sits behind the hero's
   content under a petrol veil: 0.86 where the text runs (white body text stays above 4.5:1 even over
   a white frame), thinning to 0.55 on the right on wide screens, where no text sits. Square pause
   button, bottom right. */

.agk-hero.agk-hero--video { background: var(--brand); }
.agk-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--brand) url("../video/home-hero-poster.webp") center / cover no-repeat;
  animation: none !important;
}
@media (max-width: 767px) {
  .agk-hero__media { background-image: url("../video/home-hero-poster-800.webp"); }
}
.agk-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms var(--agk-ease-out, ease-out);
}
.agk-hero__video.is-playing,
.agk-hero__video.is-paused { opacity: 1; }
.agk-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 66, 99, 0.86);
}
@media (min-width: 1024px) {
  .agk-hero__media::after {
    background: linear-gradient(90deg, rgba(2, 66, 99, 0.88) 0%, rgba(2, 66, 99, 0.86) 58%, rgba(2, 66, 99, 0.55) 100%);
  }
}

.agk-hero__vbtn {
  position: absolute;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  background: rgba(2, 66, 99, 0.55);
  color: var(--on-dark);
  cursor: pointer;
  animation: none !important;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.agk-hero__vbtn[hidden] { display: none; }
.agk-hero__vbtn:hover { background: rgba(2, 66, 99, 0.85); border-color: #fff; }
.agk-hero__vbtn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.agk-hero__vicon--play { display: none; }
.agk-hero__vbtn.is-paused .agk-hero__vicon--play { display: block; }
.agk-hero__vbtn.is-paused .agk-hero__vicon--pause { display: none; }

@media (prefers-reduced-motion: reduce) {
  .agk-hero__video { transition: none; }
}
