/* AndorraCasa 0.38 · galería pública completa */
.v38-public-gallery .gallery-cell:focus-visible{z-index:3;outline:3px solid #d2b56f;outline-offset:-4px}.v38-public-gallery .v38-gallery-launch{display:inline-flex;align-items:center;gap:5px;box-shadow:0 8px 24px #0004}.v38-public-gallery .gallery-count{background:rgba(7,19,22,.92);box-shadow:0 8px 24px #0005}.v38-gallery-count-1 .gallery-hero-cell{grid-column:1/4;grid-row:1/3}.v38-gallery-count-2 .gallery-cell:nth-child(2){grid-column:2/4;grid-row:1/3}.v38-gallery-count-3 .gallery-cell:nth-child(2){grid-column:2/4;grid-row:1}.v38-gallery-count-3 .gallery-cell:nth-child(3){grid-column:2/4;grid-row:2}
.v38-gallery-modal{padding:24px 76px;background:rgba(2,10,12,.975);backdrop-filter:blur(12px)}.v38-gallery-modal .gallery-close{z-index:6;right:24px;top:20px;border:1px solid #ffffff2e;background:#173033;color:#fff;transition:background .18s,border-color .18s,transform .18s}.v38-gallery-modal .gallery-close:hover{border-color:#d6bb77;background:#203f42;transform:rotate(4deg)}.v38-gallery-shell{display:grid;grid-template-rows:minmax(0,1fr) 92px;gap:14px;width:min(1380px,100%);height:min(930px,calc(100vh - 48px));margin:auto}.v38-gallery-stage{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden;border:1px solid #ffffff18;border-radius:18px;background:#02090b;box-shadow:0 30px 90px #0008}.v38-gallery-stage>img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}.v38-gallery-stage .gallery-prev,.v38-gallery-stage .gallery-next{z-index:3;top:50%;margin-top:-25px;width:50px;height:50px;border:1px solid #ffffff35;background:#102225df;box-shadow:0 8px 25px #0006;font-size:30px;transition:background .18s,border-color .18s,transform .18s}.v38-gallery-stage .gallery-prev{left:18px}.v38-gallery-stage .gallery-next{right:18px}.v38-gallery-stage .gallery-prev:hover,.v38-gallery-stage .gallery-next:hover{border-color:#d4b66e;background:#173538;transform:scale(1.05)}.v38-gallery-position{position:absolute;z-index:3;right:18px;bottom:16px;display:flex;gap:6px;align-items:center;padding:8px 12px;border:1px solid #ffffff24;border-radius:999px;background:#081719e8;color:#d6e0dd;font-size:12px;box-shadow:0 8px 20px #0005}.v38-gallery-position strong{color:#f2d484}.v38-gallery-thumbs{display:flex;gap:9px;align-items:center;overflow-x:auto;overscroll-behavior-inline:contain;padding:4px 3px 10px;scrollbar-color:#456361 transparent;scrollbar-width:thin}.v38-gallery-thumb{position:relative;flex:0 0 108px;height:76px;overflow:hidden;padding:0;border:2px solid transparent;border-radius:11px;background:#102225;cursor:pointer;opacity:.62;transition:opacity .18s,border-color .18s,transform .18s}.v38-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}.v38-gallery-thumb:hover{opacity:.9;transform:translateY(-2px)}.v38-gallery-thumb.is-active{border-color:#d4b66e;opacity:1;box-shadow:0 8px 22px #0005}.v38-gallery-thumb:focus-visible,.v38-gallery-modal button:focus-visible{outline:3px solid #f0d588;outline-offset:2px}.v38-gallery-modal [hidden]{display:none!important}
@media(max-width:900px){.v38-gallery-modal{padding:66px 18px 16px}.v38-gallery-modal .gallery-close{right:14px;top:12px}.v38-gallery-shell{grid-template-rows:minmax(0,1fr) 78px;height:calc(100dvh - 82px);gap:10px}.v38-gallery-stage{border-radius:14px}.v38-gallery-stage .gallery-prev,.v38-gallery-stage .gallery-next{width:44px;height:44px;margin-top:-22px}.v38-gallery-stage .gallery-prev{left:10px}.v38-gallery-stage .gallery-next{right:10px}.v38-gallery-thumb{flex-basis:88px;height:62px}.v38-gallery-position{right:10px;bottom:10px}}
@media(max-width:680px){.v38-public-gallery .v38-gallery-launch{bottom:10px;left:10px}.v38-public-gallery .gallery-count{right:10px!important;bottom:10px}.v38-gallery-modal{padding:58px 0 0}.v38-gallery-shell{grid-template-rows:minmax(0,1fr) 76px;width:100%;height:calc(100dvh - 58px);gap:0}.v38-gallery-stage{border-width:1px 0;border-radius:0}.v38-gallery-stage .gallery-prev,.v38-gallery-stage .gallery-next{top:auto;bottom:10px;width:42px;height:42px;margin:0;background:#102225ed}.v38-gallery-stage .gallery-prev{left:10px}.v38-gallery-stage .gallery-next{right:10px}.v38-gallery-position{right:50%;bottom:14px;transform:translateX(50%)}.v38-gallery-thumbs{padding:8px 10px;background:#071416}.v38-gallery-thumb{flex-basis:76px;height:56px;border-radius:8px}.v38-gallery-modal .gallery-close{width:40px;height:40px}}
