html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.scroll-top.on {
    display: none !important;
}

/***************** SLIDER *********************/
#mobileSlider {
    display: none;
}
.slider-section {
    width: 100%;
    margin: auto;
    padding: 0px !important;
}
.slider-wrapper {
    position: relative;
    overflow-x: clip;
}
.slider-previous {
    left: 0;
    filter: invert(1);
    background-image: url(https://tln.ca/wp-content/fontawesome/svgs/solid/chevron-left.svg);
}
.slider-next {
    right: 0;
    filter: invert(1);
    background-image: url(https://tln.ca/wp-content/fontawesome/svgs/solid/chevron-right.svg);
}
.slider-previous, .slider-next {
    width: 45px;
    height: 45px;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
    cursor: pointer;
    z-index: 3;
}
        overflow-x: auto;
.slider-previous:hover, .slider-next:hover {
    width: 48px;
    height: 48px;
    background-size: 45%;
}
.slider-viewport {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    overflow: hidden;
}
.slider-bar {
    display: none;
    position: absolute;
    width: 100%;
    height: 10px;
    bottom: 0px;
    background: #00000020;
}

a.slide-link {
    width: 100%;
}
.main-slide {
    width: 100%;
    padding-top: 28.9%;
    background-size: cover !important;
    background-position-y: center !important;
    background-position-x: center !important;
    box-shadow: inset 0px 0px 20px black;
}
.progress-timer {
  height: 100%;
  width: 0;
  background: #00000080;
  /*animation: 7s linear infinite progressBar;*/
}
@keyframes progressBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@media (max-width: 1099px) {
  #mobileSlider {
    display: block;
  }
  #desktopSlider {
    display: none;
  }
  .main-slide {
    padding-top: 65.9%;
  }
}


/*************** Ad Section *****************/
.ad-section {
    width: 100%;
    margin: auto;
    background: #E6E7E8;
}
.desktop-ad div, .mobile-ad div {
    margin: 20px auto;
}
.desktop-ad {
  display: flex;
  flex-direction: column;
  margin: auto;
  width: 728px;
  padding: 20px 0px;
  gap: 20px;
}
.mobile-ad {
    display: none;
    margin: auto;
    width: 300px;
    padding: 20px 0px;
    gap: 20px;
}
div#featured-ad-section {
    margin: auto -39px auto;
    width: 100vw;
}
@media screen and (max-width: 768px) {
    .desktop-ad {
        display: none;
    }
    .mobile-ad {
        display: flex;
  	flex-direction: column;
    }
}


/********* Whats on now **********/

#featured-section {
    padding: 60px 40px;
    margin: auto;
    background: #0279B5;
}
.programming-title {
    margin: auto auto 20px !important;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
}
#schedule-container, #programming-container {
    width: 100%;
}
#category-Featured {
    display: none !important;
}

.thumbnail {
    display: none;
}

.info {
    border: none !important;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    text-decoration: none;    
}

.show-item p.show-time {
    width: 100%;
    background-color: #000;
    text-align: center;
    color: #fff !important;
}


/****Schedule Section****/
#schedule-container {
    position: relative;
    color: #fbfbff;
    text-align: center;
    max-width: 1240px;
    margin: auto;
}
#schedule-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.show-item {
    display: flex;
    flex-direction: column;
    width: 25%;
    cursor: pointer;
    background: #e6e7e8;
    height: 120px;
}
.show-item:hover {
  position: relative;
  top: -2px;
  left: -2px;
  box-shadow: 5px 5px 10px 5px #0000003b;
}
.thumbnail {
    padding-top: 67%;
    background-size: cover;
    background-position-x: center;
}
.info {
    height: 100%;
}
.show-item .show-title {
    font-size: 20px;
    text-transform: capitalize;
    color: #30393e;
    font-weight: 600;
    margin-bottom: 0 !important;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}
.show-item p.show-time {
    padding: 0px;
    font-size: 20px;
    border: none;
    margin-bottom: 0 !important;
    height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/***FEATURED SECTION FONTS***/
.programming-title {
    color: #fbfbff;
}
h3.show-date {
    display: none;
}
@media screen and (max-width: 1100px) {
    /*******************/
    #schedule-container {
        padding: 0px;
        background: none;
    }
    #schedule-wrapper {
        width: 100%;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .show-item {
        flex-direction: row;
        position: relative;
        width: 100%;
        left: 0px;
        top: 0px;
        padding: 0px;
        box-shadow: 1px 2px 10px 0px #262626;
    }
    .thumbnail {
        width: 30%;
        padding-top: 19%;
        margin: auto;
        box-shadow: none;
    }
    .info {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
}
    #schedule-wrapper {
        width: 100%;
    }
    #schedule-wrapper .show-title {
        font-size: 1.4em !important;
        overflow: hidden;
	width: 70%;
}
    #schedule-wrapper .show-time {
        margin: 0px !important;
        font-size: 1.4em !important;
	width: 30%;
        height: 100%;
    }
}
@media screen and (max-width: 768px) {
    /****Featured Section****/
    .thumbnail {
        width: 40%;
        padding-top: 25%;
    }
    #schedule-wrapper .show-title {
      font-size: 1.1em !important;
      -webkit-line-clamp: 2;
    }
    #schedule-wrapper .show-time {
        font-size: 1.1em !important;
    }
    /*Programing Grid*/
    #programming-container {
        margin-top: 30px;
    }
    .prev-btn, .next-btn {
	    display: block !important;
    }
    #programming-wrapper .carousel-viewport {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .poster-collection {
        display: grid !important;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, auto);
        grid-auto-columns: calc(50% - 10px);
    }
}
@media only screen and (max-width: 580px) {
    .programming-title {
        font-size: 30px;
        margin: auto auto 20px !important;
    }
    /**************************/
    #featured-section {
        padding: 30px;
    }
    .info {
        display: flex;
        align-items: center;
    }
    #schedule-wrapper .show-title,  #schedule-wrapper .show-time {
        font-size: 1em !important;
    }
}
@media only screen and (max-width: 480px) {
  .programming-title {
    font-size: 26px;
  }
}


/***********************************/
.homepage-community{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 60px 40px;  
    background: #fff;
}
.homepage-community-title {
    font-size: 30px;
    color: #000;
    font-weight: 600;
    margin-bottom: 20px;
}
.videoContainer {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #004d64;
    height: 100%;
    cursor: pointer;
    /*max-height: 260px;*/
}

.view-port {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1240px;
    position: relative;
    gap: 10px;
    transition: all 0.25s ease-in;
    width: 100%;
}
.videoLink {
    text-decoration: none;
    transition: all 300ms ease;
}
.play-btn {
    position: absolute;
    top: 31%;
    left: 0;
    right: 0;
    margin: auto;
    padding-top: 17%;
    background-image: url(https://www.mediasetitalia.ca/wp-content/uploads/font-awesome/play.svg);
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0px 0px 5px white) invert(100);
    z-index: 10;
    opacity: 0;
    transition: all 300ms ease;
}
.videoLink:hover{
    filter: brightness(70%);
}

.videoLink:hover .play-btn {
    opacity: 1;
}
.videoThumbnail {
    display: block;
    width: 100%;
    height: auto;
}
.videoTitle {
    padding: 10px;
    min-height: 40px;
    background-color: #004d64;
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
    text-align: center;
    color: #fff;
}
#videoGrid {
    display: flex;
    gap: 20px;
    transition: all 0.25s ease-in;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow: auto;
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    scroll-behavior: smooth;
}

#videoGrid::-webkit-scrollbar {
  display: none;
}

.prev-btn,
.next-btn {
  position: absolute;
  font-size: 34px;
  padding: 0;
  background-color: transparent;
  text-decoration: none !important;
  border: none;
  height: 26px;
  width: 30px;
  background-repeat: no-repeat;
}

#prev-btn {
    left: -26px;
    background-image: url(https://tln.ca/wp-content/fontawesome/svgs/solid/chevron-left.svg);
}
#next-btn {
    right: -38px;
    background-image: url(https://tln.ca/wp-content/fontawesome/svgs/solid/chevron-right.svg);
}

.videoLink {
    border-radius: 8px;
    min-width: calc((100% / 4) - 15px);
    scroll-snap-align: start;
}	

@media (max-width: 1100px) {
    .videoLink {
        min-width: calc((100% / 3) - 15px);
    }
}

@media (max-width: 768px) {
    .videoLink {
        min-width: calc((100% / 2) - 10px);
    }
}

@media (max-width: 580px) {
    .homepage-community {
    	padding: 30px;
    }    
    .videoLink {
        min-width: 100%;
    }
    #prev-btn {
        left: -25px;
    }
    #next-btn {
        right: -35px;
    }
}

/******* Lightbox ********/
.homepage-community .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.homepage-community .lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
}

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


/******* Where to find ********/

.home-findus {
    background: #415AA6;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-findus-header {
    font-size: 30px;
    font-weight: 600;
    color: #fff;
}

.home-findus-img-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    max-width: 1240px;
}

.home-findus-logo {
    max-width: calc(100% / 4 - 10px);
    background-color: #e6e7e8;
}

.home-findus-logo > img {
    width: 100%;
}

.home-findus-btn {
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 300ms ease;
    background-color: #004D64;
    color: #fff;
    font-weight: 600;
    font-size: 21px;
    text-transform: capitalize;
    border: 2px solid #004D64;
    text-decoration: none !important;
    margin-top: 30px;
}

.home-findus-btn:hover {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

@media (max-width: 768px) {
    .home-findus {
        padding: 30px;
    }
    .home-findus-logo {
        max-width: calc(100% / 3 - 10px);
    }
}


@media (max-width: 480px) {
    .home-findus-header {
	font-size: 26px;
    }
    .homepage-community-title {
	font-size: 26px;
    }
    .home-findus-btn {
        font-size: 16px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .show-item {
	height: 75px;
	box-shadow: none;
    }
    .info {
	height: 75px;
        flex-direction: row;
        align-items: center;
    }
    #schedule-wrapper .show-time {
	width: 30%;
    	height: 100%;
    }
    .show-item .show-title {
	width: 71%;
    }
}

#videoGrid {
    display: flex;
    transition: transform 0.4s ease-in-out;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}


/* Basic layout for carousel slides */
.carousel-slide {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Automatically adjust columns */
    grid-auto-rows: 1fr;
    gap: 20px;
    flex: 0 0 100%;
    scroll-snap-align: start;
}

/* Video container styling */
.videoLink {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background-color: #004d64;
    cursor: pointer;
}

.videoThumbnail {
    width: 100%;
    height: auto;
}

.videoTitle {
    padding: 10px;
    text-align: center;
    color: #fff;
    background-color: #004d64;
}

@media (max-width: 1115px) {
.carousel-slide {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
}

@media (max-width: 1025px) {
.carousel-slide {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
}

@media (max-width: 595px) {
    .carousel-slide {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 496px) {
    .carousel-slide {
        grid-template-columns: 1fr; 
    }
    .videoLink {
        width: 100%;
    }
}