﻿.container {
    min-height: calc(100vh - 500px);
}
.video a {
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* عدد السطور اللي عايزاهم */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
    text-align: right;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
.video {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    height: 100%;
    width: 100%;
    overflow: hidden;
    padding: 50px 0 0 0;
}

video {
    user-select: none;

}

.video .content {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    background: #f5f5f5;
    user-select: none;
}

/*    .video .content h5 {
        height: 70px;
        width: 100%;
        line-height: 20px;
        color: black;
        padding: 10px;
    }

.h5 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
    text-align: right;
}*/
    .video .content h5 {
        line-height: 20px;
        color: black;
        padding: 10px;
        width: 100%;
    }

.h5 {
    display: -webkit-box;
    -webkit-line-clamp:2; /* ← عدد الأسطر */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
    text-align: right;
    height: 55px; /* ← مساوي لـ line-height */
}

@media screen and (max-width: 1075px) {

    .video {
        grid-template-columns: 1fr 1fr 1fr;
    }

}
@media screen and (max-width: 840px) {

    .video {
        grid-template-columns: 1fr 1fr;
    }

}

@media screen and (max-width: 450px) {

    .video {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0 0 0;
    }
}
