/* ===============================
   ATMS Video Section
================================ */

.atms-video-section {
  width: 100%;
  background: #fdfff6;
  font-family: "Geist", Arial, sans-serif;
  padding: 129px 20px;
  overflow: hidden;
}

.atms-video-section *,
.atms-video-section *::before,
.atms-video-section *::after {
  box-sizing: border-box;
}

.atms-video-container {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
}

.atms-video-box {
  position: relative;
  width: 100%;
  max-width: 1184px;
  height: 516px;
  margin: 0 auto;

  border-radius: 30px;
  overflow: hidden;

  background-image: var(--video-poster);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  cursor: default;
}

/* No poster hover effect */
.atms-video-box::before,
.atms-video-box::after {
  display: none !important;
  content: none !important;
}

/* Self-hosted video loaded only after click */
.atms-video-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  object-fit: cover;
  z-index: 4;
}

/* ===============================
   Play Button
================================ */

.atms-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;

  width: 92px;
  height: 92px;

  border: 0 !important;
  outline: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;

  padding: 0 !important;
  margin: 0 !important;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translate(-50%, -50%) scale(1);
  cursor: pointer;

  box-shadow: none !important;
  text-decoration: none !important;
  appearance: none;
  -webkit-appearance: none;

  transition: none !important;
}

.atms-video-play::before {
  content: "";
  display: block;
  width: 92px;
  height: 92px;

  background-image: var(--play-icon);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;

  transition: background-image 220ms ease;
}

/* Icon changes ONLY when hovering/focusing the play button */
.atms-video-play:hover::before,
.atms-video-play:focus::before,
.atms-video-play:focus-visible::before {
  background-image: var(--play-icon-hover);
}

.atms-video-play:hover,
.atms-video-play:focus,
.atms-video-play:active,
.atms-video-play:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translate(-50%, -50%) scale(1);
}

.atms-video-box.is-loaded .atms-video-play {
  display: none;
}

/* ===============================
   Laptop
================================ */

@media (max-width: 1366px) {
  .atms-video-section {
    padding: 100px 20px;
  }

  .atms-video-container {
    max-width: 980px;
  }

  .atms-video-box {
    max-width: 980px;
    height: 427px;
    border-radius: 28px;
  }

  .atms-video-play,
  .atms-video-play::before {
    width: 78px;
    height: 78px;
  }
}

/* ===============================
   Tablet
================================ */

@media (max-width: 991px) {
  .atms-video-section {
    padding: 82px 24px;
  }

  .atms-video-container {
    max-width: 720px;
  }

  .atms-video-box {
    max-width: 720px;
    height: 314px;
    border-radius: 26px;
  }

  .atms-video-play,
  .atms-video-play::before {
    width: 68px;
    height: 68px;
  }
}

/* ===============================
   Mobile
================================ */

@media (max-width: 767px) {
  .atms-video-section {
    padding: 70px 18px;
  }

  .atms-video-box {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
  }

  .atms-video-play,
  .atms-video-play::before {
    width: 62px;
    height: 62px;
  }
}

/* ===============================
   Small Mobile
================================ */

@media (max-width: 480px) {
  .atms-video-section {
    padding: 60px 18px;
  }

  .atms-video-box {
    border-radius: 22px;
  }

  .atms-video-play,
  .atms-video-play::before {
    width: 56px;
    height: 56px;
  }
}