#instafeed-lightbox.hidden {
    display: none;
}

#instafeed-lightbox {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9999;
}


#instafeed-lightbox.show {
    opacity: 1;
}

.instafeed-lightbox-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

#instafeed-lightbox-img {
    max-width: 95%;
    max-height: 90vh;
    z-index: 10000;
    margin: auto;
    display: block;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
    opacity: 0;
}

#instafeed-lightbox.show #instafeed-lightbox-img {
    transform: scale(1);
    opacity: 1;
}

#instafeed-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10001;
}

.instafeed-item-wrapper {
    position: relative;
    display: inline-block;
}

.instafeed-item {
    display: block;
    width: 100%;
    height: auto;
}

.overlay-block {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 2;
}

/* WATERMARK */
#instafeed-lightbox-watermark {
    position: absolute;
    bottom: 50px;
    right: 40px;
    max-width: 35%;
    opacity: 0.30;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

#instafeed-lightbox.show #instafeed-lightbox-watermark {
    opacity: 0.25
}

/* TITLE */
#instafeed-lightbox-title {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 5px;
    max-width: 90%;
    text-align: center;
    z-index:10000;
    line-height: 1.3;
    white-space: normal;
    backdrop-filter: blur(6px);
}

/* Share buttons
#instafeed-lightbox-share {
    margin-top: 10px;
}

#instafeed-lightbox-share a {
    color: #fff;
    margin: 0 5px;
    font-size: 20px;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
}
*/
