.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    margin-bottom: 10px;
}

p {
    margin-bottom: 40px;
    color: #606770;
}

/* --- GRADE DE ÁLBUNS --- */
.grade-albuns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.album {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

.album:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.album img {
    width: 100%;
    display: block;
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.album-titulo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* --- MODAL --- */
.modal-album {
    display: none;
    /* Oculto por padrão */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    padding-top: 60px;
    
}

/* --- VISUALIZAÇÃO DE MINIATURAS DENTRO DO MODAL --- */
.modal-thumbnails-view {
    text-align: center;
    padding: 20px;
    
}

.modal-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-width: 90%;
    margin: 0 auto;
    
}

.modal-thumbnails-grid img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
     align-items: center;
}

.modal-thumbnails-grid img:hover {
    transform: scale(1.1);
}

.modal-album-titulo {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* --- VISUALIZAÇÃO DO SLIDESHOW DENTRO DO MODAL --- */
.modal-slideshow-view {
    display:flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;

    
}

.slideshow-imagem {
    max-width: 85%;
    max-height: 80%;
    object-fit: contain;
    display:block;
    margin: 0 auto;
   
}

.slideshow-legenda {
    position: absolute;
    bottom: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

/* --- BOTÕES DE CONTROLE --- */
.btn-fechar,
.btn-voltar {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-voltar {
    right: auto;
    left: 35px;
    font-size: 30px;
    top: 20px;
}

.btn-fechar:hover,
.btn-voltar:hover {
    color: #bbb;
}

.btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    /* Impede seleção de texto */
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.btn-prev {
    left: 15px;
}

.btn-next {
    right: 15px;
}