/*****************************************Wordpress Fixes**********************************************************/
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    width: 100% !important;
}
.entry-content>*:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: 100vw !important;
}
.vc_column-inner {
    padding: 0px !important;
}
header, .entry-content {
    padding: 0 !important;
}
.entry-content {
    max-width: 100vw;
    margin: auto;
}
.wpb_button, .wpb_content_element, ul.wpb_thumbnails-fluid>li {
    margin-bottom: 20px;
}
@media only screen and (max-width: 768px) {
    .post-inner.thin {
         padding: 0 0 !important;
    }
}
/************************************************************************************************************/
/**************************************---------GENERAL STYLES---------**************************************/
/************************************************************************************************************/
section {
    padding: 40px !important;
    margin: auto !important;
}
h1 {
    font-size: 34px;
    line-height: 1.1;
    margin: 0px auto 5px !important;
}
h2 {
    font-size: 30px;
    line-height: 1.1;
    margin: 0px auto 5px !important;
}
h4 {
    font-size: 18px;
    line-height: 1.1;
    margin: 0 auto 5px !important;
}
p {
    font-size: 16px;
    margin: 0 !important;
}
@media only screen and (max-width: 768px) {
  h1 {
      font-size: 30px;
  }
  h2 {
      font-size: 36px;
  }
}
@media only screen and (max-width: 580px) {
  section {
      padding: 20px 30px !important;
    }
  h1 {
      font-size: 24px;
  }
  h2 {
      font-size: 22px;
  }
  p {
      font-size: 14px;
  }

}
/************************************************************************************************************/
/**************************************---------HEADER SECTION---------**************************************/
/************************************************************************************************************/
#header-section {
    max-width: calc(1240px + 80px);
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px
}
#show-time {
    color: var(--tln-red);
}
.trailer-thumb {
    position: relative;
    width: 50%;
    padding-top: 27.5%;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    overflow: hidden;
}
.trailer-thumb.has-trailer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* or whatever your stylization is */
  pointer-events: none;
}
.episodic-header-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}
#show-info {
    width: 50%;
}
#show-description {
    margin: auto;
}
#video-player-wrapper {
  display: none;
}
.jw-nextup-tooltip.jw-reset, .jw-icon.jw-icon-inline.jw-button-color.jw-reset.jw-related-btn {
    display: none;
}

.jw-icon.jw-icon-display.jw-button-color.jw-reset {
    color: #000000ab !important;
    background-color: #ffffff8f;
    border-radius: 100px;
    padding: 20px;
}
.jw-controls-backdrop, .jw-state-idle .jw-controls {
    background: none !important;
}
video.jw-video.jw-reset {
    width: 100% !important;
}
/************************************************************************************************************/
/************************************---------EPISODIC SECTION---------**************************************/
/************************************************************************************************************/
#episodic-section {
    padding: 40px 20px 40px;
    background: var(--tln-light-grey);
}
#episodics-section-title {
    max-width: 1280px;
    margin: 0px auto 20px !important;
    color: var(--tln-dark-grey);
}
.episodics-container {
    position: relative;
    max-width: 1240px;
    margin: auto;
}
.episodics-viewport {
    margin: auto;
    overflow: hidden;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.episodics-viewport::-webkit-scrollbar {
    display: none;
}
#episodics-left, #episodics-right {
    width: 30px;
    height: 30px;
    top: 0;
    bottom: 0;
    margin: auto;
    position: absolute;
    border-radius: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
    cursor: pointer;
    z-index: 3;
}
#episodics-left {
    left: -35px;
    background-image: url(https://tln.ca/wp-content/fontawesome/svgs/solid/chevron-left.svg);
}
#episodics-right {
    right: -35px;
    background-image: url(https://tln.ca/wp-content/fontawesome/svgs/solid/chevron-right.svg);
}
#episodics-left:hover, #episodics-right:hover {
    width: 30px;
    height: 30px;
    background-size: 45%;
}
.episodics-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}
.thumbnail {
    position: relative;
    padding-top: 56%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.episode-wrapper {
    display: flex;
    flex-direction: column;
    min-width: calc((100% - 40px)/3);
    scroll-snap-align: start;
}
h2.episodic-title {
    margin: 5px auto 5px !important;
    font-size: 16px;
    color: var(--tln-dark-grey);
}
h3.episodic-showtime {
    margin: 5px auto !important;
    font-size: 14px;
    color: var(--tln-red);
}
p.episodic-synopsis {
    margin: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}
.read-more-link {
    margin-left: 4px;
    color: var(--tln-red);
    cursor: pointer;
    text-decoration: underline;
}
.read-more-link:hover {
    text-decoration: none;
}
@media screen and (max-width: 1100px) {
  #header-section {
      flex-direction: column;
  }
  #trailer {
      width: 100%;
  }
  .trailer-thumb {
      padding-top: 56% !important;
  }
  #show-info {
      width: 100%;
  }
}
@media only screen and (max-width: 768px) {
    .episode-wrapper {
        min-width: calc((100% - 20px)/2);
    }
}
@media only screen and (max-width: 580px) {
    #episodics-left {
        left: -30px;
        background-image: url(https://tln.ca/wp-content/fontawesome/svgs/solid/chevron-left.svg);
    }
    #episodics-right {
        right: -30px;
    }
    .episode-wrapper {
        min-width: calc((100% - 0px)/1);
        margin: 0px 0px;
    }
}
/************************************************************************************************************/
/************************************---------LIGHTBOX SECTION---------**************************************/
/************************************************************************************************************/

.lightbox {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

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

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    padding-left: 6px;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}
@media only screen and (max-width: 580px) {
    .play-button {
        width: 13vw;
        height: 13vw;
    }

}
/************************************************************************************************************/
/************************************---------ABOUT SECTION---------**************************************/
/************************************************************************************************************/
#about-section {
    margin: auto;
    padding: 40px;
    background: var(--tln-light-grey);
}
.about-wrapper {
    max-width: 1240px;
    margin: auto;
    padding: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    background: var(--tln-white);
    box-shadow: 0px 0px 10px -2px grey;
}
.display-picture {
    height: 360px;
    min-width: 280px;
    overflow: hidden;
}
.display-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--y-position, top);
}
.display-picture img {
    --y-position: 60%; /* Center the image on hover */
}
.about-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-info h1 {
    margin: 0 0 20px !important;
}
#show-description a {
    text-decoration: none;
    color: var(--tln-red);
}
@media only screen and (max-width: 768px) {
    div#about-section {
        margin: auto;
        padding: 100px 40px 40px;
        background: var(--tln-light-grey);
    }
    .about-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .display-picture {
        position: relative;
        margin-top: -140px;
        min-width: 300px;
        height: 300px;
        object-position: top;
        border: 20px solid var(--tln-white);
        border-radius: 100%;
    }
    .about-wrapper img {
        object-position: top;
        transform: scale(1.3);
    }
}
@media only screen and (max-width: 580px) {
    div#about-section {
        margin: auto;
        padding: 120px 0px 0px;
    }
    .about-wrapper {
        padding: 20px;
	gap: 5px;
    }
    .display-picture {
        margin-top: -120px;
        min-width: 210px;
	width: 210px;
        height: 210px;    }
}


/************************************************************************************************************/
/************************************---------RECIPE SECTION---------**************************************/
/************************************************************************************************************/
#recipe-section {
    max-width: 1320px;
}
h1#recipe-title {
    text-align: center;
}
#more-recipes {
    display: block;
    width: fit-content;
    padding: 10px 30px;
    font-size: 22px;
    font-weight: 600;
    background: var(--tln-red);
    color: #fff;
    text-decoration: none;
    text-transform: capitalize;
    font-family: "Montserrat" !important;
    margin: 0 auto 40px;
    border-radius: 5px;
    border: 2px solid var(--tln-red);

}
a#more-recipes:hover {
    border: 2px solid var(--tln-red);
    color: var(--tln-red);
    background: none;
}
#recipes-container {
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.recipe-card {
    padding-top: 20%;
    background-size: cover;
    background-position: center;
    width: calc((100% / 3) - 15px);
    position: relative;
    overflow: hidden;
    box-shadow: 0px 0px 10px -4px black;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.recipe-card:hover {
    box-shadow: 0px 0px 15px -4px black;
}
.recipe-card:hover .recipe-overlay {
    background: rgb(0 0 0 / 40%);
}
.recipe-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease-in-out;
}
h2.recipe-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    padding: 10px;
    margin: 0 !important;
}

@media only screen and (max-width: 1000px) {
	.recipe-card {
    	padding-top: 30%;
	}
	h2.recipe-title {
    		font-size: 21px;
	} 
}
@media only screen and (max-width: 768px) {
	#recipes-container {
            margin: 20px auto;
        }
    	.recipe-card {
	        width: calc((100% / 2) - 10px);
       	 	padding-top: 60%;
        	background-size: 160%;
    	}
	#recipes-container .recipe-card:nth-child(5),
	#recipes-container .recipe-card:nth-child(6) {
        	display: none;
    	}
}


/************************************************************************************************************/
/***************************************---------AD SECTION---------*****************************************/
/************************************************************************************************************/

.desktop-leaderboard {
    padding: 40px 20px;
    background: var(--tln-dark-grey);
}
.desktop-leaderboard div {
    width: 728px;
    height: 90px;
    margin: auto;
}
.mobile-leaderboard {
    display: none;
    padding: 20px;
    background: var(--tln-dark-grey);
}
.mobile-leaderboard div {
    width: 300px;
    height: 50px;
    margin: auto;
}

@media only screen and (max-width: 840px) {
     .desktop-leaderboard {
        display: none;
    }
    .mobile-leaderboard {
        display: block;
    }   
}
