/* Majesty 50 (YA9, revision 4): hero framing for /yachts/majesty-50-yacht-rental-dubai/ only, loaded after pages/yacht.css. The hero is the 1491x1055
   marina side-profile photograph (photo 2 of the gallery); the vessel runs from the swim platform at x 78 to the bow at x 1465
   (5.2% to 98.3% of its width) and from the flag-pole top at y 345 to the keel line at y 862. The side 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 Al Shaali 50 page does: its own 1491:1055 box, 92% of the
   area wide and bottom-aligned, and never taller than the area below the breadcrumb (header height plus 90 px), so the small
   breadcrumb text never sits on the photograph. Width and height are auto under those two limits, so the box keeps the photograph's
   own proportions and its left fade always sits on its real left edge. The shared left-to-right fade, opaque over the first 18% of the
   area, would hide 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 towers fade into the page colour over the top 28%
   of the photograph and its left edge over the first 4%. In Dark the white heading can cross the pale towers at the top left of
   the photograph, so it gets a soft page-colour halo there (Dark only, this page only; measured with ya9/qa/hero-fade.py).
   Up to 480 px the shared cover crop would cut the swim platform and the bow, so the photograph gets its own 1491:1055 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 1491:1055
   box, centred below the header, with narrow side fades that end before the stern and start after the bow.
   Measured with scripts/ui-system/ya9/qa/hero-crop.mjs (whole vessel) and hero-fade.mjs/.py (overlay, stern, heading and
   breadcrumb contrast). */
@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:1491/1055;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:1491/1055;object-fit:contain;object-position:50% 100%;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 4%,#000 98.5%,transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 4%,#000 98.5%,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:1491/1055;object-fit:contain;object-position:100% 100%;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 28%),linear-gradient(to right,transparent 0,#000 4%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to bottom,transparent 0,#000 28%),linear-gradient(to right,transparent 0,#000 4%);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)}
}
