/* PJM Video Gallery - Styles Front-End */

.pjm-video-gallery {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.pjm-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pjm-video-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pjm-video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.pjm-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    background: #000;
    overflow: hidden;
}

.pjm-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pjm-video-title {
    margin: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.pjm-video-description {
    margin: 0 1rem 1rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.pjm-no-videos {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: #666;
}

/* Pagination */
.pjm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.pjm-page-btn {
    padding: 0.75rem 1.5rem;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.pjm-page-btn:hover {
    background: #005177;
    color: #fff;
}

.pjm-page-info {
    padding: 0.75rem 1rem;
    color: #666;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .pjm-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .pjm-pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pjm-page-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pjm-video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
