/* BAIA 100 (YA11): hero framing and the deck-plan gallery tile for /yachts/baia-100-yacht-rental-dubai/ only, loaded after pages/yacht.css. The hero is
   the 1280x819 lead photograph (photo 1 of the gallery: the full yacht underway in open water); the vessel runs from the stern at x 185
   to the bow rail at x 1165 (14.5% to 91.0% of its width) and from the mast tip at y 240 to the keel line at
   y 640. The fades are kept outside that range at every width, so the bow, stern and glass roof stay in frame. No new pixels and no
   stretching.
   From 901 px the photograph fills the right-hand photo area the way the Fat Boy 66 page does: its own 1280:819 box, 92% of the area
   wide and bottom-aligned, and never taller than the area below the breadcrumb (header height plus 90 px). The shared left-to-right fade
   would cover the stern, so it is replaced on this page, in Light and in Dark (the shared Dark rule is more specific, so it is matched
   here with the same selector), by the photograph's own mask: the sky fades into the page colour over the top 22% of the photograph and
   its left edge over the first 12%. In Dark the white heading gets a soft page-colour halo where it can cross the pale sky (Dark only,
   this page only; measured with ya11/qa/hero-fade.py).
   Up to 480 px the shared cover crop would cut the stern and the bow, so the photograph gets its own 1280:819 box across the full width of
   the photo area, bottom-aligned, with only its top edge fading. From 481 to 900 px it gets its own uncropped 1280:819 box, centred below
   the header, with narrow side fades that end before the stern (12%) and start after the bow rail (96%).
   The last gallery item is the deck plan: it is shown whole (contain, on a white tile, no zoom on hover) with a visible "Deck plan" label,
   so the drawing is never cropped. */
@media(max-width:480px){
.uirh-yacht.uirh-yacht:is(body *) .pg-hero-bg > .discoverable-photo{inset:auto 0 0 0;width:100%;height:auto;aspect-ratio:1280/819;object-fit:cover;object-position:50% 50%;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 8%);mask-image:linear-gradient(to bottom,transparent 0,#000 8%)}
}
@media(min-width:481px) and (max-width:900px){
.uirh-yacht.uirh-yacht:is(body *) .pg-hero-bg > .discoverable-photo{inset:auto auto 0 50%;transform:translateX(-50%);width:auto;max-width:100%;height:calc(100% - var(--hh));aspect-ratio:1280/819;object-fit:contain;object-position:50% 100%;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 12%,#000 96%,transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 12%,#000 96%,transparent 100%)}
}
@media(min-width:901px){
.uirh-yacht.uirh-yacht:is(body *) .pg-hero-bg > .discoverable-photo{inset:auto 0 0 auto;width:auto;height:auto;max-width:92%;max-height:calc(100% - var(--hh) - 90px);aspect-ratio:1280/819;object-fit:contain;object-position:100% 100%;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 22%),linear-gradient(to right,transparent 0,#000 12%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to bottom,transparent 0,#000 22%),linear-gradient(to right,transparent 0,#000 12%);mask-composite:intersect}
.uirh-yacht.uirh-yacht:is(body *) .pg-hero-overlay,
.uirh-yacht.uirh-yacht:is(body *):is([data-theme="dark"] *) .pg-hero-overlay{background:none}
.uirh-yacht.uirh-yacht:is(body *):is([data-theme="dark"] *) .pg-hero h1{text-shadow:0 0 2px rgba(10,27,41,.95),0 0 8px rgba(10,27,41,.9),0 0 22px rgba(10,27,41,.8)}
}
.uirh-yacht.uirh-yacht:is(body *) .gal-item.gal-item--plan{background:#fff}
.uirh-yacht.uirh-yacht:is(body *) .gal-item.gal-item--plan::after{content:none}
.uirh-yacht.uirh-yacht:is(body *) .gal-item.gal-item--plan img{object-fit:contain;padding:6px 6px 30px;box-sizing:border-box}
.uirh-yacht.uirh-yacht:is(body *) .gal-item.gal-item--plan:hover img{transform:none}
.uirh-yacht.uirh-yacht:is(body *) .gal-plan-label{position:absolute;left:0;right:0;bottom:6px;text-align:center;font-size:13px;font-weight:600;letter-spacing:.04em;color:#0f2536}
