/* Biblioteca Galeria 11. Estilos e controles compartilhados entre editor e páginas publicadas. */
.bth-gallery{--bth-gallery-arrow-size:38px;--bth-gallery-arrow-color:#fff;max-width:100%;min-width:0;position:relative;isolation:isolate}
.bth-gallery[data-gallery-ratio]:not([data-gallery-ratio=auto])>figure img{aspect-ratio:var(--gallery-aspect,16/9);max-height:none!important;width:100%;height:auto}
.bth-gallery[data-gallery-ratio="4/3"]{--gallery-aspect:4/3}.bth-gallery[data-gallery-ratio="1/1"]{--gallery-aspect:1/1}.bth-gallery[data-gallery-ratio="3/4"]{--gallery-aspect:3/4}.bth-gallery[data-gallery-ratio="9/16"]{--gallery-aspect:9/16}
.bth-gallery[data-gallery-ratio="16/9"]{--gallery-aspect:16/9}
.bth-gallery[data-gallery-fit=cover] figure img{object-fit:cover!important}.bth-gallery[data-gallery-fit=contain] figure img{object-fit:contain!important}
.bth-gallery>.bth-gallery-nav{position:absolute!important;z-index:19!important;top:50%!important;transform:translateY(-50%)!important;width:var(--bth-gallery-arrow-size)!important;height:var(--bth-gallery-arrow-size)!important;min-width:0!important;min-height:0!important;padding:0!important;font-size:calc(var(--bth-gallery-arrow-size)*.8)!important;line-height:1!important;color:var(--bth-gallery-arrow-color)!important;display:grid!important;place-items:center!important;cursor:pointer;background:#082b41d9;border:1px solid currentColor;border-radius:50%;box-sizing:border-box}
.bth-gallery>.bth-gallery-nav.prev{left:8px!important;right:auto!important}.bth-gallery>.bth-gallery-nav.next{right:8px!important;left:auto!important}
.bth-gallery.bth-gallery-nav-outside{overflow:visible!important}
.bth-gallery.bth-gallery-nav-outside>.bth-gallery-nav.prev{left:calc(var(--bth-gallery-arrow-size)*-0.55)!important}.bth-gallery.bth-gallery-nav-outside>.bth-gallery-nav.next{right:calc(var(--bth-gallery-arrow-size)*-0.55)!important}
.bth-gallery>.bth-gallery-expand{position:absolute;top:8px;right:8px;z-index:21;background:#082b41dc;color:#fff;border:1px solid #92c9e3;border-radius:6px;width:34px;height:34px;cursor:pointer}
.bth-gallery-indicators{position:relative;z-index:22;display:flex;align-items:center;gap:9px;justify-content:safe center;max-width:min(360px,90%);margin:7px auto 3px;overflow:auto hidden;scrollbar-width:none;padding:7px 12px 10px;scroll-snap-type:x proximity}
.bth-gallery-indicators::-webkit-scrollbar{display:none}
.bth-gallery-dot{flex:0 0 10px!important;width:10px!important;height:10px!important;min-width:10px!important;min-height:10px!important;border:1px solid #70c6e3!important;border-radius:50%!important;background:#739bae70!important;padding:0!important;box-shadow:none!important;scroll-snap-align:center;cursor:pointer;transition:background .2s,transform .2s}
.bth-gallery-dot.is-active{background:#e4b44c!important;border-color:#fce39e!important;transform:scale(1.35)}
.bth-gallery-slideshow,.bth-gallery-arrows,.bth-gallery-swipe,.bth-gallery-thumbnails{overflow:visible!important}
.bth-gallery-slideshow>figure,.bth-gallery-arrows>figure,.bth-gallery-swipe>figure,.bth-gallery-thumbnails>figure{max-width:100%;width:100%}
.bth-gallery-slideshow>figure[hidden],.bth-gallery-arrows>figure[hidden],.bth-gallery-swipe>figure[hidden],.bth-gallery-thumbnails>figure[hidden]{display:none!important}
.bth-gallery-scattered,.bth-gallery-fan{display:block!important;position:relative;min-height:clamp(230px,42vw,450px);padding:18px 35px 35px;touch-action:pan-y;overflow:visible!important;user-select:none}
.bth-gallery-scattered>figure,.bth-gallery-fan>figure{position:absolute!important;inset:7% 15% auto!important;width:70%!important;height:82%;margin:0!important;padding:8px 8px 25px!important;border:1px solid #e8e7df;background:#f8f6ec;box-shadow:0 8px 24px #0009;transform:translate(var(--bth-card-x,0px),var(--bth-card-y,0px)) rotate(var(--bth-card-rotate,0deg));transition:transform .28s ease,filter .28s ease,opacity .28s ease;cursor:grab;overflow:hidden}
.bth-gallery-scattered>figure img,.bth-gallery-fan>figure img{object-fit:cover!important;width:100%!important;height:100%!important;max-height:none!important;pointer-events:none}
.bth-gallery-scattered>figure.is-picked,.bth-gallery-fan>figure.is-picked{transform:translateY(-34px) scale(1.08) rotate(0deg);filter:drop-shadow(0 18px 20px #0009);cursor:grab}
.bth-gallery-scattered>figure.is-thrown,.bth-gallery-fan>figure.is-thrown{transform:translateX(var(--bth-throw-x,125%)) rotate(20deg)!important;opacity:0!important;pointer-events:none}
.bth-gallery-fan>figure{inset:8% 18% auto!important;width:64%!important;transform-origin:50% 125%}
.bth-gallery-fan>figure:nth-child(2n){--bth-card-rotate:11deg!important}.bth-gallery-fan>figure:nth-child(3n){--bth-card-rotate:-10deg!important}
.bth-gallery-scattered>.bth-gallery-stack-close,.bth-gallery-fan>.bth-gallery-stack-close{position:absolute;top:1px;right:9%;z-index:100;border-radius:50%;background:#112c43;border:1px solid #fff;color:#fff;font:26px Arial;width:40px;height:40px;cursor:pointer}
.bth-gallery-stack-close[hidden]{display:none!important}
.bth-gallery-polaroid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(165px,100%),1fr));gap:22px 18px;padding:18px!important;overflow:visible!important}
.bth-gallery-polaroid>figure{padding:8px 8px 23px!important;background:#fffaf1;border:1px solid #fff;box-shadow:0 7px 16px #0006;transform:rotate(-4deg);transition:transform .2s;overflow:visible!important}
.bth-gallery-polaroid>figure:nth-child(2n){transform:rotate(5deg)}.bth-gallery-polaroid>figure:hover{transform:rotate(0) translateY(-6px);z-index:3}
.bth-gallery-polaroid>figure img{height:185px!important;max-height:none!important;object-fit:cover}
.bth-gallery[data-gallery-effect]:not([data-gallery-effect=none]):not(.bth-gallery-slideshow):not(.bth-gallery-swipe):not(.bth-gallery-arrows):not(.bth-gallery-thumbnails):not(.bth-gallery-scattered):not(.bth-gallery-fan)>figure{transition:opacity .55s,transform .55s,filter .55s}
.bth-gallery[data-bth-gallery-ready="1"][data-gallery-effect=fade]>figure:not(.bth-gallery-effect-visible){opacity:0}
.bth-gallery[data-bth-gallery-ready="1"][data-gallery-effect=slide-up]>figure:not(.bth-gallery-effect-visible){opacity:0;transform:translateY(34px)}
.bth-gallery[data-bth-gallery-ready="1"][data-gallery-effect=expand]>figure:not(.bth-gallery-effect-visible){opacity:0;transform:scale(.75)}
.bth-gallery[data-bth-gallery-ready="1"][data-gallery-effect=shrink]>figure:not(.bth-gallery-effect-visible){opacity:0;transform:scale(1.2)}
.bth-gallery[data-bth-gallery-ready="1"][data-gallery-effect=zoom-out]>figure:not(.bth-gallery-effect-visible){opacity:0;transform:scale(1.4)}
.bth-gallery[data-bth-gallery-ready="1"][data-gallery-effect=grayscale]>figure:not(.bth-gallery-effect-visible){filter:grayscale(1)}
.bth-gallery[data-bth-gallery-ready="1"][data-gallery-effect=mono]>figure:not(.bth-gallery-effect-visible){filter:sepia(1) saturate(2)}
.bth-gallery-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 8px;margin:12px 0;padding:10px;border:1px solid #43758c;border-radius:7px;background:#092d4066}
.bth-gallery-options label{font:11px/1.35 Arial,sans-serif;display:grid;gap:4px;min-width:0}
.bth-gallery-options select,.bth-gallery-options input{width:100%;min-width:0;font-size:12px}
.bth-gallery-options small{font-size:10px}
/* Recepção: o atalho administrativo não existe visualmente na interface mobile. */
@media(max-width:767px){.home-enter-button.bth-admin-desktop-only{display:none!important}}
@media(prefers-reduced-motion:reduce){.bth-gallery *, .bth-gallery figure{animation:none!important;transition:none!important}.bth-gallery[data-gallery-effect]>figure{opacity:1!important;transform:none!important;filter:none!important}}

@media (pointer:coarse) and (max-width:1024px){.home-enter-button.bth-admin-desktop-only{display:none!important}}

/* Botão de entrada com imagem própria não recebe outra moldura. */
.bth-home-page .rpg-recepcao-entrar:has(.bth-home-enter-art){padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.bth-home-page .rpg-recepcao-entrar .bth-home-enter-art{display:block;max-height:95px;max-width:220px;object-fit:contain}
