/* JPF Videos Module CSS */

.videos-page {
    padding: 20px 0;
}

.video-section {
    margin-bottom: 30px;
}

.video-section h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.video-item {
    flex: 1;
    min-width: 300px;
}

.video-item h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.embed-responsive iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .video-grid {
        flex-direction: column;
    }
    
    .video-item {
        min-width: 100%;
    }
}
