/* Los Gallos: presentación exclusiva de la galería pública */
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gallery-item{position:relative;background:#d9e0d5;border:0;min-width:0;aspect-ratio:4/3;cursor:zoom-in;overflow:hidden}
.gallery-item img{height:100%;width:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.gallery-item:hover img{transform:scale(1.055)}
.gallery-item .image-label{position:absolute;left:0;bottom:0;right:0;background:linear-gradient(0deg,rgba(0,0,0,.55),transparent);color:#fff;padding:35px 16px 12px;text-align:left;font-size:12px;letter-spacing:.04em;opacity:0;transition:opacity .25s}
.gallery-item:hover .image-label,.gallery-item:focus-visible .image-label{opacity:1}
.gallery-loading{font-size:14px;color:var(--muted);grid-column:1/-1}
.gallery-lightbox{position:fixed;max-width:min(1050px,92vw);max-height:95vh;overflow:auto;border:0;border-radius:0;padding:45px 20px 16px;background:#0e1e16;color:#fff;box-shadow:0 30px 100px #0007}
.gallery-lightbox::backdrop{background:rgba(0,0,0,.85)}
.gallery-lightbox img{width:100%;max-height:76vh;object-fit:contain}
.gallery-lightbox p{font-size:13px;text-align:center;color:#ddd;line-height:1.4;margin:13px 0 0}
.gallery-lightbox .gallery-close{position:absolute;right:12px;top:4px;background:none;border:0;color:#fff;font-size:33px;padding:0 8px;cursor:pointer}
@media (max-width:800px){
.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:550px){
.gallery-grid{gap:7px}
.gallery-item .image-label{opacity:1;padding:22px 9px 8px;font-size:10px}
}
@media (prefers-reduced-motion:reduce){
.video-slide,.gallery-item img,.header-social a{transition:none!important}
}
.gallery-page{background:#fffefb}
.gallery-page-main{padding:clamp(65px,8vw,120px) 0}
.gallery-page-heading{max-width:1000px;margin:0 0 clamp(30px,4vw,56px)}
.gallery-page-heading h1{font-family:var(--display);font-weight:700;font-size:clamp(36px,4.8vw,74px);line-height:1.13;letter-spacing:-.052em;margin:0 0 25px;color:var(--ink)}
.gallery-page-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-top:1px solid var(--line);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--brand-green)}
.gallery-page .gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}
.gallery-page .gallery-item{background:transparent;aspect-ratio:4/3;overflow:hidden;border:0;padding:0;position:relative}
.gallery-page .gallery-item-titled{border:5px solid var(--brand-green)}
.gallery-page .gallery-item-titled .image-label{opacity:1;font-size:13px;padding:40px 16px 14px}
.gallery-page .gallery-item:hover img{transform:scale(1.035)}
.gallery-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin:58px 0 0}
.gallery-pagination button{background:transparent;border:0;border-bottom:1px solid transparent;color:var(--muted);padding:10px 8px;font-size:13px;cursor:pointer}
.gallery-pagination button[aria-current]{border-color:var(--brand-green);color:var(--brand-green);font-weight:700}
.gallery-pagination button:disabled{opacity:.25;cursor:not-allowed}
.gallery-page .gallery-lightbox{background:transparent;border:0;box-shadow:none;max-width:100vw;max-height:100vh;width:100vw;height:100vh;overflow:hidden;padding:clamp(48px,5vw,70px) clamp(16px,3vw,48px) clamp(15px,3vw,32px);margin:auto;color:#fff}
.gallery-page .gallery-lightbox::backdrop{background:rgba(0,0,0,.91);backdrop-filter:blur(9px)}
.gallery-page .gallery-lightbox-content{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.gallery-page .gallery-lightbox-content img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.gallery-page .gallery-lightbox-content.show-title{background:rgba(8,33,18,.92);border:1px solid #466e53;padding:clamp(14px,3vw,28px)}
.gallery-page .gallery-lightbox-content.show-title img{max-height:calc(100% - 48px)}
.gallery-page .gallery-lightbox-content p{display:none;margin:14px 0 0;font-size:14px;letter-spacing:.03em;color:#fff}
.gallery-page .gallery-lightbox-content.show-title p{display:block}
.gallery-page .gallery-lightbox .gallery-close{position:absolute;z-index:10;top:13px;right:22px;background:transparent;border:0;color:#fff;font-size:38px;line-height:1;padding:5px 12px;cursor:pointer}
@media (max-width:800px){
.gallery-page .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:550px){
.gallery-page .gallery-grid{gap:8px}
.gallery-page .gallery-item-titled{border-width:3px}
.gallery-page .gallery-item-titled .image-label{font-size:10px;padding:22px 9px 9px}
.gallery-pagination{gap:6px}
.gallery-pagination button{padding:8px 5px}
}
