.monolito-video {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #090807;
}

/* Match the black gallery above and the dark video section below. */
.monolito-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, #000 0%, #0000 20%, #03040300 80%, #030403 100%);
}

.monolito-video__frame {
  position: relative;
  margin-inline: auto;
}

.monolito-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
}

.monolito-video__sound {
  position: absolute;
  z-index: 2;
  bottom: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid #ffffff6b;
  border-radius: 50%;
  color: #fff;
  background: #0009;
  cursor: pointer;
}

.monolito-video__sound:not([hidden]) {
  display: grid;
  place-items: center;
}

.monolito-video__sound svg {
  width: 1.35rem;
  height: 1.35rem;
}

.monolito-video__sound[aria-pressed="true"] .monolito-video__muted,
.monolito-video__sound[aria-pressed="false"] .monolito-video__audible {
  display: none;
}

.monolito-video__sound:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .monolito-video::before {
    content: "";
    position: absolute;
    inset: -2rem;
    z-index: -1;
    background:
      linear-gradient(90deg, #050403a6, #05040340 50%, #050403a6),
      url("/assets/videos/monolito-fotograma.webp") center 65% / cover no-repeat;
    filter: blur(1.5rem);
  }

  .monolito-video__frame {
    width: clamp(17rem, 46svh, 26rem);
    box-shadow: 0 0 3rem #0008;
  }
}
