/* Scoped exclusively to the result gallery. */
#resultados .real-gallery{display:block;max-width:none;width:100%;overflow:hidden;padding:28px 0 38px;mask-image:linear-gradient(90deg,transparent,#000 2.5%,#000 97.5%,transparent);--card-width:clamp(215px,21.6vw,288px);--center-scale:.032;--aura:.24;cursor:grab;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
#resultados .real-gallery.gallery-dragging{cursor:grabbing}
#resultados .real-gallery .gallery-track{display:flex;width:max-content;position:relative;will-change:transform}
#resultados .real-gallery .gallery-group{display:flex;gap:24px;padding-right:24px;flex:none}
#resultados .real-gallery .gallery-item{--center:0;position:relative;flex:0 0 var(--card-width);width:var(--card-width);height:auto;aspect-ratio:3/4;margin:0!important;overflow:visible;border:1px solid rgb(205 165 96 / calc(.38 + var(--center)*.4));border-radius:12px;transform:scale(calc(1 + var(--center)*var(--center-scale)));background:#17130f;box-shadow:0 20px 40px #0007,0 0 18px #c89b4816;transition:opacity .5s,border-color .5s,box-shadow .5s,scale .5s;isolation:isolate}
#resultados .real-gallery .gallery-item img{width:100%;height:100%;object-fit:contain;border-radius:inherit;filter:brightness(calc(1 + var(--center)*.05)) contrast(calc(1 + var(--center)*.02));animation:editorial-photo 16s ease-in-out var(--delay) infinite alternate;transition:scale .6s;clip-path:inset(0 round 12px)}
#resultados .real-gallery .gallery-item::before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;background:linear-gradient(transparent 65%,#000b)}
#resultados .real-gallery .gallery-aura{position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;z-index:-1;box-shadow:0 0 22px #c49b4c45,0 0 40px #bc8c3625;opacity:calc(var(--aura) + var(--center)*.55);animation:editorial-glow 7s ease-in-out var(--delay) infinite alternate}
#resultados .real-gallery figcaption{z-index:2;inset:auto 16px 18px}
#resultados .real-gallery figcaption small{display:block;font-size:12px}
#resultados .real-gallery .gallery-item::after{content:'';position:absolute;inset:0;z-index:3;border-radius:inherit;pointer-events:none;opacity:0;background:linear-gradient(115deg,transparent 35%,#e4be7610 45%,#fff0c42e 50%,#e4be7610 55%,transparent 65%);background-size:300% 100%;background-position:100% 0}
#resultados .gallery-paused .gallery-item img,#resultados .gallery-paused .gallery-aura{animation-play-state:paused}
@keyframes editorial-photo{from{transform:scale(1)}to{transform:scale(1.02)}}
@keyframes editorial-glow{from{scale:1;filter:opacity(.55)}to{scale:1.012;filter:opacity(1)}}
@keyframes editorial-reflection{0%{opacity:0;background-position:100% 0}20%,70%{opacity:1}100%{opacity:0;background-position:0 0}}
@media(hover:hover) and (pointer:fine){
 #resultados .real-gallery:has(.gallery-item:hover) .gallery-item:not(:hover){opacity:.85}
 #resultados .real-gallery .gallery-item:hover{scale:calc(1.035 / (1 + var(--center)*var(--center-scale)));border-color:#e4c58a;box-shadow:0 20px 50px #0009,0 0 25px #d0aa5435;z-index:4}
 #resultados .real-gallery .gallery-item:hover img{scale:1.02;filter:brightness(1.05) contrast(1.02)}
 #resultados .real-gallery .gallery-item:hover::after{animation:editorial-reflection 1.2s ease-out both}
}
@media(max-width:760px){
 #resultados .real-gallery{--card-width:78vw;--center-scale:.018;--aura:.14;padding-block:18px 28px}
 #resultados .real-gallery .gallery-group{gap:18px;padding-right:18px}
 #resultados .real-gallery .gallery-item{box-shadow:0 12px 28px #0005,0 0 12px #c89b4812}
 #resultados .real-gallery figcaption span{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 #resultados .real-gallery{overflow-x:auto;mask-image:none;touch-action:auto;cursor:auto}
 #resultados .real-gallery .gallery-track{transform:none!important;will-change:auto}
 #resultados .real-gallery .gallery-item,#resultados .real-gallery .gallery-item img,#resultados .real-gallery .gallery-aura{animation:none!important;transition:none!important;transform:none!important;scale:1!important;filter:none!important}
 #resultados .real-gallery .gallery-item::after{display:none}
}
