/* Center the entire team section */
.team-1 {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Center each row */
.team-1 .row {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Remove flexbox that's breaking row structure */
.content-grid-4 {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Style individual grid items without breaking rows */
.grid-item {
    display: inline-block !important;
    width: 23% !important;
    margin: 0 1% 30px 1% !important;
    vertical-align: top !important;
    text-align: center !important;
}

/* Center the team member content */
.team-content {
    text-align: center !important;
}

/* Ensure proper spacing */
.team-1 .column {
    padding: 0 15px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-item {
        width: 48% !important;
        margin: 0 1% 20px 1% !important;
    }
}

@media (max-width: 480px) {
    .grid-item {
        width: 90% !important;
        margin: 0 5% 20px 5% !important;
    }
}