/* Video Gallery Layout */
.video-gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Container Styles */
.video-container {
    position: relative;
    /* width: 100%; */
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: scroll;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* Placeholder Styles */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

/* Title Styles */
.video-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Play Button Styles */
.play-button {
    width: 68px;
    height: 48px;
    background-color: #ff0000;
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 2;
}

.play-button:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

.play-button::before {
    content: "";
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
}

/* Overlay Styles */
.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    transition: background-color 0.3s;
}

/* Loading State */
.video-container.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .video-title {
        font-size: 14px;
        bottom: 15px;
        left: 15px;
    }
}
