/* THE GRID CONTAINER */
.character-grid {
    display: grid !important;
    /* This forces 5 columns precisely */
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 15px !important; /* Slightly smaller gap to fit 5 comfortably */
    padding: 20px 0;
    width: 100%;
}

/* THE MAIN CARD */
.character-card {
    background: #0f172a; 
    border: 2px solid #1e293b;
    border-radius: 20px;
    padding: 15px; 
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Remove fixed 190px width so it can flex to fit 1/5th of the row */
    width: 100%; 
    max-width: 220px;
    min-height: 300px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    overflow: hidden;
    margin: 0 auto;
}

/* THE CHARACTER SILHOUETTE */
.character-card::before {
    content: "";
    position: absolute;
    top: 15px;
    width: 110px; 
    height: 150px;
    background-image: url("https://img.icons8.com/ios-filled/500/7d32f5/standing-man.png"); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.6;
    filter: drop-shadow(0 0 10px rgba(125, 50, 245, 0.4));
    z-index: 1;
}

/* THE TITLE */
.character-card .wp-block-post-title {
    color: #ffffff !important;
    font-size: 14px !important; /* Smaller font to ensure names fit 5-wide */
    font-weight: 700 !important;
    margin-top: 175px !important;
    margin-bottom: 15px !important;
    z-index: 10 !important;
    text-align: center;
    width: 100% !important;
}

/* =========================================================
   DEFINITIVE PRIVACY FIX: HIDE WORDPRESS BLOCK METADATA
   ========================================================= */
.wp-block-post-author,
.wp-block-post-author__name,
.wp-block-post-date,
.wp-block-post-terms {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}