/**
 * The Room — Speaker Grid Styles
 * Apply to any event page using the Eventin speaker widget.
 * Add post ID to the plugin's $page_ids array to enqueue.
 *
 * What this does:
 *  - Photo fills full card width (no side gaps)
 *  - Name + company centered under photo
 *  - Equal-height cards per row
 *  - Mobile: uniform card widths, tighter content padding
 */

/* ─── Desktop: enforce correct column widths ─────────────────────────── */
@media (min-width: 769px) {
    .etn-col-lg-3 {
        width: 25% !important;
        padding: 0 12px !important;
        flex: 0 0 25% !important;
    }
    .etn-col-lg-4 {
        width: 33.333% !important;
        padding: 0 12px !important;
        flex: 0 0 33.333% !important;
    }
    .etn-speaker-wrapper .etn-row {
        justify-content: flex-start !important;
        gap: 0 !important;
    }
}

/* ─── Photo fills full card width (overrides Elementor inline 250px) ─── */
.etn-speaker-thumb,
.etn-speaker-thumb .etn-img-link {
    width: 100% !important;
}
.etn-speaker-thumb img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-style: none !important;
}

/* ─── Center photo within card ───────────────────────────────────────── */
.etn-speaker-item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    align-items: center !important;
}

/* ─── Center name + company text ─────────────────────────────────────── */
.etn-speaker-item,
.etn-speaker-title,
.etn-speaker-company {
    text-align: center !important;
}

/* ─── Content area fills remaining card height ───────────────────────── */
.etn-speaker-content {
    width: 100% !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* ─── Company name wraps instead of truncating ───────────────────────── */
.etn-speaker-company {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

/* ─── Equal height rows ──────────────────────────────────────────────── */
.etn-row.etn-speaker-wrapper {
    align-items: stretch !important;
}

/* ─── Mobile: uniform card widths + tighter content padding ─────────── */
@media (max-width: 768px) {
    .etn-speaker-item {
        width: 100% !important;
        min-width: 0 !important;
    }
    .etn-col-lg-3 {
        width: 33.333% !important;
    }
    .etn-speaker-content {
        padding: 8px 8px 12px !important;
    }
    .etn-speaker-wrapper .etn-row {
        justify-content: flex-start !important;
        gap: 0 !important;
    }
}
