/* Extracted from image_modal.html.twig */
/* Auto-generated — do not edit inline styles in the template */

    /* Image Modal Styles */
    .image-modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        animation: fadeIn 0.3s ease;
        padding: 2rem;
    }
    
    .image-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .image-modal-container {
        max-width: calc(100% - 4rem);
        max-height: calc(100% - 4rem);
        background: white;
        padding: 1.5rem;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        opacity: 0.9;
        animation: zoomIn 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .image-modal-content {
        max-width: 100%;
        max-height: calc(100% - 100px);
        object-fit: contain;
        border-radius: 12px;
        opacity: 1;
        display: block;
        margin: 0 auto;
    }
    
    .image-modal-thumbnails {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
        max-height: 80px;
        overflow-x: auto;
        padding: 0.5rem 0;
    }
    
    .image-modal-thumbnail {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        opacity: 0.7;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }
    
    .image-modal-thumbnail:hover {
        transform: scale(1.1);
        opacity: 1;
    }
    
    .image-modal-thumbnail.active {
        opacity: 1;
        border-color: var(--primary-color);
    }
    
    .image-modal-close {
        position: absolute;
        top: 30px;
        right: 45px;
        color: white;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        background: rgba(0, 0, 0, 0.5);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        z-index: 10000;
    }
    
    .image-modal-close:hover {
        background: var(--danger-color);
        transform: rotate(90deg);
    }
    
    .image-modal-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        font-size: 3rem;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10000;
        display: none;
    }
    
    .image-modal.has-multiple .image-modal-nav {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .image-modal-nav:hover {
        background: var(--primary-color);
        transform: translateY(-50%) scale(1.1);
    }
    
    .image-modal-prev {
        left: 2rem;
    }
    
    .image-modal-next {
        right: 2rem;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    @keyframes zoomIn {
        from { transform: scale(0.8); }
        to { transform: scale(1); }
    }
