/*
 * Styles the clone needs on top of the donor's own stylesheets.
 * tools/mirror/build.py attaches it last on every page (scripts/build-site-js.mjs copies it
 * from src/sitescripts/petronastwintowers/site.css).
 */

/* Iframes replaced by still images (tools/mirror/pages.py): the image fills the iframe's box. */
img.ptw-embed {
  display: block;
  object-fit: cover;
}

/* The theme caps the iframe of the experience page at 450 px below 1100 px (its rule in
   app.min.css names iframes, so the image needs the same cap). */
@media only screen and (max-width: 1100px) {
  main.the-towers section.virtual-experience img.ptw-embed {
    max-height: 450px;
  }
}

/* The YouTube player box of the donor: as wide as its column (the theme's iframe rule) and
   315 px high (the iframe's height attribute); the video was letterboxed inside it. */
img.ptw-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Smart Slider keeps its box height with a hidden svg of the slider's ratio and shows it for the
   current device from script; nothing else would give the sliders their height. */
.n2-ss-slider .n2-ss-preserve-size[data-related-device] {
  display: block;
}
