/* Gallery Styles - Flat Design */
.yvg-gallery {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

/* Column layouts */
.yvg-gallery.yvg-columns-1 { grid-template-columns: 1fr; }
.yvg-gallery.yvg-columns-2 { 
    grid-template-columns: repeat(2, 1fr);
}
.yvg-gallery.yvg-columns-3 { 
    grid-template-columns: repeat(3, 1fr);
}
.yvg-gallery.yvg-columns-4 { grid-template-columns: repeat(4, 1fr); }
.yvg-gallery.yvg-columns-5 { grid-template-columns: repeat(5, 1fr); }
.yvg-gallery.yvg-columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Full width for last item if odd in 2-column layout */
.yvg-gallery.yvg-columns-2 .yvg-video-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Responsive - mobile first */
@media (max-width: 1024px) {
    .yvg-gallery.yvg-columns-4,
    .yvg-gallery.yvg-columns-5,
    .yvg-gallery.yvg-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .yvg-gallery.yvg-columns-3,
    .yvg-gallery.yvg-columns-4,
    .yvg-gallery.yvg-columns-5,
    .yvg-gallery.yvg-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .yvg-gallery {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
}

/* Video item - minimal styling */
.yvg-video-item {
    position: relative;
}

/* Video link */
.yvg-video-link {
    display: block;
    text-decoration: none;
    position: relative;
}

/* Thumbnail - flat design, no shadows */
.yvg-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.yvg-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #f0f0f0;
}

/* Play button - simple, no filters */
.yvg-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    pointer-events: none;
    opacity: 0.95;
    z-index: 2;
}

.yvg-play-button svg {
    width: 100%;
    height: 100%;
}

/* Minimal hover - performance optimized, no transform */
.yvg-video-item:hover .yvg-thumbnail img {
    opacity: 0.9;
}

/* Video Title Wrapper - at bottom center */
.yvg-video-title-wrapper {
    background-color: #000000;
    padding: 10px 12px;
    text-align: center;
    border-radius: 0 0 4px 4px;
}

.yvg-video-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    text-decoration: none !important;
}

/* Remove any underline from title link */
.yvg-video-link .yvg-video-title {
    text-decoration: none !important;
}

a .yvg-video-title {
    text-decoration: none !important;
}

/* Hover effect on title */
.yvg-video-item:hover .yvg-video-title {
    opacity: 0.9;
}

/* Hide titles if disabled */
.yvg-gallery[data-show-titles="0"] .yvg-video-title-wrapper {
    display: none;
}

.yvg-gallery[data-show-titles="0"] .yvg-thumbnail {
    border-radius: 4px;
}

/* No videos message */
.yvg-no-videos {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

