/* Style the modal (hidden by default) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

/* Modal content */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
width:auto !important;
}

/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.close:hover {
    color: red;
}

/* Video thumbnail container */
.video-thumbnail {
    position: relative;
    width: 250px;
    display: inline-block;
    cursor: pointer;
    margin: 10px;
}

/* Thumbnail image */
.video-thumbnail img {
    width: 100%;
    border-radius: 8px;
}

/* Play icon */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.play-icon1 {
    position: absolute; /* Ensure positioning works */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .play-icon1 {
        font-size: 35px; /* Reduce icon size */
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .play-icon1 {
        font-size: 30px; /* Further reduce icon size */
        width: 40px;
        height: 40px;
    }
}

/* Play icon hover effect */
.video-thumbnail:hover .play-icon {
    background: rgba(0, 0, 0, 0.8);
}

.play-icon3
{
    position: absolute;
    top: 5%;
    margin: auto;
    left: 10%;
}

.play-icon4
{
    margin-top:0.5em;
    color:white;
    font-size: 2em;
}

@media (max-width: 768px) {
    .play-icon4
    {
        margin-top:0.1em;
        color:white;
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .play-icon4
{
    margin-top:0.1em;
    color:white;
    font-size: 2em;
}
}


.play-icon5
{
    color:white;
    font-size: 1em;
}