.lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox.active{
    display: flex;
}

.lightbox-img{
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 15px 50px rgba(0,0,0,.4);
    cursor: default;
    animation: zoomIn .25s ease;
}

.lightbox-close{
    position: absolute;
    top: 25px;
    right: 35px;
    color: #FBF7EE;
    font-size: 3rem;
    cursor: pointer;
    transition: .3s;
    z-index: 1000;
}

.lightbox-close:hover{
    color: #CD8195;
    transform: scale(1.15);
}

@keyframes zoomIn{
    from{
        opacity: 0;
        transform: scale(.9);
    }
    to{
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px){
    .lightbox{
        padding: 1rem;
    }

    .lightbox-img{
        max-width: 95%;
        max-height: 85%;
        border-radius: 12px;
    }

    .lightbox-close{
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }
}