/* SARDAEVENTI | Galleria evento #2 - Sos Nibberos - 26/10/2026 */
.se-event-gallery{margin-top:58px}
.se-gallery-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:10px}
.se-event-gallery .se-gallery-heading h2{font-family:inherit;font-size:clamp(27px,3vw,37px);line-height:1.2;letter-spacing:-.02em;margin:0}
.se-gallery-eyebrow{font-size:11px;letter-spacing:.16em;font-weight:700;color:#9a7b4b;margin:0 0 9px}
.se-gallery-total{flex-shrink:0;color:#777;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding-bottom:4px}
.se-gallery-intro{color:#686868;font-size:15px;line-height:1.65;margin:0 0 22px}
.se-event-gallery .se-event-gallery-grid{display:block;columns:3;column-gap:16px}
.se-event-gallery .se-gallery-card{display:block;break-inside:avoid;page-break-inside:avoid;margin:0 0 18px;overflow:hidden}
.se-event-gallery .se-gallery-card a{position:relative;display:block;width:100%;overflow:hidden;cursor:zoom-in;background:#eee;line-height:0}
.se-event-gallery .se-gallery-card img{display:block;width:100%;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;transition:filter .2s ease;}
.se-event-gallery .se-gallery-card a:hover img{filter:brightness(.91)}
.se-event-gallery .se-gallery-card a:focus-visible{outline:3px solid #b58a4e;outline-offset:3px}
.se-gallery-magnify{position:absolute;right:11px;bottom:11px;display:grid;place-items:center;width:33px;height:33px;background:rgba(255,255,255,.92);color:#242424;border-radius:50%;font-size:25px;line-height:1;font-weight:300;pointer-events:none;box-shadow:0 2px 10px rgba(0,0,0,.13)}
.se-event-gallery .se-gallery-card figcaption{font-size:12px;line-height:1.5;color:#666;padding:8px 2px 0;margin:0}
body.se-gallery-active{overflow:hidden}
.se-gallery-lightbox[hidden]{display:none!important}
.se-gallery-lightbox{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:rgba(8,9,11,.97);color:#fff;padding:65px 64px 30px}
.se-gallery-lightbox-figure{margin:0;max-width:min(100%,1250px);width:100%;max-height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px}
.se-gallery-lightbox-image{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 165px);max-height:calc(100dvh - 165px);object-fit:contain;user-select:none;-webkit-user-select:none}
.se-gallery-lightbox-figure figcaption{width:100%;max-width:660px;display:flex;justify-content:space-between;gap:20px;color:#eee;font-size:13px;line-height:1.4;text-align:center}
.se-gallery-lightbox-count{color:#aaa;white-space:nowrap}
.se-gallery-close,.se-gallery-prev,.se-gallery-next{position:absolute;z-index:1;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;cursor:pointer;transition:background .2s ease}
.se-gallery-close:hover,.se-gallery-prev:hover,.se-gallery-next:hover{background:rgba(255,255,255,.3)}
.se-gallery-close:focus-visible,.se-gallery-prev:focus-visible,.se-gallery-next:focus-visible{outline:2px solid white;outline-offset:4px}
.se-gallery-close{top:16px;right:20px;width:43px;height:43px;font-size:32px;line-height:1}
.se-gallery-prev,.se-gallery-next{top:50%;transform:translateY(-50%);width:43px;height:43px;font-size:40px;line-height:1;padding-bottom:4px}
.se-gallery-prev{left:14px}.se-gallery-next{right:14px}
@media(max-width:900px){.se-event-gallery .se-event-gallery-grid{columns:2;column-gap:13px}.se-event-gallery .se-gallery-card{margin-bottom:15px}}
@media(max-width:620px){
 .se-event-gallery{margin-top:42px}
 .se-gallery-heading{align-items:flex-start;flex-direction:column;gap:7px}
 .se-gallery-total{padding-bottom:0}
 .se-event-gallery .se-event-gallery-grid{columns:2;column-gap:9px}
 .se-event-gallery .se-gallery-card{margin-bottom:12px}
 .se-event-gallery .se-gallery-card figcaption{font-size:11px}
 .se-gallery-magnify{width:28px;height:28px;right:7px;bottom:7px;font-size:22px}
 .se-gallery-lightbox{padding:56px 13px 58px}
 .se-gallery-lightbox-image{max-height:calc(100vh - 160px);max-height:calc(100dvh - 160px)}
 .se-gallery-close{top:11px;right:13px}
 .se-gallery-prev,.se-gallery-next{top:auto;bottom:7px;transform:none;width:40px;height:40px}
 .se-gallery-prev{left:12px}.se-gallery-next{right:12px}
 .se-gallery-lightbox-figure figcaption{justify-content:center;flex-wrap:wrap;gap:6px;margin-bottom:0;padding:0 42px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.se-gallery-lightbox button,.se-gallery-card img{transition:none!important}}
