/* Exclusive to the thank-you landing; shared event styles are unchanged. */
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero{
  display:flex!important;min-height:760px!important;height:auto!important;
  padding:160px 0 80px!important;background:#741b1b!important;
}
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-hero-bg{
  position:absolute!important;inset:0 0 0 auto!important;width:48%!important;
  height:100%!important;margin:0!important;opacity:1!important;
  background-size:cover!important;background-position:center 66%!important;
}
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-hero-overlay{display:none!important;}
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-hero-content{
  max-width:100%!important;padding:0 30px 0 0!important;
}
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-main-title{
  font-size:clamp(46px,4.1vw,68px)!important;line-height:1.04!important;
  letter-spacing:-1.8px!important;max-width:100%!important;margin:0 0 26px!important;
}
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-hero-copy{
  display:block!important;font-size:19px!important;line-height:1.55!important;
  margin:0!important;padding:22px 0 0!important;border-top:1px solid #ffffff80!important;
  border-bottom:0!important;max-width:100%!important;
}
@media(max-width:991px){
  #inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero{
    display:block!important;min-height:0!important;padding:0 0 48px!important;
  }
  #inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-hero-bg{
    position:relative!important;inset:auto!important;width:100%!important;
    height:clamp(360px,66vw,680px)!important;margin-top:90px!important;
    background-position:center 66%!important;
  }
  #inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .container,
  #inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .row{height:auto!important;}
  #inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-hero-content{padding:34px 0 0!important;}
  #inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-main-title{
    font-size:clamp(36px,6vw,52px)!important;letter-spacing:-1.2px!important;
  }
}
@media(max-width:575px){
  #inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-hero-bg{height:420px!important;}
  #inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-hero-copy{font-size:17px!important;}
}

/* Photo transition and editable vehicle identification. */
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-hero-bg::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  background:linear-gradient(90deg,#741b1b 0%,rgba(116,27,27,.9) 2%,rgba(116,27,27,.45) 8%,rgba(116,27,27,.12) 17%,rgba(116,27,27,0) 30%);
}
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-car-caption{
  position:absolute;left:32px;bottom:28px;z-index:2;max-width:calc(100% - 64px);
  padding:12px 18px;border-left:3px solid #f1db9d;
  background:rgba(45,12,12,.88);color:#fff;box-shadow:0 4px 20px #0003;
}
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-car-caption p{
  color:#fff!important;margin:0!important;line-height:1.4!important;letter-spacing:0!important;
}
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-car-model{font-size:19px!important;font-weight:600!important;}
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-car-award{font-size:15px!important;}
@media(max-width:991px){
  #inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-hero-bg::before{
    background:linear-gradient(0deg,#741b1b 0%,rgba(116,27,27,.65) 5%,rgba(116,27,27,.15) 13%,rgba(116,27,27,0) 22%);
  }
  #inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-car-caption{
    left:20px;bottom:22px;max-width:calc(100% - 40px);padding:10px 14px;
  }
  #inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-car-model{font-size:17px!important;}
  #inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-car-award{font-size:14px!important;}
}

/* Compact vehicle label: fixed available width and a single responsive line. */
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-car-caption{width:min(310px,calc(100% - 64px));box-sizing:border-box;container-type:inline-size;}
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-car-model{font-size:clamp(10px,3.2vw,15px)!important;white-space:nowrap!important;}
@media(max-width:991px){#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-car-caption{width:min(310px,calc(100% - 40px));}}
@supports(font-size:1cqi){#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-car-model{font-size:min(15px,5.6cqi)!important;}}
/* Photo grid, independent from original event styles. */
.expo-memory-gallery{padding:52px 0 56px;background:#f7f6f3;}
.expo-memory-gallery h2{font-size:clamp(28px,3vw,40px);line-height:1.15;margin:0 0 26px;letter-spacing:-1px;}
.expo-memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.expo-memory-thumb{display:block;position:relative;overflow:hidden;border-radius:8px;background:#ddd;}
.expo-memory-thumb img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transition:transform .25s ease;}
.expo-memory-thumb:hover img{transform:scale(1.025);}
.expo-memory-thumb:focus-visible{outline:3px solid #741b1b;outline-offset:4px;}
.expo-memory-zoom{position:absolute;right:10px;bottom:10px;width:30px;height:30px;border-radius:50%;background:#240909bf;color:#fff;display:grid;place-items:center;font-size:24px;line-height:1;pointer-events:none;}
/* Minimal full-screen viewer, matching the original program viewer. */
.expo-memory-dialog{position:fixed;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:24px 56px;border:0;border-radius:0;background:transparent;color:#fff;z-index:2147483000;overflow:hidden;}
.expo-memory-dialog::backdrop{background:rgba(8,12,10,.9);}
.expo-memory-dialog[open]{display:flex;align-items:center;justify-content:center;}
.expo-memory-panel{display:flex;max-width:100%;max-height:100%;min-height:0;}
.expo-memory-stage{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;}
.expo-memory-stage .expo-memory-image{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);margin:0 auto;object-fit:contain;}
.expo-memory-prev,.expo-memory-next{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:48px;height:56px;padding:10px;border:0;background:transparent;color:#fff;cursor:pointer;z-index:2;}
.expo-memory-prev{left:max(8px,env(safe-area-inset-left));}.expo-memory-next{right:max(8px,env(safe-area-inset-right));}
.expo-memory-dialog button svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.expo-memory-close{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:#fff;font-family:Arial,sans-serif;font-size:36px;font-weight:300;line-height:1;cursor:pointer;z-index:3;}
.expo-memory-dialog button:hover{opacity:.7;}
@media(max-width:991px){.expo-memory-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:767px){.expo-memory-dialog{padding:60px 40px 20px;}.expo-memory-stage .expo-memory-image{max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px);}.expo-memory-prev,.expo-memory-next{width:36px;height:48px;padding:6px;}.expo-memory-prev{left:2px;}.expo-memory-next{right:2px;}.expo-memory-dialog button svg{width:24px;height:24px;}}
@media(max-width:575px){.expo-memory-gallery{padding:34px 0 38px;}.expo-memory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}}
@media(prefers-reduced-motion:reduce){.expo-memory-thumb img{transition:none;}.expo-memory-thumb:hover img{transform:none;}}

/* Use the existing hash navigation offset; also supports /#galeria on arrival. */
#galeria.expo-memory-gallery{scroll-margin-top:126px;}
@media(max-width:991px){#galeria.expo-memory-gallery{scroll-margin-top:104px;}}

/* Landing only: center the seventh featured ally when alone on the two-column row. */
@media(max-width:767px){
 body.home .expo-allies-featured > .row > .col:last-child:nth-child(odd){
   grid-column:1 / -1!important;width:calc((100% - 10px)/2)!important;justify-self:center;
 }
}
/* Decode the hero photograph before revealing it together with its caption. */
.expo-thanks-hero .expo-hero-bg[data-hero-loading]{visibility:hidden;}
#inicio.expo-hero-full-banner.expo-hero-red.expo-thanks-hero .expo-hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 66%;}

/* Scoped reset wins over shared button rules in every pointer/touch state. */
#expoMemoryDialog button,
#expoMemoryDialog button:is(:hover,:active,:focus,:focus-visible) {
  appearance:none!important;-webkit-appearance:none!important;
  background:transparent!important;background-image:none!important;
  border:0!important;box-shadow:none!important;outline:none!important;
  -webkit-tap-highlight-color:transparent;
}
#expoMemoryDialog button::before,#expoMemoryDialog button::after{content:none!important;}
#expoMemoryDialog[data-input-mode="tab"] button:focus {
  outline:2px solid #fff!important;outline-offset:3px;
}
