div#cv-lightbox {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none !important;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.9);
}

div#cv-lightbox > figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

div#cv-lightbox > figure > img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

div#cv-lightbox > figure > img:hover {
    cursor: zoom-out;
}

div#cv-lightbox > figure > figcaption {
    color: white;
    margin-block-start: 0.75rem;
    text-align: center;
    font-size: var(--wp--preset--font-size--medium);
}

div#cv-lightbox > span {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3.5rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

div#cv-lightbox > span:hover {
    transform: scale(1.15);
}

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