.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.image-viewer-modal.visible {
    display: flex;
}

.image-viewer-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.image-viewer-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    user-select: none;
    transition: transform 0.2s;
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #f1f1f1;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    padding: 10px;
}

.image-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 20px;
    user-select: none;
    z-index: 10000;
}

.image-viewer-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.image-viewer-prev {
    left: 20px;
}

.image-viewer-next {
    right: 20px;
}

.image-viewer-counter {
    position: absolute;
    bottom: 20px;
    color: white;
    font-size: 16px;
    z-index: 10000;
}

@media (max-width: 768px) {
    .image-viewer-img {
        max-width: 100%;
    }
    .image-viewer-prev {
        left: 10px;
    }
    .image-viewer-next {
        right: 10px;
    }
}