





@media screen and (min-width: 768px) {

.series-gallery {
  left: -20px;
  position: relative;
}

}

/* Video Carousel Wrapper */
.video-carousel-wrapper {
    position: relative;
    margin: 32px 0;
    padding: 0;
}

.swiper, swiper-container {
	padding-top: 20px !important;
}

/* Swiper Container */
.video-carousel {
    width: 100%;
    padding: 20px 0 40px;
}

/* Carousel Item */
.video-carousel-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-carousel-item:hover {
    transform: translateY(-5px);
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
border: 1px solid rgba(255, 255, 255, 0.20);
}


@media screen and (max-width: 768px) {

.wp-block-gallery.has-nested-images.series-gallery figure.wp-block-image,
.wp-block-gallery.has-nested-images.series-gallery figure.wp-block-image img {
max-width: 267px !important;
}

}

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

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

/* Play Button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
	display: none !important;
}

.video-carousel-item:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Video Title */
.video-title {
	display: block;
    margin-top: 15px;
    font-size: 22px;
    font-weight: 600;
color: #FCFBF8;
font-family: "artifex-hand-cf", sans-serif;
    text-align: left;
    line-height: 1.3;
}

.inside-video-cat {
font-family: var(--wp--preset--font-family--cartograph-cf) !important;
color: #fcfbf8;
font-size: 14px;
font-style: normal;
font-weight: 600;
letter-spacing: 1.4px;
line-height: 1.3;
text-transform: uppercase;
margin-bottom: 36px;
}


.term-shorts .video-thumbnail {
max-width: 329px;
height: 573px;
margin: 0 auto;
}


@media screen and (max-width: 768px) {
.wp-block-group {
padding-left: 10px !important;
padding-right: 10px !important;
}
}


@media screen and (min-width: 768px) {

.video-carousel-wrapper {
margin-right: -200px;
}

.block-template__wrapper {
overflow: hidden;
}

.swiper-button-prev, .swiper-rtl .swiper-button-next {
left: var(--swiper-navigation-sides-offset, 30px) !important;
right: auto;
}

.swiper-button-next {
left: auto !important;
right: 260px !important;
}

.video-carousel-wrapper.term-shorts .swiper-button-next,
.video-carousel-wrapper.term-current-events .swiper-button-next {
right: var(--swiper-navigation-sides-offset, 30px) !important;
left: auto !important;
}


.video-carousel-wrapper.term-shorts,
.video-carousel-wrapper.term-current-events {
margin-right: 0;
}

.term-current-events .video-title,
.term-shorts .video-title {
	display: block;
	text-align: center !important;
}

.term-current-events .video-carousel-item {
display: grid;
grid-template-columns: 1fr 1fr;
}


.term-shorts .video-carousel-item {
display: grid;
grid-template-columns: 1fr 1fr;
}


.term-shorts .video-carousel-item {
direction: rtl;
}

.term-shorts .video-title {
direction: ltr;
}


.term-shorts .video-title {
color: #FCFBF8;
font-family: "artifex-hand-cf", sans-serif;
font-size: 48px;
font-style: normal;
font-weight: 500;
line-height: 120%; /* 57.6px */
letter-spacing: -0.48px;
align-content: center;
}


.term-current-events .video-title {
background-color: #900;
color: #FCFBF8;
font-family: "artifex-hand-cf", sans-serif;
font-size: 40px;
font-style: normal;
font-weight: 500;
line-height: 130%; /* 52px */
align-content: center;
margin-left: -50px;
padding: 50px 125px 70px 125px;
}

.term-shorts .video-title {
padding: 50px 50px 70px 50px;
}

.term-current-events .video-thumbnail {
	margin: 63px 0;
}

.term-shorts .video-carousel-item {
margin: 0 100px;
}

}


/* Swiper Navigation Buttons */
.shorts-carousel .swiper-button-next,
.shorts-carousel .swiper-button-prev,
.video-carousel .swiper-button-next,
.video-carousel .swiper-button-prev {
    color: #333;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.shorts-carousel .swiper-button-next:after,
.shorts-carousel .swiper-button-prev:after,
.video-carousel .swiper-button-next:after,
.video-carousel .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.shorts-carousel .swiper-button-next:hover,
.shorts-carousel .swiper-button-prev:hover,
.video-carousel .swiper-button-next:hover,
.video-carousel .swiper-button-prev:hover {
    background: #f0f0f0;
}

/* Swiper Pagination */

.swiper-pagination-bullets {
 display: none !important;
}

.video-carousel .swiper-pagination-bullet {
    background: #333;
    opacity: 0.3;
    width: 10px;
    height: 10px;
}

.video-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    background: #333;
}

/* Video Lightbox Modal */
.video-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.video-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

/* Lightbox Content */
.video-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.video-lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 10000;
}

.video-lightbox-close:hover,
.video-lightbox-close:focus {
    color: #ccc;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hideable-outside-video-cat {
	display: none !important;
}

/* Responsive Design */

@media (max-width: 1099px) {

	.inside-video-cat {
		display: none !Important;
	}
	.hideable-outside-video-cat {
		display: block !important;
	}
    .video-title {
        font-size: 18px;
		color: #fff;
    }
	.video-carousel-wrapper.term-shorts { padding-top: 40px; }
}



@media (max-width: 768px) {
    .video-carousel-wrapper {
        padding: 0 20px;
    }

    .video-title {
		margin-top: 24px;
color: #FCFBF8;
font-family: "artifex-hand-cf", sans-serif;
font-size: var(--wp--preset--font-size--large) !important;
font-style: normal;
font-weight: 500;
line-height: 130%;

    }

    .video-lightbox-content {
        width: 95%;
    }

    .video-lightbox-close {
        top: -35px;
        font-size: 35px;
    }

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

@media (max-width: 480px) {
    .video-carousel .swiper-button-next,
    .video-carousel .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .video-carousel .swiper-button-next:after,
    .video-carousel .swiper-button-prev:after {
        font-size: 16px;
    }

    .play-button svg {
        width: 40px;
        height: 40px;
    }
}



.shorts-carousel .swiper-slide-prev .video-title,
.shorts-carousel .swiper-slide-next .video-title {
display: none !important;
}


/* Card effect carousel overrides */

.has-card-effect {
    margin-right: 0 !important;

}

.has-card-effect .inside-video-cat {
  display: none !important;
}

.has-card-effect .video-carousel.swiper-coverflow:before,
.has-card-effect .video-carousel.swiper-coverflow:after {
  content: "";
  position: absolute;
  top: 0;
  width: 300px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.has-card-effect .video-carousel.swiper-coverflow:before {
  left: 0;
  background: linear-gradient(to right, #000 0%, rgba(0,0,0,0) 100%);
}

.has-card-effect .video-carousel.swiper-coverflow:after {
  right: 0;
  background: linear-gradient(to left, #000 0%, rgba(0,0,0,0) 100%);
}


.has-card-effect .video-carousel-item {
    display: block !important;
    direction: ltr !important;
    margin: 0 !important;
}

.has-card-effect .video-thumbnail {
    max-width: none !important;
    height: auto !important;
    padding-bottom: 177.78% !important;
}

.has-card-effect .video-title {
    padding: 10px 0 0 !important;
    text-align: center !important;
    font-size: 26px !important;
}

.has-card-effect .swiper-slide:not(.swiper-slide-active) .video-title {
    display: none !important;
}

.has-card-effect .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.has-card-effect .swiper-slide-active {
    opacity: 1;
}
