/* 5 cards in one row at XL */
@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Mobile view adjustments */
@media (max-width: 576px) {
    .row {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }
    .col {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    .e-card {
        margin-bottom: -0.2rem !important;
    }
}

.e-card {
    margin: auto;
    background: transparent;
    box-shadow: 0px 8px 28px -9px rgba(0, 0, 0, 0.45);
    position: relative;
    width: 240px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
}

.e-card:hover {
    box-shadow: 10px 10px 22px #00807c;
}

.wave {
    position: absolute;
    width: 540px;
    height: 700px;
    opacity: 0.6;
    left: 0;
    top: 0;
    margin-left: -50%;
    margin-top: -70%;
    background: linear-gradient(744deg, #006480, #006480 60%, #DBD3D3);
}

.infotop {
    text-align: center;
    font-size: 20px;
    position: absolute;
    top: 5.6em;
    left: 0;
    right: 0;
    color: rgb(255, 255, 255);
    font-weight: 600;
     top: 1.5em;
}
.e-card.playing {
    position: relative;
    padding-top: 6em; /* to make space for infotop */
    padding-bottom: 2em;
    min-height: 300px;
}
.video-box {
  margin-top: 1em; /* or try 10vh for vertical spacing */
}


.wave:nth-child(2),
.wave:nth-child(3) {
    top: 210px;
}

.playing .wave {
    border-radius: 40%;
    animation: wave 3000ms infinite linear;
}

.wave {
    border-radius: 40%;
    animation: wave 55s infinite linear;
}

.playing .wave:nth-child(2) {
    animation-duration: 4000ms;
}
.wave:nth-child(2) {
    animation-duration: 50s;
}
.playing .wave:nth-child(3) {
    animation-duration: 5000ms;
}
.wave:nth-child(3) {
    animation-duration: 45s;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}