.uzzlp-photo-carousel{position:relative;width:100%;margin:0 0 12px;color:#111;outline-offset:3px}
.uzzlp-photo-stage{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;background:#e8e4da}
.uzzlp-photo-stage img{width:100%;height:100%;object-fit:contain;display:block}
.uzzlp-photo-crop{width:100%;height:100%;background-repeat:no-repeat;background-size:300% auto;background-position-y:78%}
.uzzlp-photo-crop-left{background-position-x:0}
.uzzlp-photo-crop-center{background-position-x:50%}
.uzzlp-photo-crop-right{background-position-x:100%}
.uzzlp-photo-prev,.uzzlp-photo-next{position:absolute;top:calc(50% - 23px);display:grid;place-items:center;width:34px;height:46px;padding:0;border:0;border-radius:4px;background:rgba(0,0,0,.68);color:#fff;font-size:30px;line-height:1;cursor:pointer}
.uzzlp-photo-prev{left:6px}.uzzlp-photo-next{right:6px}
.uzzlp-photo-prev[hidden],.uzzlp-photo-next[hidden]{display:none}
.uzzlp-photo-footer{display:flex;justify-content:space-between;gap:12px;padding:5px 2px;font:13px/1.4 system-ui,sans-serif}
.uzzlp-photo-count{white-space:nowrap;margin-left:auto}
.uzzlp-qr-page{margin:0;background:#111;color:#f6f1e7;font:17px/1.5 system-ui,sans-serif}
.uzzlp-qr-card{box-sizing:border-box;max-width:680px;margin:0 auto;padding:24px 20px 70px}
.uzzlp-qr-card h1{font-size:clamp(35px,8vw,60px);line-height:1.04;margin:10px 0 24px;color:#fff}
.uzzlp-qr-logo{font-size:28px;font-weight:900;color:#ffd924;text-decoration:none}
.uzzlp-qr-kicker{margin:45px 0 0;font-size:12px;letter-spacing:.18em;font-weight:800;color:#ffd924}
.uzzlp-qr-id{font-size:13px;letter-spacing:.12em;margin:8px 0}
.uzzlp-qr-place{font-weight:700;color:#ffd924}
.uzzlp-qr-gallery .uzzlp-photo-stage{aspect-ratio:1/1}
.uzzlp-qr-gallery .uzzlp-photo-footer{color:#f6f1e7}
.uzzlp-qr-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:30px}
.uzzlp-qr-links a,.uzzlp-qr-map-link{display:block;box-sizing:border-box;padding:12px 15px;border:2px solid #ffd924;border-radius:8px;color:#ffd924;text-align:center;text-decoration:none;font-weight:700}
.uzzlp-qr-links a:hover,.uzzlp-qr-map-link:hover{background:#ffd924;color:#111}
.uzzlp-qr-map-link{margin-top:24px}
@media(max-width:420px){.uzzlp-qr-links{grid-template-columns:1fr}}


/* Photo viewer for maps and QR pages */
.uzzlp-photo-stage[aria-haspopup="dialog"] { cursor: zoom-in; }
.uzzlp-photo-stage[aria-haspopup="dialog"]::after {
  content: "⛶"; position: absolute; bottom: 6px; right: 6px; padding: 2px 6px;
  color: #fff; background: #171717da; border-radius: 4px; font: 20px/1.1 system-ui;
  pointer-events: none;
}
.uzzlp-photo-stage:focus-visible { outline: 3px solid #ffdc27; outline-offset: -3px; }
dialog.uzzlp-photo-zoom {
  box-sizing: border-box; position: fixed; inset: 0; margin: auto;
  width: min(96vw, 1180px); height: min(92vh, 920px); height: min(92dvh, 920px);
  max-width: 100vw; max-height: 100dvh; padding: 0; border: 0;
  border-radius: 9px; color: #fff; background: #161616; overflow: hidden;
}
dialog.uzzlp-photo-zoom[open] { display: flex; flex-direction: column; }
dialog.uzzlp-photo-zoom::backdrop { background: rgb(0 0 0 / 86%); }
.uzzlp-zoom-tools {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  flex: none; padding: 6px 10px; background: #202020; font: 15px/1.2 system-ui;
}
.uzzlp-zoom-tools button {
  min-width: 44px; height: 44px; padding: 0 12px; margin: 0; border: 1px solid #777;
  border-radius: 5px; background: #242424; color: white; font: 600 18px/1 system-ui;
  cursor: pointer;
}
.uzzlp-zoom-tools button:last-child { margin-left: 8px; font-size: 15px; }
.uzzlp-zoom-tools button:disabled { opacity: .45; cursor: default; }
.uzzlp-zoom-tools button:focus-visible { outline: 2px solid #ffdc27; }
.uzzlp-zoom-tools output { min-width: 54px; text-align: center; color: #fff; font-variant-numeric: tabular-nums; }
.uzzlp-zoom-view {
  flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain;
  touch-action: none; scrollbar-width: none; user-select: none;
}
.uzzlp-zoom-view::-webkit-scrollbar { display: none; }
.uzzlp-zoom-view.is-zoomed { cursor: grab; }
.uzzlp-zoom-view.is-zoomed:active { cursor: grabbing; }
.uzzlp-zoom-canvas { display: grid; place-items: center; min-width: 100%; min-height: 100%; }
.uzzlp-zoom-canvas img { display: block; max-width: none; max-height: none; margin: 0; object-fit: contain; }

.uzzlp-zoom-frame { position: relative; overflow: hidden; }
.uzzlp-zoom-frame img { position: absolute; }
.uzzlp-photo-stage .uzzlp-portrait-preview { display: block; width: 100%; height: 100%; }
