/* input(78,1): run-time error CSS1019: Unexpected token, found '@'
input(88,1): run-time error CSS1019: Unexpected token, found '@'
input(111,1): run-time error CSS1019: Unexpected token, found '@' */
.image-preview-modal {
    display: none;
    position: fixed !important;
    z-index: 9999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
    margin: 0 !important;
    padding: 0 !important;
}

.image-preview-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100vh !important;
    width: 100vw !important;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.image-preview-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

.image-preview-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

    .image-preview-close:hover {
        color: #ffcc77;
    }

.image-preview-caption {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #f1f1f1;
    font-size: 16px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.7);
    border-radius: 5px;
    z-index: 10000;
    max-width: 80vw;
}

.media-container {
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .media-container:hover {
        transform: scale(1.02);
    }

@@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ensure modal is always on top and not affected by parent containers */
.image-preview-modal * {
    box-sizing: border-box;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

@@media (max-width: 768px) {
    .image-preview-img {
        max-width: 95vw;
        max-height: 80vh;
    }

    .image-preview-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .image-preview-caption {
        font-size: 14px;
        padding: 8px 16px;
        max-width: 90vw;
    }
}
