.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.lightbox-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh; /* match max-height from above */
    overflow: hidden;
}
.lightbox-main {
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain; /* or 'cover' if you want full fill */
    transition: opacity 0.3s ease;
}

.lightbox-thumbs-wrapper {
    max-width: 50vw;
    overflow: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.lightbox-thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    margin-top: 1rem;
    gap: 0.5rem;
    scroll-behavior: smooth;
}
.lightbox-thumbs img {
    height: 60px;
    width: auto;
    cursor: pointer;
    border: 2px solid transparent;
}
.lightbox-thumbs img.active {
    border-color: white;
}
.lightbox-nav,
.lightbox-share,
.lightbox-close {
    position: absolute;
    top: 1rem;
    font-size: 36px;
    color: white;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.lightbox-nav:hover,
.lightbox-share:hover,
.lightbox-close:hover {
    opacity: 1;
}
.lightbox-close {
    right: 1rem;
}
.lightbox-nav.left {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-nav.right {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-share {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
    border-radius: 48px;
    backdrop-filter: blur(4px);
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    padding: 1rem;
    bottom: auto;
    display: flex;
    gap: 1rem;
}
.lightbox-share a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.lightbox-share a:hover {
    color: white;
    transform: scale(1.1);
    opacity: 0.8;
}

.share-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
    border-radius: 48px;
    backdrop-filter: blur(4px);
    padding: 4px 6px;
    display: flex;
    gap: 4px;
    font-size: 12px;
    z-index: 1;
}

.share-overlay a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.share-overlay a:hover {
    color: #ffffff;
    transform: scale(1.1);
    opacity: 0.8;
}
