.cf-cinema {
  display: none; position: fixed; inset: 0; z-index: 2000;
  align-items: center; justify-content: center;
  padding: 28px 24px; box-sizing: border-box;
}
.cf-cinema.is-open { display: flex !important; }
.cf-cinema:focus { outline: none; }
.cf-cinema-dim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.cf-cinema-stage { position: relative; z-index: 1; }
.cf-cinema-frame {
  position: relative; box-sizing: border-box;
  background: #000; padding: 22px 22px 58px;
}
.cf-cinema-stage img {
  display: block; width: auto; height: auto;
  max-width: min(80vw,1440px); max-height: min(78vh,810px);
  object-fit: contain; background: #000; cursor: pointer;
}
.cf-cinema-hit {
  position: absolute; top: 22px; bottom: 58px; width: 28%; z-index: 2;
  margin: 0; padding: 0; border: 0; background: transparent;
  box-shadow: none; cursor: pointer; appearance: none;
}
.cf-cinema-prev { left: 22px; }
.cf-cinema-next { right: 22px; }
.cf-cinema-hit span { display: block; font-size: 38px; color: #ddd; text-shadow: 0 1px 4px #000; opacity: 0; }
.cf-cinema-prev span { text-align: left; padding-left: 6px; }
.cf-cinema-next span { text-align: right; padding-right: 6px; }
.cf-cinema-hit:hover span,.cf-cinema-hit:focus-visible span { opacity: 1; }
.cf-cinema-caption {
  position: absolute; left: 26px; right: 26px; bottom: 14px;
  font-family: Arial,Helvetica,sans-serif; color: #777; text-align: left;
}
.cf-cinema-title { margin: 0 0 5px; font-size: 15px; font-weight: 400; line-height: 1.25; }
.cf-cinema-count { margin: 0; font-size: 13px; line-height: 1.2; }
.cf-cinema-hit:focus-visible { outline: 2px solid #aaa; }
.cf-cinema [hidden] { display: none !important; }
@media (max-width:760px) {
  .cf-cinema { padding: 20px 8px; }
  .cf-cinema-frame { padding: 12px 12px 58px; }
  .cf-cinema-stage img { max-width: calc(100vw - 40px); max-height: min(74vh,810px); }
  .cf-cinema-hit { top: 12px; }
  .cf-cinema-prev { left: 12px; }
  .cf-cinema-next { right: 12px; }
  .cf-cinema-hit span { opacity: .7; }
}
