/* Galeria paginada: estilos isolados do leitor e da busca facial. */
[data-event-gallery] [hidden]{display:none!important}
[data-event-gallery]{padding:28px!important;min-width:0;font-family:"Segoe UI",Arial,sans-serif!important}
[data-event-gallery] .eg-heading{display:flex;align-items:center;gap:16px;margin-bottom:24px}
[data-event-gallery] .eg-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid #d6e6f3;border-radius:15px;color:#13658e;background:#edf6fc}
[data-event-gallery] .eg-icon svg{width:25px;height:25px}
[data-event-gallery] .eg-title{flex:1;min-width:0}
[data-event-gallery] .eg-title .eyebrow{color:#17618a;font-size:10px;letter-spacing:1.6px;margin:0 0 6px}
[data-event-gallery] .eg-title h2{font-size:26px!important;line-height:1.25!important;margin:0 0 7px!important;color:#102e4e!important;letter-spacing:-.6px}
[data-event-gallery] .eg-title>p:last-child{font-size:14px;line-height:1.5;color:#647c93;margin:0}
[data-event-gallery] .eg-total{flex-shrink:0;display:inline-flex;align-items:center;gap:9px;white-space:nowrap;border:1px solid #d7e7f2;background:#f1f7fc;border-radius:30px;padding:11px 15px;color:#184e75;font-size:13px;font-weight:700}
[data-event-gallery] .eg-total>span{font-size:10px;color:#bc9748}
[data-event-gallery] .eg-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid #e0eaf2;border-radius:15px;background:#f5f9fc;margin-bottom:20px}
[data-event-gallery] .eg-toolbar strong{display:block;color:#234763;font-size:14px;font-weight:650}
[data-event-gallery] .eg-toolbar>div>span{display:block;color:#70879a;font-size:12px;margin-top:4px}
[data-event-gallery] .eg-toolbar label{display:flex;align-items:center;gap:10px;font-size:12px;color:#536e85;font-weight:600;white-space:nowrap}
[data-event-gallery] select{appearance:auto;font-family:inherit;font-size:13px;font-weight:600;color:#163c5c;background:#fff;border:1px solid #cfdfeb;border-radius:10px;padding:9px 10px;min-height:40px;line-height:1.2;margin:0;width:auto;box-shadow:none}
[data-event-gallery] .eg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
[data-event-gallery] .eg-tile{display:block;min-width:0;overflow:hidden;border:1px solid #dfe8ef;border-radius:17px;background:#fff;text-decoration:none;color:#153d5b;box-shadow:0 5px 16px #163b5c07;transition:transform .18s,box-shadow .18s}
[data-event-gallery] .eg-tile:hover{transform:translateY(-3px);box-shadow:0 10px 26px #163b5c16;border-color:#a9c5db}
[data-event-gallery] .eg-image{display:block;aspect-ratio:4/3;background:linear-gradient(135deg,#edf3f8,#e1eaf2);position:relative;overflow:hidden}
[data-event-gallery] .eg-image img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity .2s}
[data-event-gallery] .eg-image.eg-image-error:after{content:"Toque para abrir a foto";position:absolute;inset:0;display:grid;place-items:center;padding:12px;font-size:12px;color:#536e85;text-align:center;background:#edf3f8}
[data-event-gallery] .eg-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 14px}
[data-event-gallery] .eg-caption strong{font-size:13px;font-weight:700}
[data-event-gallery] .eg-caption>span{font-size:11px;font-weight:600;color:#6b8195}
[data-event-gallery] .eg-caption>span>span{font-size:17px;margin-left:3px;color:#17618a}
[data-event-gallery] .eg-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e2ebf2;padding-top:22px;margin-top:24px}
[data-event-gallery] .eg-pagination>a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 17px;border:1px solid #d2e2ee;border-radius:11px;color:#164969;background:#fff;text-decoration:none;font-size:13px;font-weight:650}
[data-event-gallery] .eg-pagination>a:hover{background:#edf5fb}
[data-event-gallery] .eg-pagination>a[aria-disabled=true]{opacity:.4;pointer-events:none}
[data-event-gallery] .eg-pagination label{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap;color:#5e768c}
[data-event-gallery] .eg-pagination select{min-width:54px}
[data-event-gallery] a:focus-visible,[data-event-gallery] select:focus-visible,.eg-dialog :focus-visible{outline:3px solid #32a1d4;outline-offset:3px}
[data-event-gallery] .eg-empty{border:1px dashed #c9ddea;border-radius:16px;padding:35px 20px;text-align:center;background:#f6fafd;color:#345972}
[data-event-gallery] .eg-empty strong{font-size:16px}
[data-event-gallery] .eg-empty p{color:#70879a;font-size:13px;line-height:1.6;margin:8px 0 0}
dialog.eg-dialog{position:fixed;inset:0;margin:auto;padding:0;width:min(1120px,calc(100vw - 48px));max-width:none;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);border:1px solid #ffffff33;border-radius:22px;background:#07192d;color:#fff;font-family:"Segoe UI",Arial,sans-serif;box-shadow:0 25px 100px #0008;overflow:hidden;z-index:2147483000}
dialog.eg-dialog:not([open]){display:none!important}
dialog.eg-dialog::backdrop{background:#031225d9;backdrop-filter:blur(7px)}
.eg-dialog-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 48px)}
.eg-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;background:#102940;border-bottom:1px solid #ffffff14;flex-shrink:0}
.eg-dialog-head>div>span{display:block;font-size:9px;letter-spacing:1.8px;color:#cba657;font-weight:700;margin-bottom:4px}
.eg-dialog-head strong{font-size:17px;color:#fff}
.eg-dialog .eg-close,.eg-dialog .eg-arrow,.eg-dialog [data-eg-retry]{font-family:inherit;border:1px solid #ffffff40;color:#fff;background:#ffffff12;border-radius:11px;min-height:44px;cursor:pointer;box-shadow:none}
.eg-dialog .eg-close{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650;padding:5px 15px}
.eg-close>span{font-size:26px;font-weight:400;line-height:1}
.eg-stage{display:flex;align-items:center;justify-content:center;position:relative;min-height:180px;flex:1 1 auto;overflow:hidden;background:#041120}
.eg-stage>[data-eg-view]{display:block;width:100%;height:calc(100vh - 230px);height:calc(100dvh - 230px);max-height:760px;min-height:180px;object-fit:contain;touch-action:pan-y pinch-zoom}
.eg-dialog [hidden]{display:none!important}
.eg-loading,.eg-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:14px;color:#d8e6f1;padding:18px;text-align:center;margin:0}
.eg-loading:before{content:"";width:28px;height:28px;border:3px solid #ffffff30;border-top-color:#d9b45c;border-radius:50%;margin-bottom:12px;animation:eg-spin 1s linear infinite}
.eg-dialog [data-eg-retry]{padding:10px 18px;font-size:13px}
.eg-dialog .eg-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:52px;background:#0d2844c9;border-radius:14px;font-size:36px;line-height:1;display:grid;place-items:center;padding:0}
.eg-dialog .eg-arrow:disabled{opacity:.25;cursor:default}
.eg-back{left:14px}.eg-forward{right:14px}
.eg-dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 22px;background:#102940;flex-shrink:0}
.eg-dialog-foot>div{min-width:0}
.eg-dialog-foot strong{display:block;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:65vw;color:#fff}
.eg-dialog-foot>div>span{display:block;color:#a4bbce;font-size:11px;line-height:1.5;margin-top:5px}
.eg-dialog .eg-download{display:inline-flex;align-items:center;justify-content:center;gap:16px;flex-shrink:0;background:#d4ad50;color:#09213b;border:1px solid #e1bd6a;padding:12px 20px;border-radius:11px;text-decoration:none;font-size:13px;font-weight:750;min-height:44px}
@keyframes eg-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){[data-event-gallery] .eg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){[data-event-gallery]{padding:20px 16px!important}[data-event-gallery] .eg-heading{gap:12px;flex-wrap:wrap;margin-bottom:18px}[data-event-gallery] .eg-icon{flex-basis:42px;width:42px;height:42px;border-radius:13px}[data-event-gallery] .eg-title h2{font-size:23px!important}[data-event-gallery] .eg-title>p:last-child{font-size:12px}[data-event-gallery] .eg-total{font-size:11px;padding:8px 11px;margin-left:54px}[data-event-gallery] .eg-toolbar{padding:13px;align-items:flex-start;gap:12px;flex-wrap:wrap}[data-event-gallery] .eg-toolbar label{width:100%;justify-content:space-between}[data-event-gallery] .eg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}[data-event-gallery] .eg-caption{padding:10px}[data-event-gallery] .eg-caption>span{font-size:0}[data-event-gallery] .eg-caption>span>span{font-size:18px}[data-event-gallery] .eg-tile{border-radius:13px}[data-event-gallery] .eg-pagination{gap:8px;padding-top:18px;margin-top:18px}[data-event-gallery] .eg-pagination>a{font-size:12px;padding:9px 11px;gap:6px}[data-event-gallery] .eg-pagination label{gap:5px;font-size:11px}[data-event-gallery] .eg-pagination select{min-width:45px;padding:8px 5px}dialog.eg-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:17px}.eg-dialog-shell{max-height:calc(100dvh - 24px)}.eg-dialog-head{padding:14px}.eg-dialog-head strong{font-size:15px}.eg-dialog .eg-close{padding:4px 11px}.eg-stage>[data-eg-view]{height:calc(100dvh - 250px)}.eg-dialog-foot{padding:14px;gap:14px;flex-wrap:wrap}.eg-dialog-foot>div{width:100%}.eg-dialog-foot strong{max-width:80vw}.eg-dialog .eg-download{width:100%}.eg-dialog .eg-arrow{width:38px;height:46px}.eg-back{left:8px}.eg-forward{right:8px}}
@media(prefers-reduced-motion:reduce){[data-event-gallery] .eg-tile{transition:none}.eg-loading:before{animation:none}}
@media(max-width:700px){[data-event-gallery] .eg-heading{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start}[data-event-gallery] .eg-total{grid-column:2;justify-self:start;margin-left:0}[data-event-gallery] .eg-title h2{white-space:normal}.eg-stage>[data-eg-view]{height:auto;min-height:0;max-height:calc(100vh - 250px);max-height:calc(100dvh - 250px)}}
@media(max-width:360px){[data-event-gallery] .eg-pagination{display:grid;grid-template-columns:1fr 1fr}[data-event-gallery] .eg-pagination label{grid-row:1;grid-column:1/-1;justify-content:center}[data-event-gallery] .eg-pagination>a{grid-row:2}[data-event-gallery] .eg-title h2{font-size:21px!important}}
