/* Measure the safe area supplied by the host, including in native fullscreen. */
.garden-player-frame {
  position: relative;
  container-type: size;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: clip;
  isolation: isolate;
  background: #d4ddc3;
}
.garden-player-frame::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(#f6ebd036, #21463524), url("./garden-landscape.webp") center / cover;
  filter: blur(3px);
}
.garden-player-frame > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--public-surface, #fff);
}
@media (min-width: 48rem) and (min-height: 34rem), (min-width: 64rem) and (orientation: landscape) {
  .garden-player-frame > iframe {
    /* Fit both dimensions before applying the maximum, including on ultrawide screens. */
    max-width: min(100cqw - 24px, 150cqh - 36px, 68rem);
    height: auto;
    aspect-ratio: 3 / 2;
    outline: 1px solid var(--public-border-color, #89998d);
    box-shadow: 0 12px 42px #163c2e3d;
  }
}
@media (min-width: 48rem) and (min-height: 34rem) and (orientation: portrait) {
  .garden-player-frame > iframe {
    max-width: min(100cqw - 20px, 75cqh - 15px, 44rem);
    aspect-ratio: 3 / 4;
  }
}
@media (orientation: portrait) {
  :root .force-landscape .garden-player-frame > iframe {
    position: absolute;
    inset: 0 auto auto 100%;
    width: 100cqh;
    max-width: none;
    height: 100cqw;
    transform-origin: 0 0;
    transform: rotate(90deg);
  }
}
@media (min-width: 48rem) and (min-height: 34rem) and (orientation: portrait) {
  :root .force-landscape .garden-player-frame > iframe {
    position: static;
    width: min(100cqh - 24px, 150cqw - 36px, 68rem);
    height: auto;
    aspect-ratio: 3 / 2;
    transform-origin: center;
  }
}
