/* Legacy Support */
.dac-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    clear: both;
}

/* Modern BEM-based Styles */
.mmpro-members {
    --mmpro-spacing: 1rem;
    --mmpro-border-radius: 4px;
    --mmpro-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --mmpro-shadow-hover: 0 2px 5px rgba(0,0,0,0.2);
    --mmpro-transition: all 0.3s ease;
    --mmpro-text-primary: #333;
    --mmpro-text-secondary: #666;
    --mmpro-link-color: #0056b3;
    --mmpro-link-hover: #003d82;
    --mmpro-bg-card: #fff;
    
    width: 100%;
    max-width: 100%;
}

.mmpro-members__grid {
    display: flex;
    flex-wrap: wrap;
    margin: calc(-1 * var(--mmpro-spacing));
}

.mmpro-members__item {
    padding: var(--mmpro-spacing);
    width: 100%;
}

.mmpro-members__item--half {
    width: 100%;
}

.mmpro-members__item--third {
    width: 100%;
}

.mmpro-members__item--quarter {
    width: 100%;
}

.mmpro-members__item--quarter {
    width: 100%;
}

@media (min-width: 576px) {
    .mmpro-members__item--half {
        width: 50%;
    }
    .mmpro-members__item--quarter {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .mmpro-members__item--third {
        width: 33.333333%;
    }
    .mmpro-members__item--quarter {
        width: 25%;
    }
}

.mmpro-members__card {
    background: var(--mmpro-bg-card);
    border-radius: var(--mmpro-border-radius);
    box-shadow: var(--mmpro-shadow);
    transition: var(--mmpro-transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mmpro-members__card:hover {
    box-shadow: var(--mmpro-shadow-hover);
}

.mmpro-members__photo {
    width: 100%;
    position: relative;
    padding-top: 125%; /* 4:5 aspect ratio */
}

.mmpro-members__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--mmpro-border-radius) var(--mmpro-border-radius) 0 0;
}

.mmpro-members__details {
    padding: var(--mmpro-spacing);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mmpro-members__name {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--mmpro-text-primary);
    text-decoration: none;
    margin-bottom: 0.25rem;
}

a.mmpro-members__name {
    color: var(--mmpro-link-color);
}

a.mmpro-members__name:hover {
    color: var(--mmpro-link-hover);
    text-decoration: underline;
}

.mmpro-members__position {
    color: var(--mmpro-text-primary);
    font-weight: 500;
}

.mmpro-members__club {
    color: var(--mmpro-text-secondary);
    text-decoration: none;
}

a.mmpro-members__club {
    color: var(--mmpro-link-color);
}

a.mmpro-members__club:hover {
    color: var(--mmpro-link-hover);
    text-decoration: underline;
}

.mmpro-members__district,
.mmpro-members__business-position,
.mmpro-members__classification {
    color: var(--mmpro-text-secondary);
    font-size: 0.9em;
}

.mmpro-members__contact {
    margin-top: auto;
    padding-top: 0.5rem;
    color: var(--mmpro-link-color);
    text-decoration: none;
    font-size: 0.9em;
}

.mmpro-members__contact:hover {
    color: var(--mmpro-link-hover);
    text-decoration: underline;
}

/* Debug and Error Styles */
.mmpro-debug {
    background: #f8f9fa;
    border-left: 4px solid #0056b3;
    padding: 1rem;
    margin-bottom: 1rem;
    font-family: monospace;
}

.mmpro-error {
    background: #fff3f3;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #dc3545;
}

.mmpro-error i {
    margin-right: 0.5rem;
}

/* ColorBox Integration */
.iframe3 {
    max-width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 575.98px) {
    .mmpro-members__photo {
        padding-top: 100%; /* Square aspect ratio on mobile */
    }
    
    .mmpro-members__details {
        text-align: center;
    }
} 