/* ARD On Ground Development Widget */
/* Multiple video embeds (YouTube, Facebook, etc.) with entrance animation */
/* Fonts: Montserrat (caption, URL) — no section background or heading */

.ard-ogd-section {
    isolation: isolate;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.ard-ogd-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* Grid */
.ard-ogd-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 600px) {
    .ard-ogd-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ard-ogd-grid {
        grid-template-columns: repeat(var(--ard-ogd-cols, 3), 1fr);
    }
}

/* Video item – entrance animation (when not disabled) */
.ard-ogd-item {
    position: relative;
}

.ard-ogd-item.ard-ogd-animate {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.ard-ogd-section[data-animation-disabled="1"] .ard-ogd-item.ard-ogd-animate,
.ard-ogd-item.ard-ogd-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Video wrapper – 16:9 aspect, overflow hidden for radius */
.ard-ogd-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.ard-ogd-video-wrap iframe,
.ard-ogd-video-wrap embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: inherit;
}

.ard-ogd-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Caption */
.ard-ogd-caption {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    line-height: 1.5;
    margin: 12px 0 0;
    color: #94a3b8;
    padding: 0 4px;
}

/* Video URL link (when "Show video URL" is on) */
.ard-ogd-video-url {
    font-family: 'Montserrat', sans-serif !important;
    display: inline-block;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
    color: #64748b;
    word-break: break-all;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ard-ogd-video-url:hover {
    color: #94a3b8;
}

/* Empty state */
.ard-ogd-empty {
    font-family: 'Montserrat', sans-serif !important;
    text-align: center;
    color: #64748b;
    font-size: 15px;
    padding: 48px 20px;
    margin: 0;
}
