.cuori-photo-trigger{display:block;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;color:inherit;cursor:zoom-in;font:inherit}
.cuori-photo-trigger img{display:block}
.cuori-photo-trigger:focus-visible{outline:3px solid #7a1f3d;outline-offset:4px}
.cuori-photo-viewer{width:min(94vw,1060px);max-width:none;max-height:94dvh;box-sizing:border-box;padding:20px;border:1px solid #d4b581;border-radius:20px;background:#fffaf2;color:#321d27;overflow:auto;box-shadow:0 24px 80px #0008}
.cuori-photo-viewer::backdrop{background:rgba(30,15,24,.82)}
.cuori-photo-viewer h2{margin:0 110px 16px 0;font:600 22px/1.3 Georgia,serif}
.cuori-photo-viewer button{min-width:48px;min-height:48px;padding:10px 15px;border:1px solid #a27b3d;border-radius:12px;background:#fff;color:#631e35;font:600 16px/1.3 system-ui;cursor:pointer}
.cuori-photo-viewer button:focus-visible{outline:3px solid #631e35;outline-offset:3px}
.cuori-photo-close{position:absolute;right:16px;top:12px}
.cuori-photo-stage{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;touch-action:pan-y}
.cuori-photo-stage img{width:100%;height:min(65dvh,760px);object-fit:contain;min-width:0}
.cuori-photo-stage button[hidden]{display:none}
.cuori-photo-stage:has(button[hidden]){grid-template-columns:minmax(0,1fr)}
.cuori-photo-caption,#cuori-photo-counter{text-align:center;margin:10px 0 0;font:400 15px/1.5 system-ui;overflow-wrap:anywhere}
@media(max-width:560px){.cuori-photo-viewer{padding:16px 10px;width:96vw}.cuori-photo-stage{gap:4px}.cuori-photo-stage button{padding:8px;min-width:44px}.cuori-photo-viewer h2{font-size:19px}.cuori-photo-stage img{height:60dvh}}
@media(prefers-reduced-motion:reduce){.cuori-photo-viewer{scroll-behavior:auto}}
