/* =========================================================================
   About page — Full-width video section
   ========================================================================= */

.about-video {
  width: 100%;
}

.about-video__inner {
  position: relative;
  width: 100%;
  max-height: 810px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.about-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.about-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.about-video__play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.about-video__play svg {
  display: block;
  width: 72px;
  height: 72px;
}

.about-video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  object-fit: cover;
  border: 0;
}

/* Desktop: video full chieu cao viewport */
@media screen and (min-width: 1025px) {
  .about-video,
  .about-video__inner,
  #clinic-video,
  #clinic-video .about-video__inner {
    aspect-ratio: auto;
    max-height: none;
    height: 100vh;
    height: 100dvh;
  }

  /* Khi login WP -> admin bar (32px) day trang xuong; tru ra de video van full. */
  body.admin-bar .about-video,
  body.admin-bar .about-video__inner,
  body.admin-bar #clinic-video,
  body.admin-bar #clinic-video .about-video__inner {
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
  }
}
