.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding-top: 60px;
}
.modal.show {
    display: block;
}
.modal-content {
    position: relative;
    margin: auto;
    padding: 0px;
    width: 80%;
    max-width: 80%;
    height: 90%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}
#youtube-player {
    width: 100%;
    height: 100%;
}
.youtube-video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.video-item {
    display: flex;
    width: 48%;
    overflow: hidden;
    cursor: pointer;
}
.video-thumbnail {
    position: relative;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: transparent !important;
}
.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.play-button {
    position: absolute;
    top: 37%;
    left: 47%;
    width: 20%;
    transform: translate(-50%, -50%);
    background: transparent !important;
    border: none;
    cursor: pointer;
    z-index: 1;
}
.play-button:hover {
    background-color: transparent !important;
}
.video-info {
    padding: 15px;
    text-align: center;
}
.video-title {
    font-size: 20px;
    margin: 10px 0;
    color: #000;
    font-family: "Roboto", "Sans-serif" !important;
    font-weight: 500;
    text-align: left;
}
.video-meta {
    display: flex;
    font-size: 14px;
    color: #555;
}
.icons {
    margin: 0px 10px;
}
.views,
.duration {
    display: flex;
    color: #000;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 95%;
        height: auto;
        margin: 0;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Additional mobile fixes */
@media screen and (max-width: 480px) {
    .modal-content {
        width: 90%;
        max-width: 90%;
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}
#youtube-player {
    width: 100%;
    height: 100%;
}
.youtube-video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.video-item {
    display: flex;
    width: 48%;
    overflow: hidden;
    cursor: pointer;
}
.video-thumbnail {
    position: relative;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f5f5f5;
}
.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.play-button {
    position: absolute;
    top: 37%;
    left: 47%;
    width: 20%;
    transform: translate(-50%, -50%);
    background: transparent !important;
    border: none;
    cursor: pointer;
    z-index: 1;
}
.play-button:hover {
    background-color: transparent !important;
}
.video-info {
    padding: 15px;
    text-align: center;
}
.video-title {
    font-size: 20px;
    margin: 10px 0;
    color: #000;
    font-family: "Roboto", "Sans-serif" !important;
    font-weight: 500;
    text-align: left;
}
.video-meta {
    display: flex;
    font-size: 14px;
    color: #555;
}
.icons {
    margin: 0px 10px;
}
.views,
.duration {
    display: flex;
    color: #000;
}

/* Mobile styles */
@media screen and (max-width: 480px) {
    /* Make the modal content take full width */
	.video-item{
		flex-direction: column;
		align-items: center;
		width: 100%;
	}
	.video-info{
		padding: 0px;
	}
	.video-title{
		text-align: center;
	}
	.video-meta{
		text-align: center;
		justify-content: center;
	}
}
