.isy-staff-archive {
    display: grid;
    gap: 24px;
}

/* Vue individuelle — card centrée et contrainte */
.isy-staff-cols-1 {
    display: flex !important;
    justify-content: center;
    grid-template-columns: unset;
}

.isy-staff-cols-1 .wp-block-kadence-column {
    width: fit-content !important;
    min-width: unset !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    flex-shrink: 0;
}

.isy-staff-cols-1 .kt-inside-inner-col {
    width: auto !important;
    min-width: unset !important;
    max-width: unset !important;
}

/* Lignes contact (email / tél) avec icône */
.isy-staff-contact-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px 0;
    color: inherit;
}

.isy-staff-contact-line svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.isy-contact-link {
    color: inherit;
    text-decoration: none;
}

.isy-contact-link:hover {
    text-decoration: underline;
}

/* Cacher le titre WP sur la vue individuelle */
.single-isy_staff .entry-title {
    display: none !important;
}

.isy-staff-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.isy-staff-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.isy-staff-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.isy-staff-archive .wp-block-kadence-column {
    width: 100%;
}

/* Format image — contrôle global par shortcode */

/* Format image — conteneur à hauteur fixe, img absolue centrée */
.isy-staff-img--carre .wp-block-kadence-image.kb-image-is-ratio-size,
.isy-staff-img--portrait .wp-block-kadence-image.kb-image-is-ratio-size {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

.isy-staff-img--carre .kb-is-ratio-image,
.isy-staff-img--portrait .kb-is-ratio-image {
    padding-top: 0 !important;
    position: relative !important;
    width: 150px !important;
    overflow: hidden !important;
    flex-shrink: 0;
}

.isy-staff-img--carre .kb-is-ratio-image {
    height: 150px !important;
}

.isy-staff-img--portrait .kb-is-ratio-image {
    height: 225px !important;
}

.isy-staff-img--carre .kb-is-ratio-image .kb-img,
.isy-staff-img--portrait .kb-is-ratio-image .kb-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

@media (max-width: 768px) {
    .isy-staff-archive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .isy-staff-archive {
        grid-template-columns: 1fr;
    }
}
