/* ==================================================
   Global headings
================================================== */

h2 {
    position: relative;
    margin-bottom: 20px;
}

h2::after {
    content: "";
    position: relative;
    bottom: -5px;

    display: block;
    width: 50px;
    height: 2px;

    background: #5e9499;
}

#characters h2::after {
    left: 0;
    right: 0;
    margin-inline: auto;
}

#distribution h2::after {
    display: none;
}


/* ==================================================
   Above the fold
================================================== */

#atf {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;

    height: 60vh;
    padding: 10vh 4%;
}

#atf .atf-overlay,
#atf .atf-image {
    position: absolute;

    width: 100%;
    height: 100%;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#atf .atf-overlay {
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.3);
}

#atf .atf-image {
    z-index: 0;
}

#atf .type-year {
    position: relative;
    z-index: 10;

    display: flex;
}

#atf h3 {
    margin: 0;

    color: #fff;
    font-size: 28px !important;
}

#atf h3.divide {
    margin-inline: 7px;
}

#atf h1 {
    position: relative;
    z-index: 10;

    max-width: 70vw;

    color: #fff;
    font-family: "GT America Extended", Arial, Helvetica, sans-serif !important;
    text-align: center;
}

#atf .video-button {
    position: relative;
    z-index: 10;
    
    padding: 10px 60px;
    border: 2px solid #fff;
    
    background: transparent;
    color: #fff;
    
    font-family: "GT America Extended", Arial, Helvetica, sans-serif;
    font-size: 30px;
    
    cursor: pointer;
    transition: .2s;
}

#atf .video-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 3px 12px -3px rgba(0,0,0,.4);
    background-color: rgba(255,255,255,.4);
}

#atf .video-button:active {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px -2px rgba(0,0,0,.4);
    background-color: rgba(255,255,255,.4);
}


/* ==================================================
   Video lightbox
================================================== */

.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;
}

.video-lightbox.active {
    display: flex;
}

.video-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.8);
}

.video-container {
    position: relative;
    z-index: 2;

    width: min(90vw, 1000px);
}

.video-container video {
    display: block;
    width: 100%;

    border-radius: 8px;
}

.video-close {
    position: absolute;
    top: -45px;
    right: 0;

    border: 0;

    background: none;
    color: #fff;

    font-size: 2rem;

    cursor: pointer;
}


/* ==================================================
   Project information
================================================== */

#info .info-column {
    display: flex;
    flex-direction: row;
    column-gap: 60px;

    padding: 4%;
}

#info .info-column-one,
#info .info-column-two {
    flex: 1 1 50%;
}

#info .info-column-one > div:not(:last-child) {
    margin-bottom: 40px;
}

#info h4 {
    color: #000;

    font-family: "GT America Extended", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

#info h5 {
    font-size: 30px;
    font-weight: 400;
}

#info .creator h5,
#info .director h5 {
    display: inline-block;
}

/*#info .writers {
    display: none;
}*/

#info .biography-link {
    display: inline-block;
    margin-left: 10px;
}

#info .biography-link h6 {
    font-weight: 300;
    text-decoration: underline;
}


/* ==================================================
   Biography
================================================== */

#biography {
    padding-bottom: 4%;
    background: #033336;
}

#biography .biography {
    padding: 4%;
    padding-bottom: 40px;
}

#biography .biography-image {
    float: left;

    width: 400px;
    height: 600px;
    margin-right: 5vw;
    margin-bottom: 15px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#biography h2,
#biography h4 {
    color: #fff;
}

#biography h3 {
    margin: 15px 0;

    color: #5e9499;

    font-family: "GT America Extended", Arial, Helvetica, sans-serif !important;
    font-size: 60px;
    font-weight: 300 !important;
    text-transform: capitalize !important;
}

#biography .director-biography p {
    color: #fff;
}

#biography .director-quote {
    margin: -1% 10% 0;
    padding: 2%;

    background: #fff;
    box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 1);
}

#biography .director-quote p {
    position: relative;

    font-size: 20px;
    font-weight: 500;
}

#biography .director-quote p:nth-child(2) {
    margin-top: -100px;
    text-indent: -42px;
}

#biography .director-quote p:nth-child(2)::before {
    content: ",,";

    position: relative;
    top: -10px;
    left: 20px;

    display: inline-block;

    color: #5e9499;
    opacity: 0.5;

    font-family: "Manrope", sans-serif;
    font-size: 350px;
    line-height: 0;
    letter-spacing: -50px;

    transform: scaleX(-1);
}


/* ==================================================
   Additional project information
================================================== */

#extra {
    padding: 4%;
}

#extra .extra-column {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 60px;
}

#extra .extra-column.pilot-synopsis {
    align-items: flex-start;
}

#extra .extra-column .extra-column-one,
#extra .extra-column .extra-column-two {
    flex: 1;
}

#extra .extra-column .extra-column-one img {
    width: 100%;
}

#extra p a {
    font-weight: 600;
    text-decoration: underline;
}

#extra .logline {
    display: block;

    margin-top: -8px;
    padding: 1vw 5vw;

    background: #dbf0ed;
    color: #033336;

    font-size: 30px;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
}

#extra .pilot {
    width: 100%;
}


/* ==================================================
   Characters
================================================== */

#characters {
    padding: 4%;
    background: #dbf0ed;
}

#characters h2 {
    text-align: center;
}

#characters .character {
    display: flex;
    column-gap: 60px;

    padding: 20px;
}

#characters .character-info h3 {
    font-family: "GT America Extended", Arial, Helvetica, sans-serif !important;
    font-size: 30px;
    font-weight: 500 !important;
    text-transform: capitalize !important;
}

#characters .character-info .played-by strong {
    font-family: "GT America Compressed", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

#characters .character-image {
    min-width: 200px;
    height: 200px;

    background-image: url("https://trilithinstitute.org/wp-content/uploads/2026/07/princess.webp");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}


/* ==================================================
   Tone and comparisons
================================================== */

#tone {
    padding: 4%;
    background: #033336;
}

#tone h2,
#tone h3,
#tone p {
    color: #fff !important;
}

#tone .tone-column {
    display: flex;
    align-items: center;
    column-gap: 60px;
}

#tone .tone,
#tone .cross {
    flex: 1;
}

#tone .cross {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 30px;

    background: #fff;
}

#tone .cross img {
    max-width: 300px;
    padding-block: 20px;
}

#tone .show-1 img {
    margin-left: -30px;
}

#tone .cross-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 30px;
}

#tone .cross-text p,
#tone .cross-text h3 {
    color: #033336 !important;
}

#tone .cross-text p {
    max-width: 300px;
    margin-bottom: 0;

    text-align: center;
}

#tone .show-2 img {
    margin-right: -30px;
    margin-bottom: -8px;
}


/* ==================================================
   Seasons
================================================== */

#seasons {
    padding: 4%;
}

#seasons .seasons-column {
    display: flex;
    column-gap: 60px;
}

#seasons .seasons-column > div {
    flex: 1;
}

#seasons .promo {
    display: flex;
    align-items: center;
}

#seasons .promo img {
    width: 100%;
}

#seasons h2 {
    margin-bottom: 30px;
}


/* ==================================================
   Episodes
================================================== */

#episodes {
    padding: 0 4% 4%;
}

#episodes h2 {
    margin-bottom: 30px;
}

#episodes .episodes {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

#episodes .episode {
    flex: 1 1 calc(25% - 60px);
}

#episodes .episode-image {
    width: 100%;
    height: 150px;
    margin-bottom: 24px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* ==================================================
   Background
================================================== */

#background {
    padding: 4%;
    background: #dbf0ed;
}


/* ==================================================
   Producer
================================================== */

#producer {
    position: relative;

    padding: 4%;
    overflow: hidden;
}

#producer .producer-color-overlay,
#producer .producer-image-overlay {
    position: absolute;
    top: 0;
    left: 0;

    display: block;
    width: 100%;
    height: 100%;

    background-position: center;
    background-size: 400px auto;
}

#producer .producer-image-overlay {
    top: -100vh;
    left: -50%;
    z-index: 1;

    width: 200%;
    height: 200vh;

    transform: skew(10deg, 10deg);
}

#producer .producer-color-overlay {
    z-index: 1;

    background: #033336;
    opacity: 0.8;
}

#producer .producer-column {
    position: relative;
    z-index: 10;
}

#producer h2,
#producer h3,
#producer p {
    color: #fff;
}


/* ==================================================
   Distribution and newsletter
================================================== */

#distribution .distribution-column {
    display: flex;
    align-items: stretch;
}

#distribution .distribution-col {
    flex: 1;
    padding: 4%;
}

#distribution .distribution-col.col-one{
    background: #DBF0ED;
}

#distribution .distribution-col.col-one p a {
    color: #5e9499;
    font-weight: 600;
    text-decoration: underline;
}

#distribution .distribution-col.col-two {
    background-color: #5e9499;
}

#distribution .newsletter h3,
#distribution .newsletter label span,
#distribution .newsletter__desc {
    display: none;
}

#distribution .newsletter .btn {
    background-color: #033336 !important;
    cursor: pointer;
}


/* ==================================================
   Inline gallery carousel
================================================== */

.original-gallery {
    width: 100%;
    overflow: hidden;
}

.gallery-carousel-wrap {
    position: relative;
}

.original-gallery button,
.gallery-carousel__item {
    border-radius: 0 !important;
}

.gallery-carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;

    width: 100%;
    padding-bottom: 0.75rem;

    overflow-x: hidden;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.gallery-carousel__item {
    flex: 0 0 auto;

    display: block;
    height: 280px;
    padding: 0;
    overflow: hidden;

    border: 0;
    background: none;

    cursor: pointer;
    scroll-snap-align: start;
}

.gallery-carousel__item img {
    display: block;

    width: auto;
    max-width: none;
    height: 100%;

    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-carousel__item:hover img,
.gallery-carousel__item:focus-visible img {
    transform: scale(1.025);
}

.gallery-carousel__item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}


/* ==================================================
   Carousel arrows
================================================== */

.gallery-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 58px;
    padding: 0;
    border: 0;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;

    font-size: 1.75rem;
    line-height: 1;

    cursor: pointer;
    transform: translateY(-50%);
    transition:
        opacity 0.2s ease,
        background 0.2s ease;
}

.gallery-carousel__arrow:hover,
.gallery-carousel__arrow:focus-visible {
    background: rgba(0, 0, 0, 0.9);
}

.gallery-carousel__arrow--previous {
    left: 0;
}

.gallery-carousel__arrow--next {
    right: 0;
}

.gallery-carousel__arrow.is-disabled {
    opacity: 0;
    pointer-events: none;
}


/* ==================================================
   Gallery lightbox
================================================== */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;

    background: rgba(0, 0, 0, 0.94);
    color: #fff;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox__viewport {
    width: 100%;
    overflow: hidden;
}

.gallery-lightbox__track {
    display: flex;

    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.gallery-lightbox__track::-webkit-scrollbar {
    display: none;
}

.gallery-lightbox__slide {
    flex: 0 0 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    height: 100vh;
    margin: 0;
    padding: 4.5rem 5rem 2rem;

    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.gallery-lightbox__image-wrap {
    flex: 1 1 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 0;
}

.gallery-lightbox__image-wrap img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 10rem);

    object-fit: contain;
}

.gallery-lightbox__caption {
    flex: 0 0 auto;

    width: min(800px, 100%);
    margin-top: 1rem;

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}


/* ==================================================
   Gallery lightbox controls
================================================== */

.gallery-lightbox__close,
.gallery-lightbox__arrow {
    position: absolute;
    z-index: 2;

    padding: 0;
    border: 0;

    background: transparent;
    color: #fff;

    cursor: pointer;
}

.gallery-lightbox__close {
    top: 1rem;
    right: 1.5rem;

    font-size: 3rem;
    line-height: 1;
}

.gallery-lightbox__arrow {
    top: 50%;

    width: 3rem;
    height: 4rem;

    font-size: 2.25rem;
    line-height: 1;

    transform: translateY(-50%);
}

.gallery-lightbox__arrow--previous {
    left: 1rem;
}

.gallery-lightbox__arrow--next {
    right: 1rem;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__arrow:hover,
.gallery-lightbox__arrow:focus-visible {
    opacity: 0.65;
}

body.gallery-lightbox-open {
    overflow: hidden;
}


/* ==================================================
   Responsive
================================================== */

@media (max-width: 767px) {
    #info .info-column,
    #tone .tone-column,
    #seasons .seasons-column,
    #distribution .distribution-column {
        flex-direction: column;
    }

    #extra .extra-column {
        flex-direction: column;
        row-gap: 30px;
    }

    #characters .character {
        flex-direction: column;
        row-gap: 25px;
    }

    #characters .character-image {
        width: 200px;
    }

    #biography .biography-image {
        float: none;

        width: 100%;
        max-width: 400px;
        height: 500px;
        margin-right: 0;
    }

    #biography h3 {
        font-size: 42px;
    }

    #episodes .episode {
        flex-basis: 100%;
    }

    .gallery-carousel__item {
        height: 190px;
    }

    .gallery-carousel__arrow {
        width: 36px;
        height: 50px;

        font-size: 1.4rem;
    }

    .gallery-lightbox__slide {
        padding: 4rem 1rem 2rem;
    }

    .gallery-lightbox__image-wrap img {
        max-height: calc(100vh - 11rem);
    }

    .gallery-lightbox__arrow {
        top: auto;
        bottom: 1rem;

        transform: none;
    }

    .gallery-lightbox__arrow--previous {
        left: 1rem;
    }

    .gallery-lightbox__arrow--next {
        right: 1rem;
    }
}