.gymful-video-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #111;
}

.gymful-video-hero__media,
.gymful-video-hero__video,
.gymful-video-hero__iframe,
.gymful-video-hero__poster,
.gymful-video-hero__overlay,
.gymful-video-hero__gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gymful-video-hero__media {
  z-index: 1;
}

.gymful-video-hero__video,
.gymful-video-hero__poster,
.gymful-video-hero__iframe {
  display: block;
  border: 0;
  object-fit: cover;
  object-position: center center;
}

.gymful-video-hero__poster {
  z-index: 1;
  transition: opacity .45s cubic-bezier(.19,1,.22,1);
}

.gymful-video-hero__video,
.gymful-video-hero__iframe {
  z-index: 2;
  background: #111;
}

.gymful-video-hero.is-video-loaded .gymful-video-hero__poster {
  opacity: 0;
}

/* YouTube iframe background mode */
.gymful-video-hero--youtube .gymful-video-hero__iframe {
  pointer-events: none;
}


.gymful-video-hero__overlay {
  z-index: 3;
  pointer-events: none;
  background: rgba(0,0,0,.22);
}

.gymful-video-hero__gradient {
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 48%);
  opacity: .45;
}

.gymful-video-hero__link {
  position: absolute;
  z-index: 5;
  left: 28px;
  bottom: 28px;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  transition: opacity .25s ease, transform .25s ease;
}

.gymful-video-hero__link:hover,
.gymful-video-hero__link:focus {
  opacity: .8;
  transform: translateY(-1px);
}

.gymful-video-hero__controls {
  position: absolute;
  z-index: 6;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gymful-video-hero__control {
  appearance: none;
  border: 0;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.19,1,.22,1), background-color .25s ease, color .25s ease;
}

.gymful-video-hero__control:hover,
.gymful-video-hero__control:focus-visible {
  transform: translateY(-2px);
}

.gymful-video-hero__control svg {
  width: 20px;
  height: 20px;
  display: block;
}

.gymful-video-hero__control i {
  font-size: 20px;
  line-height: 1;
  display: block;
}

.gymful-video-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gymful-video-hero__icon--play,
.gymful-video-hero__icon--unmuted {
  display: none;
}

.gymful-video-hero.is-paused .gymful-video-hero__icon--pause {
  display: none;
}

.gymful-video-hero.is-paused .gymful-video-hero__icon--play {
  display: inline-flex;
}

.gymful-video-hero.is-unmuted .gymful-video-hero__icon--muted {
  display: none;
}

.gymful-video-hero.is-unmuted .gymful-video-hero__icon--unmuted {
  display: inline-flex;
}

@media (max-width: 767px) {
  .gymful-video-hero__controls {
    right: 18px;
    bottom: 18px;
  }
  .gymful-video-hero__link {
    left: 18px;
    bottom: 24px;
  }
}
