.images-details-section {
    width: 100%;
    margin-top: 4rem;
    padding-left: 2rem;
    margin-bottom: 4rem;
}

.images-details-section .images-content {
    margin-top: 1rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;

    /* esconde a scrollbar visualmente, mantendo funcional */
    scrollbar-width: thin;
}

.images-details-section .images-content img {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
    scroll-snap-align: start;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .images-details-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-top: 2rem;
    }

    .images-details-section .images-content img {
        width: 150px;
        height: 150px;
    }
}
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.25s ease;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

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

.images-details-section .images-content img.expandable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.images-details-section .images-content img.expandable:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
}