/* Executive Board gallery */

.eb-gallery {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.5rem 0.5rem 2rem;
    background: transparent;
    border-radius: 0;
}

.eb-gallery__header {
    text-align: center;
    margin-bottom: 2rem;
}

.eb-gallery__title {
    color: #1069A8;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

/* Avoid the global h1 line from main.css */
.eb-gallery__title::before {
    content: none !important;
    display: none !important;
}

.eb-gallery__title::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin: 0.45rem auto 0;
    background: #1069A8;
    border-radius: 2px;
    position: relative;
    z-index: 2;
}

.eb-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
    align-items: stretch;
}

.eb-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(16, 105, 168, 0.15);
    border-left: 3px solid rgba(16, 105, 168, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0.35rem 1rem rgba(16, 105, 171, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eb-card:hover {
    transform: translateY(-4px);
    border-color: #1069A8;
    border-left-color: #1069A8;
    box-shadow: 0 0.75rem 1.75rem rgba(16, 105, 171, 0.16);
}

.eb-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, #E7F1F8 0%, #d5e6f3 100%);
}

.eb-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.25s ease;
}

.eb-card:hover .eb-card__photo img {
    transform: scale(1.03);
}

.eb-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1rem 0.65rem 1.15rem;
    text-align: center;
    border: none;
}

.eb-card__body > * {
    border: none;
}

.eb-card__name {
    color: #1069A8;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.45rem;
    line-height: 1.35;
    min-height: 2.7em;
}

.eb-card__role {
    color: #1069A8;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    line-height: 1.3;
    min-height: 1.3em;
    padding: 0.3rem 0.85rem;
    border: none;
    border-radius: 999px;
    background: #E7F1F8;
    align-self: center;
    width: fit-content;
    max-width: 100%;
}

.eb-card__role::after {
    content: none;
    display: none;
}

.eb-card__affiliation {
    color: #5a6a75;
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.45;
    flex: 1 1 auto;
}

@media (max-width: 991.98px) {
    .eb-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    .eb-gallery__title {
        font-size: 1.55rem;
    }
}

@media (max-width: 575.98px) {
    .eb-gallery {
        padding: 0.25rem 0.5rem 1.5rem;
    }

    .eb-gallery__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 360px;
        margin: 0 auto;
    }

    .eb-gallery__header {
        margin-bottom: 1.5rem;
    }

    .eb-gallery__title {
        font-size: 1.4rem;
    }

    .eb-card__name {
        font-size: 1.15rem;
        min-height: 0;
    }

    .eb-card__role {
        font-size: 1rem;
    }

    .eb-card__affiliation {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eb-card,
    .eb-card__photo img {
        transition: none;
    }

    .eb-card:hover {
        transform: none;
    }

    .eb-card:hover .eb-card__photo img {
        transform: none;
    }
}
