/* ================================================= */
/* ESTILOS PARA A PÁGINA DE PERSONAGENS              */
/* ================================================= */

.page-intro {
    text-align: center;
    max-width: 750px;
    margin: 20px auto 40px auto;
}

.page-intro h1 {
    color: #ffffff;
    font-size: 2.8em;
    margin-bottom: 15px;
}

.page-intro p {
    color: #c0c0c0;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    border: none;
    height: 1px;
    background-color: #3a3f44;
    margin: 60px auto;
    width: 100px;
}

.character-section h2 {
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

/* --- Grade de OCs (VOLTOU AO TAMANHO ORIGINAL E PEQUENO) --- */
.oc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.oc-item {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    background-color: #2c3034;
}

.oc-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
}

.oc-item:hover img {
    transform: scale(1.1);
}

a.oc-item {
    text-decoration: none;
}


/* ===== ESTILOS PARA A GALERIA "OUTROS" (MASONRY) ===== */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}
.masonry-item {
    margin-bottom: 20px;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-color: #2c3034;
}
.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 40px 15px 15px 15px;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
.item-overlay p { margin: 0; font-size: 0.9em; }
.masonry-item:hover .item-overlay { transform: translateY(0); }


/* ===== RESPONSIVIDADE ESPECÍFICA PARA PERSONAGENS ===== */
@media (max-width: 768px) {
    .oc-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    .masonry-grid {
        column-count: 2;
        column-gap: 15px;
    }
    .masonry-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }
}