/*
 * IRF v444 — Equal-height video cards for Fajr and Children festival pages.
 * Keeps all text visible. Cards in each grid row stretch to the same height,
 * buttons stay aligned, and the v407 engagement line remains at the bottom.
 */

body.fajr260-page .fajr260-grid {
    align-items: stretch !important;
}

body.fajr260-page .fajr260-grid > .fajr260-card {
    display: flex !important;
    min-width: 0;
    height: 100% !important;
    flex-direction: column !important;
    overflow: hidden;
}

body.fajr260-page .fajr260-card-media {
    flex: 0 0 auto;
}

body.fajr260-page .fajr260-card-body {
    display: flex !important;
    min-width: 0;
    flex: 1 1 auto !important;
    flex-direction: column !important;
}

body.fajr260-page .fajr260-card-body > .fajr260-card-button,
body.fajr260-page .fajr260-card-body > .fajr260-unavailable {
    margin-top: auto !important;
}

/* The interaction strip is appended by JavaScript as the final card child. */
body.fajr260-page .fajr260-card > .irf-v407-card-line {
    flex: 0 0 auto;
    margin-top: 0 !important;
}
