/**
 * Forgewell YouTube Videos - Frontend Styles
 * Responsive grid layout for YouTube videos
 */

/* Main container - NO padding or margin */
.youtube-videos-container {
    margin: 0;
    max-width: 100%;
    padding: 0;
    /* Background color controlled via inline styles */
}

/* No videos message */
.youtube-no-videos {
    text-align: center;
    font-size: 1.125rem;
    color: #666;
    padding: 2rem;
}

/* Videos grid */
.youtube-videos-grid {
    display: grid;
    /* Grid columns controlled via inline styles */
    /* Gap controlled via inline styles */
}

/* Individual video item */
.video-item {
    display: flex;
    flex-direction: column;
}

/* Video embed wrapper - maintains 16:9 aspect ratio */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-embed iframe,
.video-embed img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-embed img {
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.video-embed a:hover img {
    opacity: 0.8;
}

/* Video title */
.video-title {
    margin: 0.75rem 0 0 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    /* Color controlled via inline styles */
}

/* WordPress oEmbed iframe wrapper */
.video-embed .wp-embedded-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-title {
        font-size: 0.9375rem;
    }

    .video-embed {
        border-radius: 4px;
    }
}

/*
 * Additional customization options
 * You can add custom CSS here to further style the videos display
 * Grid layout, colors, and spacing are controlled via the Style Settings page
 */
