/* retoor */ img[data-lightbox] { cursor: zoom-in; } .lightbox-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); display: none; align-items: center; justify-content: center; z-index: var(--z-lightbox); cursor: zoom-out; overscroll-behavior: contain; } .lightbox-overlay.visible { display: flex; } .lightbox-overlay .lightbox-image { max-width: 95vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); cursor: default; } .lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--white); border: none; font-size: 1.25rem; cursor: pointer; display: flex; align-items: center; justify-content: center; } .lightbox-close:hover { background: rgba(255, 255, 255, 0.2); } @media (hover: none) and (pointer: coarse) { .lightbox-close { width: 48px; height: 48px; top: 0.75rem; right: 0.75rem; font-size: 1.375rem; } }