/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 90vh;
    width: 90%;
}

.modal-content {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    animation: zoom 0.3s ease-in-out;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 10px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#imageCaption {
    margin: 15px auto 0;
    width: 100%;
    text-align: center;
    color: #ccc;
    padding: 10px 15px;
    font-size: 1rem;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 65vh;
    }
    
    #imageCaption {
        font-size: 0.9rem;
        margin-top: 20px;
    }
} 