html:has(#fde-poster[open]){overflow:hidden}
#fde-poster{
  position:fixed;
  inset:0;
  margin:auto;
  padding:0;
  border:0;
  border-radius:12px;
  max-width:calc(100vw - 32px);
  max-height:none;
  overflow:hidden;
  background:#fff;
  box-shadow:0 16px 48px rgba(0,0,0,.3);
}
#fde-poster::backdrop{background:rgba(0,0,0,.62)}
#fde-poster a,#fde-poster img{display:block}
#fde-poster img{
  width:auto;
  height:auto;
  max-width:min(540px,calc(100vw - 32px));
  max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px);
  object-fit:contain;
}
#fde-poster-close{
  position:absolute;
  top:14px;
  right:14px;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  padding:0;
  border:1px solid rgba(255,255,255,.7);
  border-radius:50%;
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
#fde-poster-close::after{content:"";position:absolute;inset:-7px}
#fde-poster-close:focus-visible{outline:2px solid #fff;outline-offset:2px}
#fde-poster a:focus-visible{outline:3px solid #087562;outline-offset:-3px}
