.psg-gallery{margin:1.5rem 0;max-width:100%;min-width:0;--psg-current:var(--psg-cols,3);font:inherit}.psg-items{display:grid;grid-template-columns:repeat(var(--psg-current),minmax(0,1fr));gap:var(--psg-gap,10px)}.psg-item{margin:0!important;min-width:0;break-inside:avoid}.psg-photo{display:block;overflow:hidden;border-radius:var(--psg-radius,8px);background:#edeaf3}.psg-photo img{display:block;width:100%;height:auto;aspect-ratio:var(--psg-ratio,4/3);object-fit:cover;max-width:100%;margin:0!important}.psg-item figcaption{font-size:.85em;line-height:1.45;padding:6px 2px;overflow-wrap:anywhere}.psg-masonry .psg-items{display:block;columns:var(--psg-current);column-gap:var(--psg-gap)}.psg-masonry .psg-item{margin-bottom:var(--psg-gap)!important}.psg-masonry img,.psg-justified img{aspect-ratio:auto;object-fit:contain}.psg-justified .psg-items{display:flex;flex-wrap:wrap;align-items:flex-start}.psg-justified .psg-item{flex:1 1 180px;max-width:100%}.psg-justified .psg-photo img{height:clamp(130px,20vw,240px);width:100%;object-fit:cover}.psg-carousel .psg-items{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain}.psg-carousel .psg-item{flex:0 0 min(100%,650px);scroll-snap-align:start}.psg-controls{display:flex;justify-content:flex-end;gap:8px;margin-bottom:8px}.psg-controls[hidden],.psg-more[hidden],.psg-item[hidden]{display:none!important}.psg-mosaic .psg-item:first-child{grid-column:span 2;grid-row:span 2}.psg-mosaic .psg-item:first-child .psg-photo img{aspect-ratio:1/1}.psg-gallery button,.psg-dialog button,.psg-dialog .psg-download{border:1px solid transparent;border-radius:8px;padding:9px 14px;min-height:44px;background:#43239e;color:#fff;cursor:pointer;font:inherit}.psg-more{display:block;margin:12px auto}.psg-gallery a:focus-visible,.psg-gallery button:focus-visible,.psg-dialog :focus-visible{outline:3px solid #e5a900;outline-offset:3px}.psg-anim-zoom img{transition:transform .22s ease}.psg-anim-zoom a:hover img{transform:scale(1.035)}.psg-anim-fade .psg-photo{animation:psg-enter .4s ease both}@keyframes psg-enter{from{opacity:.5}to{opacity:1}}
.psg-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(96vw,1200px);max-width:96vw;height:min(94vh,900px);max-height:94vh;height:min(94dvh,900px);max-height:94dvh;padding:0;border:1px solid #ffffff38;border-radius:14px;background:#171323;color:#fff;overflow:hidden;z-index:2147483000}.psg-dialog::backdrop{background:#0b0813dc;backdrop-filter:blur(12px)}.psg-dialog[open]{display:flex;flex-direction:column}.psg-dialog header,.psg-dialog footer{flex:none;display:flex;align-items:center;gap:8px;padding:10px 14px;background:#211932;color:white;flex-wrap:wrap}.psg-dialog header strong{margin-right:auto}.psg-dialog button,.psg-dialog .psg-download{background:#ffffff18;color:white;text-decoration:none}.psg-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;position:relative;isolation:isolate}.psg-stage::before{content:'';position:absolute;inset:0;background:var(--psg-bg,none) center/cover;filter:blur(35px);opacity:.18;z-index:-1}.psg-stage img{max-width:100%;max-height:100%;object-fit:contain;display:block;margin:auto;transform-origin:center}.psg-stage.is-zoom img{max-width:none;max-height:none;width:auto;cursor:zoom-out}.psg-caption{flex:none;max-height:12vh;overflow:auto;margin:0;padding:6px 14px;text-align:center;overflow-wrap:anywhere}.psg-thumbs{display:flex;overflow-x:auto;gap:6px;flex:none;padding:8px;max-width:100%;background:#211932}.psg-thumbs button{padding:2px;min-height:0;flex:0 0 56px;height:48px;border:2px solid transparent}.psg-thumbs button[aria-current=true]{border-color:#e5b939}.psg-thumbs img{width:100%;height:100%;object-fit:cover;display:block}.psg-download[hidden]{display:none!important}.psg-album{margin-block:2rem}
@media(max-width:1023px){.psg-gallery{--psg-current:var(--psg-tablet,2)}}@media(max-width:600px){.psg-gallery{--psg-current:var(--psg-mobile,2)}.psg-mosaic .psg-item:first-child{grid-column:1/-1;grid-row:auto}.psg-dialog header,.psg-dialog footer{padding:6px;gap:5px}.psg-dialog button,.psg-dialog .psg-download{padding:7px 9px}.psg-dialog{border-radius:8px}.psg-justified .psg-item{flex-basis:130px}}@media(prefers-reduced-motion:reduce){.psg-gallery *, .psg-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(forced-colors:active){.psg-stage::before{display:none}.psg-dialog button,.psg-gallery button{border:1px solid ButtonText}}
.psg-justified .psg-item{flex:var(--psg-aspect,1.4) 1 calc(var(--psg-aspect,1.4)*120px)}

/* 1.1.1: a miniatura (não a imagem substituída) determina a altura.
   Isola atributos width/height, lazy loading e CSS de notícias/temas. */
.psg-gallery .psg-items{align-items:start;grid-auto-rows:auto;min-height:0;min-width:0}
.psg-gallery .psg-items>.psg-item{box-sizing:border-box;align-self:start;width:100%;height:auto!important;min-height:0!important;max-height:none;min-width:0;margin:0!important;padding:0;aspect-ratio:auto}
.psg-gallery .psg-item>.psg-photo{box-sizing:border-box;display:block!important;position:relative!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:var(--psg-ratio,4/3)!important;padding:0!important;margin:0!important;overflow:hidden}
.psg-gallery .psg-item>.psg-photo>img{box-sizing:border-box;display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;aspect-ratio:auto!important;contain-intrinsic-size:none!important;object-fit:cover!important;object-position:center;border-radius:0!important;margin:0!important;padding:0!important}
.psg-gallery.psg-ratio-original .psg-item>.psg-photo,.psg-gallery.psg-masonry .psg-item>.psg-photo{aspect-ratio:var(--psg-native-ratio,4/3)!important}
.psg-gallery.psg-ratio-original .psg-item>.psg-photo>img,.psg-gallery.psg-masonry .psg-item>.psg-photo>img{object-fit:contain!important}
.psg-gallery.psg-masonry .psg-items>.psg-item{margin-bottom:var(--psg-gap,10px)!important}
.psg-gallery.psg-justified .psg-item>.psg-photo{height:clamp(130px,20vw,240px)!important;aspect-ratio:auto!important}
.psg-gallery.psg-mosaic:not(.psg-ratio-original) .psg-item:first-child>.psg-photo{aspect-ratio:1/1!important}
.psg-gallery .psg-item[hidden]{display:none!important}
