.photo-previews{position:absolute;inset:0;z-index:1;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:44px 10px 10px;background:#faf6f0}.photo-previews[hidden]{display:none}.photo-previews img{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:3px;background:#eee}.photo-drop.has-image .photo-previews{position:absolute}.photo-drop.has-image strong,.photo-drop.has-image small{z-index:2;left:12px;background:#fffdf2ed;padding:5px 7px;border-radius:3px}.photo-drop.has-image strong{top:8px}.photo-drop.has-image small{top:29px}
.photo-drop.has-image .photo-previews img{position:static;inset:auto;width:100%;height:100%;object-fit:cover;z-index:auto;background:#eee}
.dialog-image{position:relative}.dialog-image .gallery-arrow{display:none;position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:38px;height:38px;border:1px solid #ffffffb8;border-radius:50%;background:#fffdf2e8;color:#493327;font:26px/1 Georgia,serif;cursor:pointer;box-shadow:0 2px 10px #321d1230;place-items:center}.dialog-image.has-gallery .gallery-arrow{display:grid}.dialog-image .gallery-prev{left:12px}.dialog-image .gallery-next{right:12px}.dialog-image .gallery-arrow:hover{background:#fff}.dialog-gallery{position:absolute;z-index:2;left:12px;right:12px;bottom:12px;display:flex;justify-content:center;gap:6px}.gallery-thumb{width:42px;height:42px;padding:2px;border:1px solid #ffffffaa;border-radius:4px;background:#fff;overflow:hidden;cursor:pointer;box-shadow:0 2px 7px #321d1230}.gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:2px}.gallery-thumb.is-selected{border:2px solid #493327}.dialog-gallery:empty{display:none}
.dialog-image #dialog-image{cursor:zoom-in}.dialog-image #dialog-image:focus-visible{outline:3px solid #d6b18e;outline-offset:-4px}.image-zoom-button{position:absolute;z-index:4;right:12px;top:12px;width:34px;height:34px;border:1px solid #ffffffb8;border-radius:50%;background:#fffdf2e8;color:#493327;font:22px/1 var(--sans);cursor:zoom-in;box-shadow:0 2px 10px #321d1230}.image-zoom-button:hover{background:#fff}
.image-lightbox{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:transparent;color:#fff}.image-lightbox[open]{display:flex;align-items:center;justify-content:center}.image-lightbox::backdrop{background:rgba(10,12,10,.96)}.lightbox-stage{width:100%;height:100%;display:grid;place-items:center;padding:58px 92px 70px;position:relative}.lightbox-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none}.lightbox-close,.lightbox-arrow{position:absolute;z-index:2;display:grid;place-items:center;border:1px solid #ffffff46;background:#ffffff16;color:#fff;cursor:pointer;transition:background .2s,border-color .2s}.lightbox-close:hover,.lightbox-arrow:hover{background:#ffffff2c;border-color:#ffffff88}.lightbox-close{top:20px;right:24px;width:42px;height:42px;border-radius:50%;font:28px/1 var(--sans)}.lightbox-arrow{top:50%;transform:translateY(-50%);width:50px;height:50px;border-radius:50%;font:34px/1 Georgia,serif}.lightbox-prev{left:22px}.lightbox-next{right:22px}.lightbox-counter{position:absolute;bottom:23px;left:50%;transform:translateX(-50%);font:500 12px var(--sans);letter-spacing:.08em;color:#ffffffc9}.lightbox-arrow[hidden]{display:none!important}
@media(max-width:620px){.image-zoom-button{right:9px;top:9px;width:31px;height:31px;font-size:20px}.lightbox-stage{padding:56px 52px 66px}.lightbox-close{top:12px;right:13px;width:38px;height:38px}.lightbox-arrow{width:40px;height:40px;font-size:29px}.lightbox-prev{left:8px}.lightbox-next{right:8px}.lightbox-counter{bottom:18px}}

/* Versión 1.10: limitar la imagen ampliada al área visible en escritorio. */
@media(min-width:621px){.image-lightbox{width:100vw;height:100vh;height:100dvh}.lightbox-stage{width:100vw;height:100vh;height:100dvh;min-width:0;min-height:0;overflow:hidden}.lightbox-stage img{width:auto;height:auto;max-width:calc(100vw - 180px);max-height:calc(100vh - 120px);max-height:calc(100dvh - 120px);object-fit:contain}}
