/* Lightbox Container */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px); 
}
.lightbox.is-active {
    opacity: 1;
    pointer-events: all;
}
.lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}
.lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 90vh; 
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    margin: 0 auto;
    transition: transform 0.2s ease-out; 
    cursor: zoom-in; 
    transform-origin: center center;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    object-fit: contain;
    user-select: none;
}
.lightbox__image[style*="scale(2)"] {
    cursor: zoom-out;
}
.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
    z-index: 2001;
}
.lightbox__close:hover {
    transform: scale(1.2) rotate(90deg);
    color: #ff6d0e;
}
.lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}
.lightbox__image.is-draggable {
    cursor: grab; 
}
.lightbox__image.is-dragging {
    cursor: grabbing;
    transition: none; 
}
.lightbox__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #212529;
    border: none;
    color: #fff;
    padding: 1rem;
    cursor: pointer;
    z-index: 2010;
    transition: background 0.3s ease;
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__btn:hover {
    background-color: #2a2f33;
}
.lightbox__btn--prev {
    left: 3rem;
}
.lightbox__btn--next {
    right: 3rem;
}

@media (max-width: 750px) {
    .lightbox__btn--next {
        right: 2rem !important;
    }
    .lightbox__btn--prev {
        left: 2rem !important;
    }
    .lightbox__btn {
        padding: 1rem !important;
    }
    .lightbox__btn svg {
        width: 1.6rem;
        height: 1.6rem;
    }
}
@media (max-width: 600px) {
    .lightbox__btn--next {
        right: 1rem !important;
    }
    .lightbox__btn--prev {
        left: 1rem !important;
    }
    .lightbox__btn {
        padding: 1.2rem !important;
    }
    .lightbox__btn svg {
        width: 1.4rem;
        height: 1.4rem;
    }
}
@media (max-width: 600px) {
    .lightbox__btn--next {
        right: .5rem !important;
    }
    .lightbox__btn--prev {
        left: .5rem !important;
    }
    .lightbox__btn {
        padding: 1rem !important;
    }
    .lightbox__btn svg {
        width: 1.2rem;
        height: 1.2rem;
    }
}