/* Estilos para a galeria de álbuns no shortcode */
.risc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.risc-album {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 14px 22px -9px #bbcbd8;
    transition: transform 0.3s ease;
    overflow: hidden;
    cursor: pointer; /* Torna o bloco inteiro clicável */
}

.risc-album:hover {
    transform: translateY(-10px); /* Elevação ao passar o mouse */
}

.risc-album-img {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    background-color: #000; /* Cor de fundo padrão caso não haja imagem */
}

.risc-album-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.risc-album:hover .risc-album-img img {
    transform: scale(1.1); /* Zoom na imagem ao passar o mouse */
}

.risc-album-content {
    padding: 20px;
    text-align: center;
}

.risc-album-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Estilos para o lightbox */
#risc-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#risc-lightbox-content {
    max-width: 80%;
    max-height: 80%;
    text-align: center;
}

#risc-lightbox img {
    max-width: 100%;
    max-height: 100%;
}

#risc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 10px;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-radius: 50%;
}

/* Exibição responsiva no mobile */
@media only screen and (max-width: 600px) {
    .risc-gallery-grid {
        grid-template-columns: 1fr; /* Exibir 1 galeria por linha no mobile */
    }

    .risc-album {
        margin-bottom: 20px;
    }
}

/* Grid para exibir as imagens do álbum */
.album-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 colunas no desktop */
    gap: 15px; /* Espaço entre as imagens */
    margin: 20px auto;
    max-width: 1640px; /* Limita a largura máxima */
}

.album-gallery-item img {
    width: 100%; /* Garante que a imagem ocupe toda a largura da célula */
    height: auto; /* Mantém a proporção original da imagem */
    border-radius: 10px; /* Bordas arredondadas */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Sombras leves para dar profundidade */
    transition: transform 0.3s ease; /* Efeito suave de transformação */
}

.album-gallery-item img:hover {
    transform: scale(1.05); /* Zoom suave ao passar o mouse */
}

/* Estilo para os botões na galeria de álbuns */
.album-gallery-buttons {
    display: flex;
    justify-content: center; /* Centraliza os botões horizontalmente */
    gap: 10px; /* Espaço de 10px entre os botões */
    margin-top: 30px;
}

.album-gallery-buttons .button {
    text-decoration: none;
    cursor: pointer;
}

/* Estilo responsivo para telas menores que 600px (mobile) */
@media only screen and (max-width: 600px) {
    .album-gallery-grid {
        grid-template-columns: 1fr; /* 1 coluna por linha no mobile */
    }
}

/* Estilo básico do Lightbox */
.custom-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Fundo escuro com transparência */
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Colocar os elementos (imagem e botão) em coluna */
}

.custom-lightbox img {
    max-width: 70%; /* Reduz o tamanho da imagem */
    max-height: 70%; /* Mantém a imagem dentro de uma proporção */
    margin-bottom: 20px; /* Espaço entre a imagem e o botão */
}

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

/* Estilo simples para o botão de download */
.download-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #CD1818; /* Cor padrão do botão */
    color: white;
    border-radius: 4px; /* Bordas arredondadas */
    margin-bottom: 20px;
}

.download-button:hover {
    background-color: #931f1f;
    color: white;
}