/*hero*/
.gallery #hero {
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(../../assets/images/bg-galeria.png) no-repeat center; */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 585px;
    align-items: center;
}

.gallery #hero > div {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .gallery #hero {
        height: 300px;
        /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(../../assets/images/bg-galeria-mobile.png) no-repeat center; */
        background-size: cover;
    }

    .gallery #hero > div {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .gallery #hero h1 {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
    
    }
}

/*Main gallery begin*/

.main-gallery {
    padding: 3.125rem 2rem;
    color: #413C3A;
    font-size: 0.75rem;
    height: 400px;
    background-color: #E4E1DF;
}

.main-gallery .main-gallery__subtitle {
    padding-bottom: 4rem;
    text-align: center;
}

.main-gallery .controls-gallery a {
    background: transparent;
    border: none;
    color: #A6826E;
    font-size: 18px;
    line-height: 29px
}

.main-gallery .controls-gallery a.active {
    border-bottom: 2px #A6826E solid;
}

@media (min-width: 769px) {
    .main-gallery {
        font-size: 0.875rem;
    }

}

/*Main gallery end*/

.section-gallery {
    border-top-left-radius: 7.125rem;
    border-top-right-radius: 7.125rem;
    padding: 4rem 0 10rem;
}


.section-gallery:nth-child(3n) {
    background: #C4B8A4;
    color: #2F2F2F;
    position: relative;
}

.section-gallery .treatment-desc {
    color: #2F2F2F;
    padding: 1rem 0;
    border-bottom: 1px solid white;
}

.section-gallery.section-gallery:nth-child(3n+2) .treatment-desc {
    border-color: #A6826E;
}

.section-gallery:nth-child(3n) .text {
    font-size: 2rem;
    color: #FFF;
    margin-top: 1rem;
}

.section-gallery:nth-child(3n)::after {
    background-image: url(../../assets/images/logo-gallery.png);
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    z-index: 3;
    width: 200px;
    transform: translateY(30%);
}

.section-gallery .gallery {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.section-gallery .gallery .image-container {
    width: 400px;
    height: 500px;
}

.section-gallery .gallery .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}


/*Marrom*/
.section-gallery:nth-child(3n+1) {
    background: #A6826E;
    color: #2F2F2F;
    position: relative;
}

.section-gallery:nth-child(3n+1) .text {
    font-size: 2rem;
    color: #FFF;
    margin-top: 1rem;
}

.section-gallery:nth-child(3n+1)::after {
    background-image: url(../../assets/images/logo-gallery.png);
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    width: 200px;
    transform: translateY(30%);
}

/*Cinza*/

.section-gallery:nth-child(3n+2) {
    background: #ECECEC;
    color: #2F2F2F;
    position: relative;
}

.section-gallery:nth-child(3n+2) .text {
    font-size: 2rem;
    color: #C4B8A4;
    margin-top: 1rem;
}

.section-gallery:nth-child(3n+2)::after {
    background-image: url(../../assets/images/logo-gallery-brown.png);
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    z-index: 3;
    width: 200px;
    transform: translateY(30%);
}


.section-gallery:nth-child(3n+1), .section-gallery:nth-child(3n+2) {
    margin-top: -8rem;
}


.section-gallery{
    margin-top: -100px;
}

@media (max-width: 768px) {
    .section-gallery {
        padding: 4rem 0 8rem !important;
    }

    .section-gallery .gallery .image-container {
        width: 300px;
        height: 377px;
    }

    .section-gallery .gallery {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        justify-content: center;
    }

    .section-gallery {
        border-top-left-radius: 2.125rem;
        border-top-right-radius: 2.125rem;
        padding: 1rem;
    }

    .before, .after {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section-gallery:nth-child(3n)::after, .section-gallery:nth-child(3n+1)::after, .section-gallery:nth-child(3n+2)::after {
        background: none;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .section-gallery .gallery .image-container{
        width: 300px;
        height: 400px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .gallery #hero {
        height: 500px;
    }
}