@charset "UTF-8";
/* CSS Document */

/* =========================
   GALERIA PORTFÓLIO
========================= */

.portfolio-gallery {
    position: relative;
    width: 100%;
    margin: 30px auto;
}


/* Área que esconde as imagens excedentes */

.gallery-viewport {
    width: 100%;
    overflow: hidden;
}


/* Linha de imagens */

.gallery-track {
    display: flex;
    gap: 20px;

    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {

    display: none;
}

.portfolio-section {
	padding: 50px;
}

/* Desktop = 3 imagens */

.gallery-item {
    flex: 0 0 calc((100% - 40px) / 3);

    aspect-ratio: 4 / 3;

    overflow: hidden;

    cursor: pointer;

    scroll-snap-align: start;
}


/* Imagem */

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}


/* Zoom discreto no mouse */

.gallery-item:hover img {
    transform: scale(1.04);
    opacity: 0.9;
}


/* =========================
   SETAS
========================= */

.gallery-arrow {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 44px;
    height: 44px;

    border: 0;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);

    color: #fff;

    font-size: 24px;

    cursor: pointer;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.gallery-arrow:hover {

    background: rgba(0, 0, 0, 0.9);

}


.gallery-prev {
    left: 15px;
}


.gallery-next {
    right: 15px;
}



/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .gallery-item {

        flex: 0 0 calc((100% - 20px) / 2);

    }

}


/* =========================
   CELULAR
========================= */

@media (max-width: 600px) {

    .gallery-track {
        gap: 0;
    }

    .gallery-item {

        flex: 0 0 100%;

    }

    .gallery-arrow {

        width: 38px;
        height: 38px;

        font-size: 20px;

    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }

}



/* =========================
   LIGHTBOX
========================= */

.custom-lightbox {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.92);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 999999;

    padding: 40px 80px;

    box-sizing: border-box;
}


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


/* Imagem ampliada */

.lightbox-image {

    display: block;

    max-width: 100%;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    user-select: none;

}


/* Fechar */

.lightbox-close {

    position: absolute;

    top: 20px;
    right: 30px;

    border: 0;

    background: transparent;

    color: #fff;

    font-size: 44px;

    line-height: 1;

    cursor: pointer;

    z-index: 10;

}


/* Setas do lightbox */

.lightbox-prev,
.lightbox-next {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 50px;
    height: 50px;

    border: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    color: white;

    font-size: 30px;

    cursor: pointer;

}


.lightbox-prev {
    left: 20px;
}


.lightbox-next {
    right: 20px;
}


.lightbox-prev:hover,
.lightbox-next:hover {

    background: rgba(255, 255, 255, 0.3);

}


/* Contador */

.lightbox-counter {

    position: absolute;

    bottom: 20px;

    color: white;

    font-size: 14px;

    font-family: Arial, sans-serif;

}


/* Lightbox mobile */

@media (max-width: 600px) {

    .custom-lightbox {

        padding: 20px;

    }

    .lightbox-prev,
    .lightbox-next {

        width: 40px;
        height: 40px;

        font-size: 22px;

    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {

        top: 15px;
        right: 15px;

        font-size: 38px;

    }

}