/* UD30 Black and Gold Sunseeker 90 (YA5): page-scoped additions for /yachts/black-yacht-rental-dubai/ only, loaded after pages/yacht.css.
   1. The gallery's second photograph is a historical image from before the 2026 refit. Its thumbnail carries a visible label (.gal-tag),
      and the gallery viewer shows the matching caption (.lbox-hist, the sibling after #lboxImg) only while that photograph is on screen.
      The shared viewer script is unchanged: it sets the image src, and this selector follows it. The caption sits on the viewer's own
      dark backdrop, so its colours are the viewer's fixed light-on-dark colours in both themes.
   2. Hero framing: see the rule at the end of this file. */
.uirh-yacht.uirh-yacht:is(body *) .gal-tag{position:absolute;left:8px;bottom:8px;z-index:1;display:inline-block;max-width:calc(100% - 16px);padding:5px 10px;border-radius:999px;background:rgba(8,23,36,.84);color:#EAF1F7;font:600 11.5px/1.3 var(--f);letter-spacing:.02em;pointer-events:none}
.uirh-yacht.uirh-yacht:is(body *) .lbox-hist{display:none}
.uirh-yacht.uirh-yacht:is(body *) #lboxImg[src*="90ft-black-sunseeker-yacht-rental-dubai-02-historical-pre-refit-cruising.webp"] + .lbox-hist{display:block;position:absolute;left:50%;bottom:clamp(10px,2.5vh,22px);transform:translateX(-50%);width:max-content;max-width:min(calc(100% - 32px),760px);margin:0;padding:8px 14px;border-radius:12px;background:rgba(8,23,36,.88);color:#EAF1F7;font:400 13px/1.5 var(--f);text-align:center}
.uirh-yacht.uirh-yacht:is(body *) .lbox-hist strong{color:#D9B981;font-weight:600}
/* 2. Hero framing. The lead is a 1536x961 photograph whose vessel spans x 0 to 1280 and y 166 to 870: the stern platform already
   touches the photograph's left edge, so no crop may move further into the stern. The shared hero crops the photograph with
   object-fit:cover around 50% 55%, which cut 50 to 86px of the stern (the platform and the UD30 transom) on phones up to 480px and
   up to 248px of the stern and 82px of the bow in the half-width desktop column between 901px and 1639px (measured, ya5/qa/hero-crop.mjs).
   - 599px or less, and 901px to 1919px: the photograph is given its own 1536:961 box across the full width of the photo area,
     bottom-aligned, so the whole photograph and the whole vessel are shown (no stretching, no new pixels). Only the sky above the
     radar mast fades into the page colour (mask 0 to 15%; the mast top sits at 17% of the photograph's height).
   - 600px to 900px and from 1920px: the shared cover crop already holds the vessel's full length at these box ratios once it is
     anchored at the stern (x 0%), and the vertical position 60% (600 to 900px) keeps the mast in view. (The hero's height follows
     the two-line H1, so the desktop photo box is only wide enough for the anchored cover crop from about 1760px; the fitted box is
     kept up to 1919px for margin.)
   The shared overlay is unchanged: on desktop its left-to-right fade lies over the stern, as it lies over the left of every lead. */
@media(min-width:600px) and (max-width:900px){
.uirh-yacht.uirh-yacht:is(body *) .pg-hero-bg > .discoverable-photo{object-position:0% 60%}
}
@media(min-width:1920px){
.uirh-yacht.uirh-yacht:is(body *) .pg-hero-bg > .discoverable-photo{object-position:0% 55%}
}
@media(min-width:901px) and (max-width:1919px),(max-width:599px){
.uirh-yacht.uirh-yacht:is(body *) .pg-hero-bg > .discoverable-photo{inset:auto 0 0 0;width:100%;height:auto;aspect-ratio:1536/961;object-fit:cover;object-position:50% 50%;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 15%);mask-image:linear-gradient(to bottom,transparent 0,#000 15%)}
}
