/* Fat Boy 66 (YA10): hero framing and the deck-plan gallery tile for /yachts/azimut-magellano-66-yacht-rental-dubai/ only, loaded after pages/yacht.css. The hero is
   the 1600x1067 lead photograph (photo 1 of the gallery: the full yacht with Ain Dubai behind it); the vessel runs from the swim platform
   at x 310 to the anchor at the bow at x 1378 (19.4% to 86.1% of its width) and from the radar-dome top at
   y 368 to the keel line at y 838. The fades are kept outside that range at every width, so the bow, stern and flybridge stay in frame.
   No new pixels and no stretching.
   From 901 px the photograph fills the right-hand photo area the way the Majesty 50 and Al Shaali 50 pages do: its own 1600:1067 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 and the wheel fade into the page colour
   over the top 26% 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 ya10/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 1600:1067 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 1600:1067 box, centred below
   the header, with narrow side fades that end before the stern and start after the bow.
   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:1600/1067;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:1600/1067;object-fit:contain;object-position:50% 100%;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 12%,#000 90%,transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 12%,#000 90%,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:1600/1067;object-fit:contain;object-position:100% 100%;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 26%),linear-gradient(to right,transparent 0,#000 12%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to bottom,transparent 0,#000 26%),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}
