/* css/video-gallery.css */

.vxg-youtube-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    background-color: #000;
}
.vxg-youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.vxg-gallery-container *, .vxg-gallery-container *::before, .vxg-gallery-container *::after {
    box-sizing: border-box; margin: 0; padding: 0; border: 0; background: transparent; font-size: 100%; vertical-align: baseline;
}
.vxg-gallery-container { padding: 15px 0; max-width: 1200px; margin-left: auto; margin-right: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.vxg-gallery-container a { text-decoration: none; color: inherit; }
.vxg-top-section, .vxg-bottom-sections { display: flex; gap: 20px; margin-bottom: 25px; }
.vxg-main-video-player-wrapper, .vxg-carousel-column { flex: 2; min-width: 0; }
.vxg-we-recommend-sidebar, .vxg-editor-pick-sidebar { flex: 1; min-width: 0; }
.vxg-main-video-details { padding-top: 15px; }
.vxg-main-video-title { font-size: 24px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; color: #111; }
.vxg-main-video-meta { font-size: 14px; color: #555; margin-bottom: 15px; }
.vxg-share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.vxg-share-btn { padding: 8px 15px; color: #fff !important; font-size: 14px; }
.vxg-share-btn:hover { opacity: 0.9; }
.vxg-facebook { background-color: #3b5998; }
.vxg-twitter { background-color: #1da1f2; }
.vxg-whatsapp { background-color: #25d366; }
.vxg-sidebar-title { font-size: 18px; font-weight: 700; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; color: #111; }
.vxg-sidebar-video-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; cursor: pointer; }
.vxg-sidebar-video-item:hover .vxg-item-title { color: #d62828; }
.vxg-sidebar-video-item img { width: 100px; height: 56px; object-fit: cover; flex-shrink: 0; }
.vxg-item-title { font-size: 14px; font-weight: 500; line-height: 1.4; color: #333; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vxg-carousel-section { margin-bottom: 30px; position: relative; }
.vxg-carousel-title { font-size: 22px; font-weight: 700; margin-bottom: 15px; border-left: 4px solid #d62828; padding-left: 10px; color: #111; }
.vxg-video-carousel { display: flex; gap: 15px; overflow-x: scroll; scroll-behavior: smooth; padding: 5px; margin: 0 -5px; scrollbar-width: none; -ms-overflow-style: none; }
.vxg-video-carousel::-webkit-scrollbar { display: none; }
.vxg-video-card { flex: 0 0 calc(25% - 12px); cursor: pointer; display: flex; flex-direction: column; }
.vxg-video-card:hover .vxg-video-title { color: #d62828; }
.vxg-video-thumbnail { position: relative; width: 100%; padding-bottom: 56.25%; margin-bottom: 8px; }
.vxg-video-thumbnail img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.vxg-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 45px; height: 45px; background-color: rgba(214, 40, 40, 0.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; opacity: 0; transition: opacity 0.2s ease; }
.vxg-video-card:hover .vxg-play-icon { opacity: 1; }
.vxg-play-icon::before { content: '▶'; margin-left: 4px; font-size: 20px; }
.vxg-video-title { font-size: 15px; font-weight: 500; line-height: 1.4; height: 63px; color: #333; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vxg-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: 1px solid #ddd; border-radius: 50%; width: 40px; height: 40px; font-size: 20px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.vxg-prev { left: -20px; } .vxg-next { right: -20px; }
.vxg-carousel-btn:disabled { display: none; }
@media (max-width: 1024px) {
    .vxg-top-section, .vxg-bottom-sections { flex-direction: column; }
    .vxg-video-card { flex: 0 0 calc(33.33% - 10px); }
    .vxg-carousel-btn { top: 40%; }
}
@media (max-width: 767px) {
    .vxg-gallery-container { padding: 10px; }
    .vxg-main-video-title, .vxg-carousel-title { font-size: 20px; }
    .vxg-video-card { flex: 0 0 calc(50% - 8px); }
    .vxg-prev { left: -5px; } .vxg-next { right: -5px; }
    .vxg-video-carousel { padding: 0 5px; margin: 0; }
}