/*.video-slider-container {*/
/*    position: relative;*/
/*    width: 100%;*/
/*    max-width: 1200px;*/
/*    margin: 0 auto;*/
/*    overflow: hidden;*/
/*    border-radius: 12px;*/
/*}*/

/*.video-slider {*/
/*    display: flex;*/
/*    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);*/
/*    gap: 20px;*/
/*    padding: 20px;*/
/*}*/

/*.video-slide {*/
/*    flex: 0 0 calc(20% - 16px);*/
/*    min-width: 180px;*/
/*    position: relative;*/
/*    cursor: pointer;*/
/*    border-radius: 16px;*/
/*    overflow: hidden;*/
/*    transition: all 0.3s ease;*/
/*    background: #fff;*/
/*    box-shadow: 0 2px 15px rgba(0,0,0,0.1);*/
/*}*/

/*.video-slide:hover {*/
/*    transform: translateY(-8px);*/
/*    box-shadow: 0 8px 25px rgba(0,0,0,0.15);*/
/*}*/

/*.video-thumbnail {*/
/*    position: relative;*/
/*    width: 100%;*/
/*    aspect-ratio: 9 / 16;*/
/*    background: #000;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    overflow: hidden;*/
/*    border-radius: 12px 12px 0 0;*/
/*}*/

/*.video-thumbnail img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*    transition: transform 0.3s ease;*/
/*}*/

/*.video-slide:hover .video-thumbnail img {*/
/*    transform: scale(1.05);*/
/*}*/

/*.play-button {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    transform: translate(-50%, -50%);*/
/*    width: 60px;*/
/*    height: 60px;*/
/*    background: rgba(255, 255, 255, 0.95);*/
/*    border-radius: 50%;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    transition: all 0.3s ease;*/
/*    backdrop-filter: blur(10px);*/
/*    box-shadow: 0 4px 15px rgba(0,0,0,0.2);*/
/*}*/

/*.play-button::after {*/
/*    content: '';*/
/*    width: 0;*/
/*    height: 0;*/
/*    border-left: 18px solid #333;*/
/*    border-top: 11px solid transparent;*/
/*    border-bottom: 11px solid transparent;*/
/*    margin-left: 3px;*/
/*}*/

/*.video-slide:hover .play-button {*/
/*    background: rgba(255, 255, 255, 1);*/
/*    transform: translate(-50%, -50%) scale(1.1);*/
/*}*/

/* Navigation Buttons */
/*.slider-nav {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    width: 50px;*/
/*    height: 50px;*/
/*    background: rgba(255, 255, 255, 0.9);*/
/*    border: none;*/
/*    border-radius: 50%;*/
/*    cursor: pointer;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    transition: all 0.3s ease;*/
/*    z-index: 10;*/
/*    backdrop-filter: blur(10px);*/
/*}*/

/*.slider-nav:hover {*/
/*    background: rgba(255, 255, 255, 1);*/
/*    transform: translateY(-50%) scale(1.1);*/
/*}*/

/*.slider-nav.prev {*/
/*    left: 0px;*/
/*}*/

/*.slider-nav.next {*/
/*    right: 0px;*/
/*}*/

/*.slider-nav::after {*/
/*    content: '';*/
/*    width: 0;*/
/*    height: 0;*/
/*    border: 8px solid transparent;*/
/*}*/

/*.slider-nav.prev::after {*/
/*    border-right-color: #333;*/
/*    margin-right: 10px;*/
/*}*/

/*.slider-nav.next::after {*/
/*    border-left-color: #333;*/
/*    margin-left: 10px;*/
/*}*/

/* Popup Modal Styles */
/*.video-popup {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: rgba(0, 0, 0, 0.9);*/
/*    display: none;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    z-index: 1000;*/
/*    backdrop-filter: blur(5px);*/
/*}*/

/*.video-popup.active {*/
/*    display: flex;*/
/*}*/

/*.popup-content {*/
/*    position: relative;*/
/*    aspect-ratio: 9 / 16;*/
/*    background: #000;*/
/*    border-radius: 12px;*/
/*    overflow: hidden;*/
/*    animation: popupSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);*/
/*}*/

/*@keyframes popupSlideIn {*/
/*    from {*/
/*        opacity: 0;*/
/*        transform: scale(0.8) translateY(20px);*/
/*    }*/
/*    to {*/
/*        opacity: 1;*/
/*        transform: scale(1) translateY(0);*/
/*    }*/
/*}*/

/*.popup-iframe {*/
/*    width: 100%;*/
/*    aspect-ratio: 9 / 16;*/
/*    border: none;*/
/*}*/

/*.popup-close {*/
/*    position: absolute;*/
/*    top: -50px;*/
/*    right: 0;*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    background: rgba(255, 255, 255, 0.9);*/
/*    border: none;*/
/*    border-radius: 50%;*/
/*    cursor: pointer;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    font-size: 20px;*/
/*    color: #333;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.popup-close:hover {*/
/*    background: rgba(255, 255, 255, 1);*/
/*    transform: scale(1.1);*/
/*}*/

/* Responsive Design */
/*@media (max-width: 1024px) {*/
/*    .video-slide {*/
/*        flex: 0 0 calc(25% - 15px);*/
/*        min-width: 160px;*/
/*    }*/
/*}*/

/*@media (max-width: 768px) {*/
/*    .video-slide {*/
/*        flex: 0 0 calc(33.333% - 13px);*/
/*        min-width: 140px;*/
/*    }*/
    
/*    .video-thumbnail {*/
/*        height: 240px;*/
/*    }*/
    
/*    .popup-iframe {*/
/*        height: 70vh;*/
/*    }*/
    
/*    .slider-nav {*/
/*        width: 40px;*/
/*        height: 40px;*/
/*    }*/
/*}*/

/*@media (max-width: 480px) {*/
/*    .video-slide {*/
/*        flex: 0 0 calc(50% - 10px);*/
/*        min-width: 120px;*/
/*    }*/
    
/*    .video-thumbnail {*/
/*        height: 200px;*/
/*    }*/
    
/*    .video-slider {*/
/*        gap: 12px;*/
/*        padding: 15px;*/
/*    }*/

/*    .play-button {*/
/*        width: 50px;*/
/*        height: 50px;*/
/*    }*/

/*    .play-button::after {*/
/*        border-left: 15px solid #333;*/
/*        border-top: 9px solid transparent;*/
/*        border-bottom: 9px solid transparent;*/
/*    }*/
/*}*/

/* Loading State */
/*.loading {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    height: 280px;*/
/*    color: #666;*/
/*}*/



.video-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Creates 5 equal-width columns */
  gap: 15px;
  padding: 15px;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.video-thumbnail img {
    width: 100%;
    aspect-ratio:9/16;
    object-fit: cover;
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .video-play-overlay {
    background: rgba(255,0,0,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

/* Popup Modal Styles */
.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.video-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    position: relative;
    /*width: 90%;*/
    /*max-width: 900px;*/
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 12px;
    /*overflow: hidden;*/
    animation: slideIn 0.3s ease;
}

.popup-video {
    width: 100%;
    height: 100%;
    border: none;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Tags container approach - RECOMMENDED */
.video-tags-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex
;
    gap: 5px;
    z-index: 2;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-direction: column;
    align-items: flex-start;
}

.video-tag {
    background-color: rgb(251, 123, 195);
    color: white;
    padding: 0px 6px;
    font-size: 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap; /* Prevent text wrapping inside tag */
}

.client-tag {
    background-color: rgb(123, 195, 251);
    color: white;
    padding: 0px 6px;
    font-size: 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap; /* Prevent text wrapping inside tag */
}

.video-category-tag {
    background-color: rgb(195, 251, 123);
    color: #333;
    padding: 0px 6px;
    font-size: 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap; /* Prevent text wrapping inside tag */
}

.client-tag::before {
    content: "💼 ";
}

.video-tag::before {
    content: "🎬 ";
}
/* Fallback for current HTML structure without wrapper - HORIZONTAL LAYOUT */
.video-thumbnail > .video-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.video-thumbnail > .client-tag {
    position: absolute;
    top: 10px;
    left: 90px; /* Increased spacing */
    z-index: 2;
}

.video-thumbnail > .video-category-tag {
    position: absolute;
    top: 10px;
    left: 170px; /* Position after client tag */
    z-index: 2;
}

/* Anchor styles for all tags */
.video-tag a {
    text-decoration: none !important;
    color: white;
}

.video-tag a:hover {
    color: white;
}

.client-tag a {
    text-decoration: none !important;
    color: white;
}

.client-tag a:hover {
    color: white;
}

.video-category-tag a {
    text-decoration: none !important;
    color: #333;
}

.video-category-tag a:hover {
    color: #333;
}

/* Alternative approach using flexbox container */
.video-thumbnail .tags-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.video-thumbnail .tags-container .video-tag,
.video-thumbnail .tags-container .client-tag {
    position: static;
    margin: 0;
}

/* Navigation Controls */
.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.popup-nav:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.1);
}

.popup-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-prev { left: -70px; }
.nav-next { right: -70px; }

.popup-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.popup-close:hover {
    background: rgba(255,0,0,0.7);
    transform: scale(1.1);
}

.video-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: scale(0.8) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.popup-iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .popup-content { width: 95%; margin: 0 10px; }
    .nav-prev { left: -60px; }
    .nav-next { right: -60px; }
}

@media (max-width: 480px) {
    .nav-prev { left: 10px; }
    .nav-next { right: 10px; }
    .popup-close { top: 10px; right: 10px; }
    .video-counter { bottom: 10px; }
}
