/* ==========================================================================
   Show Demo — Legacy grid parity styling
   Version 2.1.10 — modal iframe height in critical path; JS binds modal:open on .show-demo-modal
   ========================================================================== */

.show-demo-root.show-demo-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--show-demo-cols, 3), minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    width: 100%;
    box-sizing: border-box;
    gap: 12px;
    background: #141414;
    margin: 0;
    padding: 0;
}

.show-demo-grid .show-demo-card {
    background: #141414;
}

.show-demo-grid .show-demo-thumb-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.show-demo-grid .show-demo-thumb-link:hover .u-video-cover,
.show-demo-grid .show-demo-thumb-link:hover img {
    opacity: 0.85;
}

.show-demo-grid .u-video-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 480 / 290;
    overflow: hidden;
    background: #000;
    border-radius: 30px;
}

.show-demo-grid .u-video-cover,
.show-demo-grid .show-demo-thumb-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    transition: opacity 0.2s ease;
}

.show-demo-grid .show-demo-title {
    margin-top: 10px;
    color: #fff;
    text-align: center;
    font-family: "Goli", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 34px;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 45px;
}

.show-demo-grid .spokepeople-video-wrapper {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    flex: none !important;
    flex-wrap: nowrap !important;
}

.show-demo-grid .spokepeople-video-heading {
    margin-top: 10px !important;
}

.show-demo-grid .spokepeople-video-wrapper p,
.show-demo-grid .show-demo-card p {
    display: none !important;
}

.show-demo-modal {
    max-width: 850px;
    width: 100%;
    background: #141414;
    border: 1px solid #5d5d5d;
    border-radius: 20px;
    padding: 16px;
}

.show-demo-modal iframe {
    display: block !important;
    width: 100% !important;
    min-height: 280px !important;
    height: 500px !important;
    max-height: 560px !important;
    margin-top: 24px;
}

.show-demo-modal a.close-modal {
    top: 24px;
    right: 16px;
}

.show-demo-error {
    padding: 1rem;
    background: #fee;
    color: #900;
    border: 1px solid #fcc;
    border-radius: 4px;
    font-size: 0.9rem;
}

@media screen and (max-width: 1024px) {
    .show-demo-grid .show-demo-title {
        font-size: 26px;
        line-height: 34px;
    }

    .show-demo-modal iframe {
        height: 360px;
    }
}

@media screen and (max-width: 767px) {
    .show-demo-root.show-demo-grid {
        grid-template-columns: 1fr !important;
    }

    .show-demo-grid .show-demo-title {
        font-size: 34px;
        line-height: 45px;
    }

    .show-demo-modal iframe {
        height: 350px;
    }
}
