/* VAGUE shared editorial frames. Source: the approved Carriages homepage banner. */
:root{
 --vague-editorial-frame:1px solid rgba(198,164,124,.65);
 --vague-editorial-radius:10px;
 --vague-editorial-night:#080e12;
 --vague-editorial-canvas:#0b1820;
 --vague-editorial-side-fade:linear-gradient(90deg,transparent 0%,transparent 40%,rgba(8,14,18,.08) 49%,rgba(8,14,18,.26) 57%,rgba(8,14,18,.54) 65%,rgba(8,14,18,.81) 77%,#080e12 90%,#080e12 100%);
 --vague-editorial-mobile-fade:linear-gradient(180deg,transparent 82%,rgba(8,14,18,.15) 89%,#080e12 100%);
 --vague-editorial-caption-fade:linear-gradient(180deg,transparent 0%,transparent 54%,rgba(8,14,18,.08) 64%,rgba(8,14,18,.26) 72%,rgba(8,14,18,.54) 80%,rgba(8,14,18,.81) 90%,#080e12 100%);
 --vague-editorial-edge-mask:linear-gradient(180deg,#000 0%,#000 72%,rgba(0,0,0,.98) 79%,rgba(0,0,0,.86) 85%,rgba(0,0,0,.60) 91%,rgba(0,0,0,.23) 97%,transparent 100%);
}
/* Large editorial boxes: one hairline overlay, never a double border. */
html body.home-page #carriage.vague-carriage-framed .vague-carriage-panel,
html body.home-page #home-mille-miglia .vague-home-mm-panel,
html body.mm-page section.mm-cta .mm-cta-panel{
 position:relative;isolation:isolate;border:0!important;border-radius:var(--vague-editorial-radius)!important;
 background:var(--vague-editorial-night)!important;box-shadow:none!important;overflow:hidden;
}
html body.home-page #carriage.vague-carriage-framed .vague-carriage-panel::after,
html body.home-page #home-mille-miglia .vague-home-mm-panel::after,
html body.mm-page section.mm-cta .mm-cta-panel::after{
 content:""!important;display:block!important;position:absolute;inset:0;box-sizing:border-box;
 border:var(--vague-editorial-frame)!important;border-radius:inherit;pointer-events:none;z-index:5;
 background:none!important;box-shadow:none!important;
}
/* Retain the exact source photograph and the Carriages fade. */
html body.home-page #carriage.vague-carriage-framed .carriage-visual{background:var(--vague-editorial-night)!important}
html body.home-page #carriage.vague-carriage-framed .carriage-visual::after{background:var(--vague-editorial-side-fade)!important}
/* The Alfa Romeo artwork already has lettering baked into its right side.
   Keep the same midnight endpoint and smooth easing, but finish the fade
   before those letters. No enlarged/blurred duplicate image. */
html body.home-page #home-mille-miglia .vague-home-mm-visual,
html body.mm-page section.mm-cta .mm-cta-visual{background:var(--vague-editorial-night)!important}
html body.home-page #home-mille-miglia .vague-home-mm-visual::before,
html body.mm-page section.mm-cta .mm-cta-visual::before{content:none!important;display:none!important;background:none!important;filter:none!important;transform:none!important}
html body.home-page #home-mille-miglia .vague-home-mm-visual img,
html body.mm-page section.mm-cta .mm-cta-visual img{mask-image:linear-gradient(90deg,#000 0%,#000 46%,rgba(0,0,0,.998) 51%,rgba(0,0,0,.985) 55%,rgba(0,0,0,.94) 57.5%,rgba(0,0,0,.76) 59%,rgba(0,0,0,.42) 60.5%,rgba(0,0,0,.12) 61.7%,transparent 62.5%)!important;-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 46%,rgba(0,0,0,.998) 51%,rgba(0,0,0,.985) 55%,rgba(0,0,0,.94) 57.5%,rgba(0,0,0,.76) 59%,rgba(0,0,0,.42) 60.5%,rgba(0,0,0,.12) 61.7%,transparent 62.5%)!important;filter:none!important}
html body.home-page #home-mille-miglia .vague-home-mm-visual::after,
html body.mm-page section.mm-cta .mm-cta-visual::after{content:none!important;display:none!important;background:none!important}
html body.home-page #home-mille-miglia .vague-home-mm-copy,
html body.mm-page section.mm-cta .mm-wrap.mm-cta-copy{background:none!important;box-shadow:none!important}
/* Existing editorial cards: same gold line and navy surface. No new boxes
   around intentionally frameless product catalogues or plain text sections. */
html body .vhp-card,
html body .project-card,
html body .hero-feature,
html body .garage-service-card,
html body .mm-card,
html body .mm-stage,
html body .vdm-card,
html body .rlg-card,
html body .cc-future-panel,
html body .cc-contact,
html body .feature:has(>.feature-caption){
 border:var(--vague-editorial-frame)!important;border-radius:var(--vague-editorial-radius)!important;
 background:var(--vague-editorial-night)!important;box-shadow:none!important;
}
html body .vhp-card,
html body .project-card,
html body .garage-service-card,
html body .mm-card{overflow:hidden}
html body .vhp-video,
html body .video-thumb,
html body .feature-video,
html body .garage-service-photo{background:var(--vague-editorial-night)!important}
html body .vhp-video>img,
html body .video-thumb>img,
html body .feature-video>img,
html body .garage-service-photo>img,
html body .mm-card.mm-service>img{
 mask-image:var(--vague-editorial-edge-mask);
 -webkit-mask-image:var(--vague-editorial-edge-mask);
}
/* Film tiles have real links and play controls: fade only the picture. */
html body .feature:has(>.feature-caption)>a{background:var(--vague-editorial-night)}
html body .feature:has(>.feature-caption)>a>img{mask-image:var(--vague-editorial-edge-mask);-webkit-mask-image:var(--vague-editorial-edge-mask)}
/* Existing two-sided service cards: keep flip interaction intact. */
html body.home-page #services.services-tiles .vague-flip-face{
 border:var(--vague-editorial-frame)!important;border-radius:var(--vague-editorial-radius)!important;
 background:var(--vague-editorial-night)!important;
}
html body.home-page #services.services-tiles .vague-flip-inner,
html body.home-page #services.services-tiles .vague-flip-open{border-radius:var(--vague-editorial-radius)!important}
html body.home-page #services.services-tiles .vague-flip-front>.vague-flip-shade{background:var(--vague-editorial-caption-fade)!important}
html body.home-page #services.services-tiles .vague-flip-back>.vague-flip-shade{background:linear-gradient(180deg,rgba(8,14,18,.70),rgba(8,14,18,.94))!important}
/* Galleries with text overlay use the same smooth vertical fade.
   Photo-only galleries get the frame, never a filter over the vehicle. */
html body.home-page #moments .vague-editorial-gallery__card,
html body.home-page #moments #photo-track .photo-card.instagram-card,
html body .vague-boat-editorial .vbg-open{
 border:var(--vague-editorial-frame)!important;border-radius:var(--vague-editorial-radius)!important;
}
html body.home-page #moments .vague-editorial-gallery__shade{background:var(--vague-editorial-caption-fade)!important}
html body .gallery-photo>img{
 border:var(--vague-editorial-frame);border-radius:var(--vague-editorial-radius);box-sizing:border-box;
}
/* Preserve focus indications, favourites, map markers and all controls.
   On phones the fade turns down into the text rather than crossing the photo. */
@media(max-width:900px){
 html body.home-page #carriage.vague-carriage-framed .carriage-visual::after{background:var(--vague-editorial-mobile-fade)!important}
 html body.home-page #home-mille-miglia .vague-home-mm-visual img{mask-image:none!important;-webkit-mask-image:none!important}
 html body.home-page #home-mille-miglia .vague-home-mm-visual::after{content:""!important;display:block!important;position:absolute;inset:0;z-index:2;background:var(--vague-editorial-mobile-fade)!important;pointer-events:none}
}
@media(max-width:1000px){
 html body.mm-page section.mm-cta .mm-cta-visual img{mask-image:none!important;-webkit-mask-image:none!important}
 html body.mm-page section.mm-cta .mm-cta-visual::after{content:""!important;display:block!important;position:absolute;inset:0;z-index:2;background:var(--vague-editorial-mobile-fade)!important;pointer-events:none}
}


/* Mille Miglia: continuous real border; identical VAGUE midnight on both banners. */
html body.home-page #home-mille-miglia .vague-home-mm-panel,html body.mm-page section.mm-cta .mm-cta-panel{
 --vague-editorial-night:#0b1820;
 --vague-editorial-mobile-fade:linear-gradient(180deg,transparent 82%,rgba(11,24,32,.15) 89%,#0b1820 100%);
 background:#0b1820!important;
 border:1px solid rgba(198,164,124,.65)!important;
 border-image:none!important;
 border-radius:10px!important;
 box-sizing:border-box!important;
 box-shadow:none!important;
 overflow:hidden!important;
}
html body.home-page #home-mille-miglia .vague-home-mm-panel::after,html body.mm-page section.mm-cta .mm-cta-panel::after{content:none!important;display:none!important;border:0!important;box-shadow:none!important}
html body.home-page #home-mille-miglia .vague-home-mm-visual,html body.mm-page section.mm-cta .mm-cta-visual{background:#0b1820!important}
html body.home-page #home-mille-miglia .vague-home-mm-copy,html body.mm-page section.mm-cta .mm-wrap.mm-cta-copy{background:transparent!important}
@media(max-width:900px){html body.home-page #home-mille-miglia .vague-home-mm-visual::after{background:linear-gradient(180deg,transparent 82%,rgba(11,24,32,.15) 89%,#0b1820 100%)!important}}
@media(max-width:1000px){html body.mm-page section.mm-cta .mm-cta-visual::after{background:linear-gradient(180deg,transparent 82%,rgba(11,24,32,.15) 89%,#0b1820 100%)!important}}
