
/*
 * TASII DEMO SYSTEMS
 * Uniform cards, responsive grid and full-width imagery
 * Loaded after demos.css and demos-fable.css
 */

.demos-showcase .demos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.5vw, 30px);
    align-items: stretch;
}

/* Consistent card dimensions and structure */
.demos-showcase .demos-grid > .demos-card {
    display: flex;
    flex-direction: column;
    grid-column: auto !important;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

/* Full-width landscape image container */
.demos-showcase .demos-card__illustration {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    padding: 0 !important;
    overflow: hidden;
    background: #071c31;
}

/* Images fill the entire preview area */
.demos-showcase .demos-card__image {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center;
    transform: none !important;
}

/* Keep image placeholders usable */
.demos-showcase .demos-card__icon {
    position: relative;
    z-index: 1;
}

/* Prevent long content from widening cards */
.demos-showcase .demos-card__description,
.demos-showcase .demos-card__details,
.demos-showcase .demos-card__features {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Align the actions at the bottom */
.demos-showcase .demos-card__footer {
    margin-top: auto;
}

/* Tablet and mobile */
@media (max-width: 820px) {
    .demos-showcase .demos-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .demos-showcase .demos-grid > .demos-card {
        width: 100%;
    }
}
