/* Rafa Nadal Academy guide: photo layouts and scroll motion. Motion only runs when JS adds .rnaMotion and the visitor has not asked for reduced motion. */
.rnaFigure{margin:26px 0 30px}
.rnaMosaic figure,.rnaPair figure{margin:0;min-width:0}
.rnaFigure figcaption,.rnaStrip figcaption,.rnaMosaic figcaption,.rnaPair figcaption{font-size:12px;line-height:1.6;color:var(--guide-muted);margin-top:10px}
.rnaFrame{position:relative;overflow:hidden;border-radius:18px;background:var(--guide-cream)}
.rnaFrame img,.rnaFrame video{display:block;width:100%;height:100%;object-fit:cover}
.rnaWide .rnaFrame{aspect-ratio:16/9}
.rnaVideo .rnaFrame{aspect-ratio:16/9}
.rnaVideoBadge{position:absolute;left:14px;bottom:14px;z-index:2;display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:rgba(13,42,39,.78);color:#faf8f1;font:700 11px/1 "DM Sans",sans-serif;letter-spacing:.06em;text-transform:uppercase;backdrop-filter:blur(6px)}
.rnaVideoBadge::before{content:"";width:7px;height:7px;border-radius:50%;background:#e0b07c;animation:rnaPulse 1.6s ease-in-out infinite}
.rnaMosaic{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0 30px}
.rnaMosaic .rnaFrame{aspect-ratio:4/3}
.rnaPair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0 30px}
.rnaPair .rnaFrame{aspect-ratio:4/5}
.rnaPair.rnaLandscape .rnaFrame{aspect-ratio:4/3}
.rnaStripWrap{margin:22px 0 30px}
.rnaStrip{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 14px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.rnaStrip figure{flex:0 0 min(44%,250px);margin:0;scroll-snap-align:start}
.rnaStrip .rnaFrame{aspect-ratio:4/5}
.rnaStrip strong{display:block;font:500 19px/1.25 "Playfair Display",Georgia,serif;color:var(--guide-ink);margin-top:12px}
.rnaStripHint{font-size:12px;color:var(--guide-muted);margin:0}
@media(max-width:600px){.rnaMosaic{grid-template-columns:1fr 1fr}.rnaMosaic figure:first-child{grid-column:1/-1}.rnaStrip figure{flex-basis:70%}}
@keyframes rnaPulse{50%{opacity:.35}}
@keyframes rnaDrift{from{transform:scale(1.08) translate3d(-1%,0,0)}to{transform:scale(1) translate3d(0,0,0)}}

/* Motion */
.rnaMotion .rallyGuidePhoto img{animation:rnaDrift 2.4s cubic-bezier(.2,.7,.2,1) both}
.rnaMotion [data-reveal]{opacity:0;transform:translate3d(0,28px,0);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
.rnaMotion [data-reveal] .rnaFrame img{transform:scale(1.1);transition:transform 1.6s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
.rnaMotion [data-reveal].is-in{opacity:1;transform:none}
.rnaMotion .rnaStripWrap .rnaStrip figure{opacity:0;transform:translate3d(36px,0,0);transition:opacity .8s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
.rnaMotion .rnaStripWrap.is-in .rnaStrip figure{opacity:1;transform:none}
.rnaMotion .rnaStripWrap .rnaStrip figure:nth-child(1){transition-delay:0.00s}.rnaMotion .rnaStripWrap .rnaStrip figure:nth-child(2){transition-delay:0.09s}.rnaMotion .rnaStripWrap .rnaStrip figure:nth-child(3){transition-delay:0.18s}.rnaMotion .rnaStripWrap .rnaStrip figure:nth-child(4){transition-delay:0.27s}.rnaMotion .rnaStripWrap .rnaStrip figure:nth-child(5){transition-delay:0.36s}
.rnaMotion [data-reveal].is-in .rnaFrame img{transform:scale(1)}
.rnaMotion .rnaParallax img{will-change:transform}
@media(hover:hover){.rnaStrip .rnaFrame img,.rnaMosaic .rnaFrame img,.rnaPair .rnaFrame img{transition:transform .7s cubic-bezier(.2,.7,.2,1)}.rnaStrip figure:hover .rnaFrame img,.rnaMosaic figure:hover .rnaFrame img,.rnaPair figure:hover .rnaFrame img{transform:scale(1.05)}}
@media(prefers-reduced-motion:reduce){.rnaVideoBadge::before{animation:none}.rnaStrip figure:hover .rnaFrame img,.rnaMosaic figure:hover .rnaFrame img,.rnaPair figure:hover .rnaFrame img{transform:none}}
