.dg-photo-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:10px;color:var(--ink);font:inherit}
.dg-photo-controls button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--yellow);color:var(--ink);font:inherit;font-size:24px;cursor:pointer}
.dg-photo-controls button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.dg-photo-controls span{min-width:4ch;text-align:center;font-variant-numeric:tabular-nums}

.dg-photo-lightbox{position:fixed;inset:0;box-sizing:border-box;width:min(1100px,96vw);max-width:96vw;max-height:94dvh;margin:auto;padding:52px 16px 16px;border:0;border-radius:20px;background:var(--paper,#fff);color:var(--ink);overflow:auto}
.dg-photo-lightbox::backdrop{background:rgba(0,0,0,.85)}
.dg-photo-lightbox>img{display:block;width:100%;height:calc(94dvh - 190px);object-fit:contain}
.dg-photo-caption{text-align:center;margin:10px 0;line-height:1.4}
.dg-photo-close{position:absolute;right:12px;top:8px;width:44px;height:44px;border:0;border-radius:50%;background:var(--yellow);color:var(--ink);font-size:30px;cursor:pointer}
.dg-photo-lightbox button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.dg-photo-lightbox .dg-photo-controls[hidden]{display:none}
.dg-v1-day-gallery a,.dg-real-gallery a:has(img){cursor:zoom-in}

.dg-photo-lightbox>img{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
.dg-photo-lightbox{overscroll-behavior:contain}
