/* Reset and Base Styles */

/* Navigation Tabs */
.nav-tabs {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
	margin-bottom: 0px;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-tabs::before,
.nav-tabs::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-tabs::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.nav-tabs::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.nav-container.scroll-left::before {
    opacity: 0;
}

.nav-container.scroll-right::after {
    opacity: 0;
}

.nav-border {
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #6c5ce7;
    transition: left 0.3s ease, width 0.3s ease;
    z-index: 1;
}

.nav-item {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
	margin-bottom: 0px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
    display: block;
}

.nav-link:hover {
    color: #6c5ce7;
}

.nav-item.active .nav-link {
    color: #6c5ce7;
}

/* Main Content */
.main-content {
    padding: 0;
    max-width: 100%;
    margin: 0;
}

.gallery-container {
    width: 100%;
	padding-top: 20px;
}

/* Flickity Gallery - Using CSS Grid for better layout */
.gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.gallery[data-category="showreel"] {
    grid-template-columns: 1fr !important;
}

.gallery-cell {
    width: 100%;
    margin: 0;
    height: auto;
}

/* Video Item */
.video-item {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-item.hidden {
    opacity: 0;
    display: none;
}

.video-wrapper {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.video-teaser {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    overflow: hidden;
    border-radius: 0;
    min-height: 200px;
    display: block;
}

.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    padding: 15px;
    color: #ffffff;
    line-height: 1.4;
    text-align: left;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.teaser-video,.sz-portfolio-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    background-color: #000;
    opacity: 1;
}
.sz-portfolio-img img{
	object-fit: cover;
}
.video-teaser:hover .teaser-video,.video-teaser:hover .sz-portfolio-img {
    transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
}

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

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    width: 60%;
    max-width: 1200px;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-header {
    position: relative;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-shrink: 0;
}

.lightbox-title {
    color: #ffffff;
    font-size: 16px;
    margin: 0;
    font-family: "Gotham", sans-serif;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.lightbox-close {
    position: relative;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #ffffff !important;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
	min-height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    padding: 0;
    line-height: 1;
    z-index: 10002;
}

.lightbox-close:hover {
    opacity: 0.7;
	background-color: transparent !important;
}

.lightbox-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    flex: 1;
}

#vimeo-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
    
.sz-portfolio-tab-gallery .nav-container {
        padding: 0 30px;
    }
    
.sz-portfolio-tab-gallery .main-content {
        padding: 0;
    }
}
/* Ipad & Mobile */
@media (max-width: 1024px) {
.sz-portfolio-tab-gallery .nav-border{
		display: none !important;
}
.sz-portfolio-tab-gallery .nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #6c5ce7;
    transition: left 0.3s ease, width 0.3s ease;
    z-index: 1;
    opacity: 0;
	}
.sz-portfolio-tab-gallery .nav-item.active::after {
    width: 100%;
    opacity: 1;
	}
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
.sz-portfolio-tab-gallery .nav-container {
        padding: 0 20px;
    }
    
.sz-portfolio-tab-gallery .nav-list {
        gap: 20px;
        padding-bottom: 0px;
		justify-content: flex-start !important;
    }
    
.sz-portfolio-tab-gallery .nav-item {
        flex-shrink: 0;
    }
    
.sz-portfolio-tab-gallery .nav-link {
        font-size: 13px;
    }
    
.sz-portfolio-tab-gallery .main-content {
        padding: 0;
    }
    
    .video-title {
        font-size: 14px;
        padding: 12px;
    }
    
    .lightbox-content {
        width: 95%;
    }
    
    .lightbox-close {
        top: -35px;
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
.sz-portfolio-tab-gallery .nav-list {
        gap: 15px;
    }
    
.sz-portfolio-tab-gallery .nav-link {
        font-size: 12px;
    }
    
.sz-portfolio-tab-gallery .main-content {
        padding: 0;
    }
    
    .video-title {
        font-size: 13px;
        padding: 10px;
    }
}


/* Loading State */
.video-teaser.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* Splide Slider Styles */
.series-section:not(:last-child) {
    margin-bottom: 40px;
}

.splide-container {
    width: 100%;
    padding: 40px 0px 0px;
    max-width: 1400px;
    margin: 0 auto;
}

.showreel-container{
	width: 100%;
    padding: 40px 0px 0px;
    margin: 0 auto;
}

.splide__slide {
    height: auto;
}

.splide__slide .video-wrapper {
    width: 100%;
    height: 100%;
}

.splide__slide .video-teaser {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 0;
}

/* .splide__slide .video-title {
    font-size: 14px;
    padding: 12px;
} */
.video-carousel-container.splide-container .splide.video-carousel{
	padding-bottom: 40px !important;
}
.splide-container .splide__arrow{
	font-size: 16px !important;
    min-height: auto !important;
}
.video-carousel-container.splide-container .splide__arrow{
	width: 80px !important;
	height: 20px !important;
	background: transparent !important;
	top: unset !important;
    bottom: 0px !important;
    transform: none !important;
}
.video-carousel-container.splide-container .splide__arrow svg{
	width: auto !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .splide-container,.showreel-container {
        padding: 30px 0px 0px;
    }
	.series-section:not(:last-child) {
    margin-bottom: 30px;
	}
	.sz-portfolio-tab-gallery .nav-tabs:before,.sz-portfolio-tab-gallery .nav-tabs:after{
		display: none !important;
	}
	.video-carousel-container.splide-container .splide__arrow{
		width: 65px !important;
	}
/*     .splide__slide .video-title {
        font-size: 13px;
        padding: 10px;
    } */
}

@media (max-width: 480px) {
    .splide-container,.showreel-container {
        padding: 20px 0px 0px;
    }
	.series-section:not(:last-child) {
    	margin-bottom: 20px;
	}
}
.splide__arrow:disabled {
    display: none;
}

/* Video Grid Styles for grid.html */

.video-grid-container,.video-carousel-container {
    max-width: calc(1920px - var(--wd-scroll-w, 0px));
    margin: 0 auto;
/*     padding: 10px; */
    background-color: #ffffff;
}

.video-grid,.video-carousel {
    margin: 0 auto;
}

/* Clearfix for Masonry */
.video-grid:after {
    content: '';
    display: block;
    clear: both;
}

.video-grid-item {
    position: relative;
    width: calc(33.333% - 7px);
    margin-bottom: 10px;
    float: left;
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
}

/* Large item spans 2 columns */
.video-grid-item.grid-item--width2 {
    width: calc(66.666% - 7px);
}

/* Column width helper for Masonry */
.video-grid-sizer {
    width: calc(33.333% - 7px);
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

.video-grid-item::before {
    content: '';
    display: block;
    padding-top: calc(56.25%); /* 16:9 Aspect Ratio */
}
.video-grid-item.grid-item--width2::before {
    padding-top: calc(56.25% + 7px);
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.3s ease, background-color 0.3s ease;
    pointer-events: none;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #333;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.video-grid-item:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(255, 255, 255, 1);
}

.video-grid-item:hover .video-thumbnail {
    transform: scale(1.05);
}

/* Responsive Design for Video Grid */
@media (min-width: 1025px) {
/*     .video-grid-container .video-grid-item:nth-child(6),
.video-grid-container .video-grid-item:nth-child(7) {
    left: 67.1567% !important;
}
	.video-grid-container .video-grid-item.grid-item--width2:nth-child(5){
	left: 0% !important;
	} */
.category-description {
    max-width: 90%;
    margin-inline: auto;
	}
}
@media (min-width: 768px) and (max-width: 1024px){
	.category-description{
		padding-inline: 10px;
	}
}
@media (max-width: 768px) {
    .video-grid-item,.video-grid-sizer {
        width: calc(50% - 5px);
    }
    
    .video-grid-item.grid-item--width2 {
        width: calc(100% - 0px);
    }
}

@media (max-width: 480px) {
    .video-grid-item {
        width: 100%;
    }
    
    .video-grid-item.grid-item--width2 {
        width: 100%;
    }
}

/* .gallery[data-category="all"] .video-item[data-category="showreel"]{
	display: none !important;
} */