.youtube-channel-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.youtube-video {
    text-align: center;
}

.youtube-video img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

.youtube-video img:hover {
    transform: scale(1.05);
}

.youtube-video h3 {
    font-size: 16px;
    margin: 10px 0;
    color: #333;
}

.youtube-video a {
    text-decoration: none;
}

/* Popup styles */
.youtube-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.youtube-lightbox-content {
    position: relative;
    width: 560px;
    max-width: 90%;
    aspect-ratio: 16 / 9;
}

.youtube-lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-lightbox-close {
    position: absolute;
    top: -30px;
    right: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Pagination styles */
.youtube-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 0 20px;
}

.youtube-page-link {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.youtube-page-link.previous {
    background: #ff4b5c;
    color: #fff;
}

.youtube-page-link.previous:hover {
    background: #e03e4d;
    transform: translateY(-2px);
}

.youtube-page-link.next {
    background: #28a745;
    color: #fff;
}

.youtube-page-link.next:hover {
    background: #218838;
    transform: translateY(-2px);
}

.youtube-page-placeholder {
    width: 120px; /* Matches button size for alignment */
    visibility: hidden;
}