/* Frontend Styles for Dynamic HTML Embed Builder */

.dheb-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    padding: 10px;
}

/* Responsive Columns for Mobile */
@media (max-width: 768px) {
    .dheb-columns, 
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .dheb-column,
    [style*="min-height"] {
        width: 100% !important;
        min-height: 50px !important;
        margin-bottom: 10px !important;
    }
}

/* Video Wrapper Fixes */
.dheb-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 15px 0;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    pointer-events: auto !important;
}

.dheb-video-wrapper iframe,
.dheb-video-wrapper video,
.dheb-video-wrapper * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto !important; /* CRITICAL: Ensure videos are clickable on frontend */
    z-index: 10 !important;
}

/* Testimonial Responsive */
@media (max-width: 480px) {
    .dheb-testimonial {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px !important;
    }
    
    .dheb-testimonial img {
        margin: 0 auto !important;
    }
}
