/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Modal Card */
.modal-card {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9);
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

/* Modal Image */
.modal-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg);
}

.close-btn svg {
    width: 20px;
    height: 20px;
}