/* Grid Layout */
.facebook-videos-grid {
    display: grid;
    gap: 2rem;
    padding: 2rem;
    grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
}

@media (max-width: 900px) {
    .facebook-videos-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        padding: 1rem;
    }
}

/* Video Card Styling */
.video-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Keep the container from overflowing */
    padding: 1.5rem;
    transition: box-shadow 0.6s ease; /* Slower shadow transition */
}

.video-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}


/* Video Wrapper Styling */
.video-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000; /* Black background */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: box-shadow 0.3s ease; /* Smooth shadow transition */
    overflow: visible; /* Allow the video to overflow */
    z-index: 1; /* Ensure the container is above other elements */
}

.video-wrapper:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Iframe Styling */
.facebook-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 1; /* Ensure it's always visible */
    transition: transform 0.6s ease; /* Smooth zoom transition */
    z-index: 1; /* Ensure it's above the container */
    border-radius: 12px; /* Match the wrapper's border radius */
}

.video-wrapper:hover .facebook-video {
    transform: scale(1.05); /* Zoom in the video */
    z-index: 10; /* Bring the video above other elements */
}


.video-card:hover .facebook-video {
    transform: scale(1.05); /* Half the zoom amount */
    z-index: 10; /* Bring the video above other elements */
}



.service-time {
    color: #1d1d1d;
    font-size: 1.4rem;
    margin: 0 0 1.2rem 0;
    font-weight: 600;
}

.video-description {
    color: #444;
    font-size: 0.95rem;
    margin: 1rem 0 0 0;
    line-height: 1.5;
}

/* Loading/Error States */
.no-videos,
.error-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    grid-column: 1 / -1;
}

.full-width {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.facebook-video.loaded {
    opacity: 1; /* Show when fully loaded */
}


/* Single Video Premium Styling */
.single-facebook-video-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.single-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease;
}

.single-video-wrapper:hover {
    transform: scale(1.04);
}

.single-facebook-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}



/* Error and Empty States */
.no-videos, .error-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-size: 1.1rem;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .single-facebook-video-container {
        margin: 2rem;
    }
}

@media (max-width: 768px) {
    .single-facebook-video-container {
        margin: 1rem;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .single-video-wrapper {
        border-radius: 8px;
    }
}