.zoomImage {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}
.zoomImage:hover {
    opacity: 0.8;
}
.zoom-modal-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.72);
    animation: zoomFadeIn 0.3s ease;
}
.zoom-modal-overlay.active {
    display: block;
}
@keyframes zoomFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.zoom-close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100001;
    transition: color 0.3s, transform 0.2s;
    line-height: 1;
    user-select: none;
}
.zoom-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zoom-modal-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomImageIn 0.4s ease;
    user-select: none;
}
@keyframes zoomImageIn {
    from { 
        transform: scale(0.7);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}
.zoom-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}
.zoom-nav-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}
.zoom-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}
.zoom-prev-btn {
    left: 20px;
}
.zoom-next-btn {
    right: 20px;
}
.zoom-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    font-family: Arial, sans-serif;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 100001;
    user-select: none;
    font-weight: 500;
}
.zoom-caption {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 15px;
    font-family: Arial, sans-serif;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 24px;
    border-radius: 8px;
    max-width: 80%;
    text-align: center;
    z-index: 100001;
    line-height: 1.5;
}
.zoom-modal-overlay.single-image .zoom-prev-btn,
.zoom-modal-overlay.single-image .zoom-next-btn,
.zoom-modal-overlay.single-image .zoom-counter {
    display: none;
}
.zoom-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: zoomSpin 1s linear infinite;
    z-index: 100000;
}
@keyframes zoomSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (max-width: 768px) {
    .zoom-close-btn {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    .zoom-nav-btn {
        font-size: 20px;
        padding: 10px;
    }
    .zoom-prev-btn {
        left: 15px;
    }
    .zoom-next-btn {
        right: 15px;
    }
    .zoom-modal-image {
        max-width: 95%;
        max-height: 85vh;
    }
    .zoom-caption {
        font-size: 13px;
        max-width: 90%;
        bottom: 55px;
        padding: 10px 16px;
    }
    .zoom-counter {
        font-size: 14px;
        padding: 8px 16px;
        bottom: 15px;
    }
}
body.zoom-modal-open {
    overflow: hidden;
}