.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    will-change: opacity;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-panel {
    background-color: #1F2937;
    border-radius: 1.5rem;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translate3d(0, 0, 0) scale(0.9);
    transition: transform 0.4s ease;
    backface-visibility: hidden;
    will-change: transform;
}

.modal-overlay.visible .modal-panel {
    transform: translate3d(0, 0, 0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: white;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.modal-content h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: #D1D5DB;
    font-size: 1rem;
    line-height: 1.6;
}
