/* Scoped project controls and native photo dialog. */
.gp-projecte .gp-compare .gp-ba-label-before{background:#fff;color:#19313e;text-shadow:none}
.gp-projecte .gp-compare .gp-ba-label-after{background:#19558a;color:#fff;text-shadow:none}
.gp-projecte .gp-compare:focus-visible{outline:3px solid #19558a;outline-offset:5px;box-shadow:0 0 0 3px #fff}
.gp-projecte .gp-compare-handle::before{width:48px;height:48px;border:2px solid #19558a;box-sizing:border-box}
.gp-projecte .gp-compare-handle::after{content:'↔';display:grid;place-items:center;width:28px;height:28px;transform:translate(-50%,-50%);font:700 24px/1 Arial,sans-serif;letter-spacing:0;color:#19558a}
.gp-projecte .alpama-compare-keys{display:block;margin-top:6px;color:#374c57;font-size:14px;line-height:1.6}
.gp-projecte .gp-gallery .alpama-gallery-open{display:block;position:relative;cursor:zoom-in;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:#e9e7df;color:#fff;font:inherit;text-align:inherit}
.gp-projecte .gp-gallery .alpama-gallery-open:focus-visible{outline:3px solid #fff;outline-offset:-5px;box-shadow:inset 0 0 0 8px #19558a}
.gp-projecte .gp-gallery .alpama-gallery-badge{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;min-height:44px;padding:8px 14px;border-radius:8px;background:#19558a;color:#fff;font-size:14px;font-weight:700;line-height:1.3;pointer-events:none}
html.alpama-gallery-open-page{overflow:hidden}
.alpama-gallery-dialog{box-sizing:border-box;width:calc(100% - 40px);max-width:1100px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);padding:20px;border:1px solid #d2d9dc;border-radius:12px;background:#fff;color:#19313e;overflow:auto;box-shadow:0 16px 64px #0006}
.alpama-gallery-dialog::backdrop{background:#102532d9;backdrop-filter:blur(6px)}
.alpama-gallery-dialog .alpama-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:6px}
.alpama-gallery-dialog .alpama-gallery-header h2{font:700 22px/1.3 Arial,sans-serif;margin:0;color:#19313e}
.alpama-gallery-dialog button{box-sizing:border-box;min-width:44px;min-height:44px;border:1px solid #19558a;border-radius:8px;background:#19558a;color:#fff;font:700 15px/1.3 Arial,sans-serif;padding:10px 16px;cursor:pointer}
.alpama-gallery-dialog button:hover{background:#123e65}
.alpama-gallery-dialog button:focus-visible{outline:3px solid #19558a;outline-offset:3px;box-shadow:0 0 0 2px #fff}
.alpama-gallery-dialog .alpama-gallery-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;font-size:30px;line-height:1}
.alpama-gallery-dialog .alpama-gallery-help{font:400 14px/1.5 Arial,sans-serif;color:#374c57;margin:0 0 12px}
.alpama-gallery-dialog .alpama-gallery-figure{margin:0}
.alpama-gallery-dialog .alpama-gallery-figure img{display:block;max-width:100%;width:100%;height:calc(100vh - 260px);height:calc(100dvh - 260px);max-height:720px;min-height:120px;object-fit:contain;background:#f3f4f2;border-radius:8px}
.alpama-gallery-dialog figcaption{font:400 15px/1.5 Arial,sans-serif;margin-top:12px;color:#19313e}
.alpama-gallery-dialog .alpama-gallery-controls{display:flex;justify-content:space-between;gap:16px;margin-top:14px}
@media(max-width:600px){.alpama-gallery-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:14px}.alpama-gallery-dialog .alpama-gallery-header h2{font-size:19px}.alpama-gallery-dialog .alpama-gallery-controls button{font-size:14px;padding:10px 12px}.gp-projecte .gp-gallery .alpama-gallery-badge{right:8px;bottom:8px}}
@media(prefers-reduced-motion:reduce){.gp-projecte .gp-gallery img{transition:none}}
