

[data-zoomable] {
    cursor: zoom-in;
}

.image-zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
}

.image-zoom-overlay img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 25px 60px -15px #000;
}

.image-zoom-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.image-zoom-close::before,
.image-zoom-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    margin: -1px 0 0 -10px;
    background: #fff;
}

.image-zoom-close::before {
    transform: rotate(45deg);
}

.image-zoom-close::after {
    transform: rotate(-45deg);
}

.image-zoom-close:hover {
    background: var(--primary);
}

.image-zoom-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .image-zoom-overlay {
        padding: 12px;
    }

    .image-zoom-close {
        top: 8px;
        right: 8px;
    }
}
