/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: var(--transition);
}

.lightbox-caption {
    position: absolute;
    bottom: -2rem;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: var(--spacing-sm);
}

.lightbox-info {
    position: absolute;
    bottom: -4rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    color: white;
    font-size: 0.9rem;
}

.lightbox button {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-zoom-in,
.lightbox-zoom-out,
.lightbox-rotate,
.lightbox-fullscreen,
.lightbox-download {
    bottom: 20px;
}

.lightbox img {
    max-width: 80%;
}

.lightbox-zoom-in {
    right: 180px;
}

.lightbox-zoom-out {
    right: 135px;
}

.lightbox-rotate {
    right: 100px;
}

.lightbox-fullscreen {
    right: 90px;
}

.lightbox-download {
    right: 20px;
}

.social-icons-vertical {
    z-index: 999;
}

/* Responsive Design */
@media (max-width: 768px) {

    .lightbox-zoom-in,
    .lightbox-zoom-out,
    .lightbox-rotate,
    .lightbox-fullscreen,
    .lightbox-download {
        display: none;
    }
}

@media (max-width: 480px) {

    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
}