{
    box-sizing: border-box;
}

.gallery .photos .active {
    border-color: #555;
}


.custom-arrow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.custom-download {
    background-color: black;
    padding: 10px;
    border-radius: 40px;
    color: white;
    text-align: center;
    margin: 0px 0px 4px 0px;
}

.custom-prev {
    width: 100%;
    background-color: black;
    color: white;
    border: 0;
    padding: 10px;
    font-size: 12px;
    border-radius: 40px;
    text-align: center;
}

.custom-next {
    width: 100%;
    background-color: black;
    color: white;
    border: 0;
    padding: 10px;
    font-size: 12px;
    border-radius: 40px;
    text-align: center;
}

.custom-button {
    align-self: end;
}

/* Estilos gerais */
.gallery {
    display: grid;
    grid-template-columns: 120px 400px 254px;
    gap: 1rem;
    justify-content: center;
    grid-template-rows: 480px;
}

img.active {
    border-color: #555!important;
}

/* Fotos */
.gallery .photos {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.gallery .photos img {
    width: 100%;
    height: auto;
    margin: auto;
    border: 3px solid #f1f1f1;
    object-fit: cover;
    border-radius: 5px;
}

/* Showcase */
.gallery .showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    z-index: 1; /* Adicione esta linha para definir a ordem de empilhamento */
    position: relative; /* Adicione essa linha para permitir o posicionamento relativo */
}

.gallery .showcase {
    width: 100%;
    height: auto;
    margin: auto;
}

.glider-index {
    background-color: rgba(0, 0, 0, 0.37);
    border-radius: 35px;
    color: rgb(255 255 255 / 100%);
    font-size: 14px;
    font-weight: 600;
    right: 10px;
    top: 10px;
    padding: 2px 0;
    position: absolute;
    text-align: center;
    width: 46px;
    z-index: 2;
    backdrop-filter: blur(3px);
}

/* Botões de Navegação */
.custom-prev, .custom-next {
    position: relative;
}

.line-count {
    width: 70px;
    border-top: 4px solid black;
    margin-top: 12px;
}

.glider-dots {
    display: none;
}



/* Estilização da barra de rolagem */
.gallery .photos::-webkit-scrollbar {
    width: 6px;
}

.gallery .photos::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.gallery .photos::-webkit-scrollbar-thumb {
    background-color: #555;
}

/* Estilos para os slides ativos */
.glider-slide.active {
    display: flex;
}

.modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
}

.modal-image {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-modal {
    color: white;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}





@media screen and (max-width: 900px) {
    
    .gallery .photos {
        overflow-x: auto; /* Adiciona rolagem horizontal */
        white-space: nowrap; /* Impede que as miniaturas quebrem para a próxima linha */
        padding: 10px; /* Espaçamento interno, ajuste conforme necessário */
        display: flex; /* Adiciona flex para ajustar as miniaturas */
    }

    .gallery .photos a {
        flex: 0 0 auto; /* Não permite que as miniaturas se expandam */
        width: 125px;
        height: 125px;
        margin-right: 10px; /* Espaçamento entre as miniaturas, ajuste conforme necessário */
        overflow: hidden;
    }

    .gallery .photos a img {
        width: 100%;
        object-fit: cover; /* Corta a imagem para se ajustar ao contêiner sem distorção */
    }

    .gallery .gallery-item {
        padding-right: 3px;
        padding-left: 3px;
        max-height: 480px;
        margin-bottom: 0px!important;
    } 
    
    
    .gallery {
        grid-template-columns: 1fr; /* Alterando para uma coluna na versão mobile */
        margin: 20px;
        grid-template-rows: auto;
    }

    .gallery .photos {
        display: flex;
        overflow-x: auto; /* Permite rolagem horizontal se necessário */
        overflow-y: hidden; /* Escondendo a rolagem vertical da galeria principal */
        gap: 5px;
        padding: 0px 20px;
        width: 100%; /* Removendo a largura máxima */
    }

    .gallery .photos img {
        flex: 0 0 auto; /* Permite que as imagens mantenham seu tamanho original */
        max-width: 100%; /* Garantindo que as imagens ocupem toda a largura */
        height: auto; /* Mantendo a proporção da imagem */
        min-width: 120px; /* Definindo um tamanho mínimo para as imagens */
        margin-right: 5px; /* Adicionando espaço entre as imagens */
    }

    .showcase {
        max-width: none; /* Removendo a largura máxima do showcase */
        margin-left: 0; /* Removendo a margem à esquerda */
    }

    .glider-index {
        order: unset; /* Removendo a ordem para manter a ordem original */
    }

    .custom-button {
        align-self: end;
        padding: 20px;
    }

    .gallery .showcase {
        padding: 0px 20px;
    }
    
    
    
    .fullscreen-next {
    right: 10px;
    }

    .fullscreen-prev {
    left: 10px;
    }
    
    .fullscreen-next,
    .fullscreen-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 30px; /* Defina a largura desejada */
    height: 30px; /* Defina a altura desejada */
    text-align: center;
    line-height: 30px;
    border: 1px solid #ffffff;
    
    
}

}









.glider-slide {
    position: relative;
}

.photo-description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.37);
    padding: 10px;
    margin: 0;
    backdrop-filter: blur(3px);
    box-shadow: 0px -3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px 10px 0px 0px;
}

p.photo-description {
    color: white;
}


/* Estilo para a overlay de tela cheia */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Garante que está acima de outros elementos */
}

/* Estilo para a imagem em tela cheia */
.fullscreen-image {
    max-width: 100%;
    max-height: 90vh;
}

/* Estilo para o botão de fechar tela cheia */
.close-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000; /* Garante que está acima de outros elementos, incluindo a imagem */
}

/* Estilo para a descrição em tela cheia */
.fullscreen-description {
    color: #fff;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}


.active-slide-container {
   /* display: grid;
/*    align-content: space-between;
    /* Adicione outros estilos necessários para o grid */
}

.glider-slide.active {
    display: grid;
    background: #f0f0f1;
}


.gallery-item.glider-slide.left-1 {
        display: grid;
    background: #f0f0f1;
}

.gallery-item.glider-slide.right-1 {
    display: grid;
    background: #f0f0f1;
}





.fullscreen-next::before,
.fullscreen-prev::before {
    content: "\f054";
    font-family: "Font Awesome 5 Free"; /* Certifique-se de ter a fonte FontAwesome carregada */
    font-size: 12px; /* Ajuste o tamanho conforme necessário */
    color: #fff; /* Ajuste a cor conforme necessário */
    display: inline-flex;
    align-items: center; /* Centraliza verticalmente o conteúdo */
    height: 100%; /* Garante que a altura do ícone seja igual à altura do botão */
    font-weight: 900;
}

.fullscreen-prev::before {
    transform: rotate(180deg); /* Inverta a seta para o botão anterior */
}

.fullscreen-next,
.fullscreen-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px; /* Defina a largura desejada */
    height: 40px; /* Defina a altura desejada */
    text-align: center;
    line-height: 30px;
    border: 1px solid #ffffff;
}



.fullscreen-next {
    right: 25px;
}

.fullscreen-prev {
    left: 25px;
}





.gallery .photos {
    overflow: auto;
    scrollbar-width: thin; /* Para navegadores baseados em Firefox */
    scrollbar-color: #000000 #f0f0f0; /* Cor da barra e da alça, ajuste conforme necessário */
    padding-right: 20px; /* Adicione um espaçamento à direita, ajuste conforme necessário */
}

.gallery .photos::-webkit-scrollbar {
    width: 16px; /* Ajuste a largura da barra de rolagem, conforme necessário */
}

.gallery .photos::-webkit-scrollbar-thumb {
    background-color: #f0f0f1; /* Cor da alça, ajuste conforme necessário */
    min-height: 50px; /* Ajuste a altura mínima da alça, conforme necessário */
}

.gallery .photos::-webkit-scrollbar-track {
    background-color: #f0f0f1; /* Cor da trilha da barra de rolagem, ajuste conforme necessário */
}

.gallery .gallery-item {
    padding-right: 3px;
    padding-left: 3px;
    max-height: 480px;
    margin-bottom: 0px!important;
}



/* Estilos para o layout do grid de galerias */
.custom-grid {
    max-width: 1200px; /* Definindo a largura máxima do grid */
    margin: 0 auto; /* Centralizando o grid na página */
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centraliza os itens na horizontal */
}

.custom-grid-item {
    flex-basis: calc(25% - 30px); /* 4 colunas, subtraindo o espaço entre as colunas */
    margin: 15px; /* Espaçamento entre as linhas */
    text-align: center; /* Centraliza os itens na vertical */
    max-width: calc(25% - 30px); /* Garante que as imagens não ultrapassem o tamanho da coluna */
}

.custom-grid-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Proporção de 1:1 para manter o aspect ratio */
    overflow: hidden;
    position: relative;
}

.custom-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta a imagem para preencher o container */
    position: absolute;
    top: 0;
    left: 0;
}


/* Estilos para o layout de 2 colunas em dispositivos móveis */
@media only screen and (max-width: 767px) {
    .custom-grid-item {
        flex-basis: calc(50% - 20px); /* 2 colunas, subtraindo um espaço menor entre as colunas */
        margin: 10px; /* Espaçamento menor entre as linhas */
        max-width: calc(50% - 20px); /* Garante que as imagens não ultrapassem o tamanho da coluna */
    }
}

.download-image {
    color: white;
    align-items: center;
    justify-content: center;
    display: flex;
}