.home-section-videos-inner-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 999999px;
    transition: max-height 0.8s ease;
}

.home-section-videos-inner-wrapper.collapsed {
    max-height: 700px;
    /* Adjust this to fit exactly 6 videos */
}

.portfolio-view-more-videos-btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    display: block;
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: #BE1E28;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4.5rem;
    width: fit-content;
    transition: background-color 0.3s ease;
}

.view-more-videos-btn {
    display: block;
    margin: 2rem auto 4rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: #BE1E28;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4.5rem;
    width: fit-content;
    transition: background-color 0.3s ease;
}

.view-more-videos-btn:hover,
.portfolio-view-more-videos-btn:hover {
    background-color: #000;
}

.videos-section-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #BE1E28;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 3rem;
}

.home-section-videos-inner {
    column-count: 3;
    column-gap: 1rem;
}

.home-section-videos-card {
    position: relative;
    break-inside: avoid;
    margin-bottom: 1rem;
    overflow: hidden;
    cursor: pointer;
    border-radius: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 100%;
}

.home-section-videos-card-img {
    width: 100%;
    height: auto;
}

.home-section-videos-card:hover {
    transform: scale(1.02);
}

.home-section-videos-card video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    pointer-events: none;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* 50% black overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    pointer-events: none;
    transition: background 0.3s ease;
}

.play-icon {
    width: 40px;
    height: 40px;
    pointer-events: none;
}

/* Optional: fade overlay slightly on hover */
.home-section-videos-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.4);
}


@media (max-width: 756px) {
    .home-section-videos-inner {
        column-count: 1;
    }

    .view-more-videos-btn {
        margin: .5rem auto 3rem;
    }
}

@media (min-width: 756px) {
    .home-section-videos-card:hover .video-overlay {
        opacity: 0;
        pointer-events: none;
    }

    .video-overlay {
        transition: opacity 0.3s ease;
    }
}