/* Ventures carousel styles (extracted from carousel.css) */
.ventures-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
}

.ventures-carousel .viewport {
    width: 100%;
    overflow: visible;
}

.ventures-carousel .venture-cards {
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.ventures-carousel .venture.card {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--card-bg, #fff);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(12, 20, 30, 0.12);
    border: 1px solid rgba(16, 24, 32, 0.06);
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease;
}


.ventures-carousel .venture.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(12, 20, 30, 0.16);
}

.ventures-carousel .venture.card .card-media {
    height: 200px;
    /* background: #f6f7f9; */
    background: #dddddd;
    /**Darker background to match portfolio carousel */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ventures-carousel .venture.card .card-media a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.ventures-carousel .venture.card .card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Ensure the BuildWithHTML5 venture card fills its grid cell */
.ventures-carousel .venture.card[data-id="buildwithhtml5"] .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ventures-carousel .venture.card .card-body {
    padding: 12px 14px;
    min-height: 200px;
}

.venture-summary {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(16, 24, 32, 0.86);
}

@media (max-width: 600px) {
    .ventures-carousel .card-media {
        height: 140px;
    }
}