.media-home{padding:48px 0;background:#101118}.media-home .title{font-size:34px;margin:8px 0 24px}.media-mosaic{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,180px);gap:14px}.media-category{position:relative;overflow:hidden;border:1px solid #d6b25c77;border-radius:12px;background:radial-gradient(ellipse at 40% 25%,#6256c134,transparent 70%),#1b1d29;color:#e4d1a5;text-decoration:none}.media-category-eventos{grid-row:span 2}.media-category-videos{grid-column:span 2;height:125px}.media-category img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.media-category:hover img{transform:scale(1.04)}.media-category-caption{position:absolute;bottom:0;left:0;right:0;padding:20px 16px 13px;background:linear-gradient(transparent,#0d0e18ee 35%);display:grid;gap:5px}.media-category-caption b{font:600 19px Cinzel,serif}.media-category-caption small{font-size:10px;color:#b7b5cf}.media-placeholder{height:100%;min-height:120px;display:grid;place-items:center;font-size:44px;color:#a99161;background:radial-gradient(ellipse,#6d6afe20,transparent 65%)}.media-home .ranking-more{margin-top:145px;text-align:center}.gallery-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-top:25px}.gallery-shortcuts a{padding:9px 15px;border:1px solid #a5a6f638;border-radius:20px;font-size:11px;color:#c3beda;text-decoration:none}.gallery-section{scroll-margin-top:120px;margin-bottom:40px}.gallery-section>header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.gallery-section h2{margin:6px 0;font:600 25px Cinzel,serif;color:#e8d4a7}.gallery-section h2 small{font:11px Montserrat,sans-serif;color:#9099b0;margin-left:14px}.gallery-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.gallery-thumb{position:relative;padding:0;border:1px solid #a5a6f62e;border-radius:9px;overflow:hidden;background:#1b1d29;cursor:pointer;color:#eae5ff;text-align:left;min-width:0}.gallery-thumb img{width:100%;height:135px;object-fit:cover;display:block}.gallery-thumb>span:last-child{display:block;padding:10px;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-thumb:hover{border-color:#d6b25caa}.gallery-empty{border:1px dashed #a5a6f632;border-radius:12px;padding:25px;color:#a3a9bc;font-size:12px}.gallery-modal{width:min(1100px,calc(100vw - 24px));max-height:90dvh;padding:0;border:1px solid #a5a6f666;border-radius:15px;background:#161823;color:#ece8ff;box-shadow:0 25px 90px #000a}.gallery-modal::backdrop{background:#080911d9;backdrop-filter:blur(5px)}.gallery-modal>header{display:flex;justify-content:space-between;align-items:center;padding:15px 22px;border-bottom:1px solid #a5a6f633}.gallery-modal h2{font:600 22px Cinzel,serif;margin:0;color:#e7c789}.gallery-close{border:0;background:#a5a6f622;border-radius:50%;color:#eae5ff;width:36px;height:36px;font-size:24px;cursor:pointer}.gallery-modal-body{max-height:calc(90dvh - 72px);overflow-y:auto;padding:20px;scrollbar-color:#8d83dc #171922;scrollbar-width:thin}.gallery-modal-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.gallery-stage{display:grid;place-items:center;background:#0c0e15;border-radius:9px;min-height:180px}.gallery-stage img{max-width:100%;max-height:58dvh;object-fit:contain}.gallery-stage iframe{width:100%;aspect-ratio:16/9;border:0}.gallery-caption{padding:14px 0;font-size:13px;color:#b9bfd4;white-space:pre-line}.gallery-viewer-actions{display:flex;justify-content:space-between;gap:10px}.gallery-viewer-actions button{background:#6d6afe24;color:#ddd8ff;border:1px solid #a5a6f63a;padding:10px;border-radius:7px;cursor:pointer}.gallery-browser>[data-gallery-more]{margin:20px auto 0;display:block}.gallery-state{font-size:12px;color:#b7bdd2}.gallery-modal [hidden]{display:none!important}
@media(max-width:800px){.media-mosaic{grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,150px)}.media-category-eventos{grid-row:auto}.media-category-videos{grid-column:auto;height:auto}.media-home .ranking-more{margin-top:24px}.media-category-caption{padding:15px 10px 10px}.media-category-caption b{font-size:16px}.gallery-strip,.gallery-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-section h2 small{display:block;margin:7px 0 0}.gallery-section>header .button{font-size:9px;padding:10px}.gallery-modal-body{padding:12px}.gallery-thumb img{height:125px}}
@media(prefers-reduced-motion:reduce){.media-category img{transition:none}}
.media-category-videos{grid-column:1/-1;height:150px}.media-home .ranking-more{margin-top:24px;text-align:center}.news-card-cover{width:100%;height:145px;object-fit:cover;border-radius:8px;margin-bottom:13px}
@media(max-width:800px){.media-category-videos{grid-column:auto;height:auto}}

/* Gallery page owns its spacing; do not inherit the home section padding. */
.gallery-page{padding:40px 0 48px}
.gallery-page .portal-heading{padding-bottom:28px}
.gallery-page .gallery-shortcuts{margin-top:20px}
.gallery-page .gallery-shortcuts a:hover,.gallery-page .gallery-shortcuts a:focus-visible{background:#7564ff25;border-color:#9584e6;color:#fff}
.gallery-page .gallery-section{padding:24px;margin:0 0 20px;border:1px solid #a5a6f629;border-radius:14px;background:#17182380;scroll-margin-top:100px}
.gallery-page .gallery-section>header{margin-bottom:16px;flex-wrap:wrap}
.gallery-page .gallery-section h2{font-size:23px}
.gallery-page .gallery-section h2 small{display:inline-block;line-height:1.5}
.gallery-page .gallery-section>header .button{padding:11px 16px;font-size:10px;box-shadow:none}
.gallery-page .gallery-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
.gallery-page .gallery-strip:empty{display:none}
.gallery-page .gallery-empty{margin:0;padding:16px 18px;line-height:1.7;background:#10111855}
.gallery-page .gallery-thumb img{height:auto;aspect-ratio:16/10;object-fit:cover}
.gallery-thumb{font-family:inherit}
.gallery-thumb>span:last-child{font-size:12px;line-height:1.5}
.gallery-thumb:focus-visible,.gallery-close:focus-visible,.gallery-viewer-actions button:focus-visible{outline:2px solid #b6a7ff;outline-offset:3px}
.gallery-modal{overflow:hidden}
.gallery-modal>header{gap:16px}
.gallery-modal h2{min-width:0;overflow-wrap:anywhere}
.gallery-close{flex-shrink:0}
.gallery-viewer-actions button:disabled{opacity:.4;cursor:default}
.gallery-stage img{display:block;width:auto;height:auto}
@media(max-width:1000px){.gallery-page .gallery-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
 .gallery-page{padding:26px 0 32px}
 .gallery-page .portal-heading{padding-bottom:22px}
 .gallery-page .gallery-section{padding:16px;margin-bottom:16px;scroll-margin-top:88px}
 .gallery-page .gallery-section h2{font-size:21px}
 .gallery-page .gallery-section h2 small{display:block;margin:5px 0 0}
 .gallery-page .gallery-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .gallery-shortcuts{gap:7px}
 .gallery-shortcuts a{padding:10px 13px;font-size:12px}
 .gallery-modal>header{padding:12px}
 .gallery-viewer-actions{gap:6px}
 .gallery-viewer-actions button{padding:10px 7px;font-size:12px}
}
.gallery-thumb .media-placeholder{height:auto;min-height:0;aspect-ratio:16/10;font-size:36px}
.gallery-page .gallery-section>header>div{flex:1;min-width:0}
.gallery-page .gallery-strip>.gallery-thumb:only-child{grid-column:1/-1;width:100%;max-width:320px}
@media(max-width:600px){.gallery-page .gallery-section>header .eyebrow{font-size:9px;letter-spacing:1px;line-height:1.5;display:block}}
