/* Video Gallery Styles */
.jmj-video-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.jmj-video-gallery {
    display: grid;
    gap: 20px;
    padding: 20px;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.jmj-video-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.jmj-video-gallery-item:hover {
    transform: translateY(-5px);
}

.jmj-video-gallery-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
}

.jmj-video-gallery-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jmj-video-gallery-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.jmj-video-gallery-play-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.jmj-video-gallery-play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #fff;
    margin-left: 4px;
}

.jmj-video-gallery-title {
    padding: 15px;
    background-color: #fff;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Filter Styles */
.jmj-video-gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.jmj-video-gallery-filter-button {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.jmj-video-gallery-filter-button:hover,
.jmj-video-gallery-filter-button.active {
    background-color: #0073aa;
    color: #fff;
}

/* Popup Styles */
.jmj-video-gallery-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.jmj-video-gallery-popup.active {
    display: flex;
}

.jmj-video-gallery-popup-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.jmj-video-gallery-popup iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.jmj-video-gallery-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    transition: background-color 0.3s ease;
}

.jmj-video-gallery-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Pagination Styles */
.jmj-video-gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
    padding: 20px;
}

.jmj-video-gallery-pagination-button {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jmj-video-gallery-pagination-button:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.jmj-video-gallery-pagination-button.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Loading and Error States */
.jmj-video-gallery-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.jmj-video-gallery-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
}

.jmj-video-gallery-no-videos {
    text-align: center;
    padding: 20px;
    color: #666;
} 