/*FESTIVAL TEMPLATE*/
:root{
    --secondary-theme: #f39314;
    --prime-theme: #000;
}

.page-template-page-festival *{
    font-family: Poppins !important;
}

.ml-auto{
    z-index: 1;
}

.f-section{
    padding: 4rem 0;
}
.f-section h4{
    font-size: 24px;
    font-weight: 700;
}
.f-section h5{
    font-size: 18px;
}


.f-section *:focus{
    outline-width:0;
}
h2.f-header{
    color: #000;
    font-weight: 700;
}

.f-text{
    color: var(--prime-theme);
}
#f-about .f-text p{
    /*margin-bottom: 0;*/
    color: var(--prime-theme);
}

.readmore{
    display: none;
    white-space: pre-wrap;
}
.more-container {
    display: flex;
    justify-content: flex-end;
}

.load-more-en,
.load-more-pl{
    width: 160px;
    padding: 10px;
    color: var(--secondary-theme);
    background-color: transparent;
    background-image: none;
    border: 2px solid var(--secondary-theme);
    border-radius: 15px !important;
    font-size: 1.25rem;
    text-align: center;
    margin-top:10px;
}

.load-more-en:hover,
.load-more-pl:hover{
    color:white;
    background-color:var(--secondary-theme);
}





.f-program-link{
    color: var(--secondary-theme);
    background-color: transparent;
    background-image: none;
    border: 2px solid var(--secondary-theme);
    border-radius: 15px !important;
    padding: 1rem 1.75rem;
    font-size: 1.25rem;
    text-align: center;
    width: 330px;
}
.f-program-link:hover{
    color:white;
    background-color:var(--secondary-theme);
}
.f-trailer{
    flex:1;
    min-height: 360px;
    /*color:#f39314;*/
}
.f-section.hl{
    background: #f6f6f6;
    color:white;
}
.f-section.hl h2.f-header{
    color:#000;
}


/*PARTNERS SECTION*/
#f-partners{
    overflow: hidden;
}
.fw-bb:after {
    content: "";
    position: absolute;
    height: 1px;
    background:  rgba(112, 112, 112, 0.2);
    width: 200%;
    bottom: 0;
}

.fw-bb {
    position: relative;
}
/*PARTNERS SECTION END*/






.f-card * {
    color:white;
}
.f-card *:hover{
    text-decoration: none !important;
    color:white;
}
.f-card-main{
    position: relative;
    display: grid !important;
    /*grid-template-rows: 360px 120px;*/
    grid-template-rows: 360px minmax(120px,auto);
}
.f-card-header{
    padding: 20px 10px;
    padding-left: 20px;
    background: #000;
    display: flex;
    align-items: center;
}

.f-card:nth-of-type(even):last-child:not(:nth-of-type(3n+1)) .f-card-header,
.f-card:nth-of-type(even):not(:last-child) .f-card-header {
    background: var(--secondary-theme);
}
.f-card:nth-of-type(even):last-child:not(:nth-of-type(3n+1)) .f-card-caption,
.f-card:nth-of-type(even):not(:last-child) .f-card-caption {
    background: var(--secondary-theme);
}



.f-card-header h4{
    margin:0;
}
.f-card-caption{
    position: absolute;
    top:0;
    left:0;
    opacity:0;
    transition: .3s ease-out;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background:#000;
    flex: 1;
}
.f-card-caption h4{
    color:white;
}
.f-card-img img{
    width: 100%;
    /*height: auto;*/
    height: 100%;
    object-fit: cover;
    max-height: 360px;
}
.f-card:hover .f-card-caption{
    opacity:1;
}
#f-special{
    background: white;
}
#f-team{
    background: #f6f6f6;
    padding-bottom: 0;
}
.f-team-img{
    float: left;
    margin: 0 15px 0 0;
}
.t-member br {
    content: '';
    display: block;
    margin: 5px 0;
}

.f-special-side{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}
.f-special-about *{
    color:#000;
}

.f-more{
    margin: 0 auto;
    max-width: 360px !important;
    height: 100% !important;
    padding: 0 !important;
}
#f-special .f-more{
    color: var(--prime-theme);
    font-size: 1.2em;
}
#f-special .f-more:hover{
    color: var(--secondary-theme);
}
.f-special-about *[class^='f-']>div:last-child,
.f-meta *[class^='f-']>span,
.f-meta *[class^='f-']>p{
    /*font-size: 1.2em;*/
    display: block;
}
.f-desc img{
    float:left;
    margin-right: 10px;
    margin-bottom: 10px;
}

.f-event-subtitle{
    color:var(--secondary-theme);
}
body .dark-mask{
    background:black;
    opacity: 0.8;
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index: 9999;
    transition: 0.3s ease-out;
}
body .f-popup{
    z-index: 99999;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
    position: fixed !important;
}
#f-popup{
    padding: 20px 40px 60px 40px;
}

.f-popup .ui-dialog-titlebar.ui-widget-header{
    background: none;
    border:none;
    position: sticky;
    top: 0;
    z-index: 999;
}

.f-popup button.ui-dialog-titlebar-close:focus,
.f-popup button.ui-dialog-titlebar-close {
    outline:none !important;
}

.f-popup button.ui-dialog-titlebar-close {
    border: none;
    background: none;
    width: fit-content;
    height: fit-content;
}
.f-popup button.ui-dialog-titlebar-close:before {
    content: '\00d7';
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    font-size: 50px;
    line-height: 0.5;
    cursor: pointer;
}

.f-popup button.ui-dialog-titlebar-close:hover:before{
    color: #4b4b4b;
}
.f-popup h4,
.f-popup h3{
    color:var(--secondary-theme);
}
.f-popup h2{
    font-weight: 900;
}
.f-popup h2,
.f-popup p,
.f-popup .f-meta *  {
    color: var(--prime-theme);
}

.sep-line{
    border-bottom: 1px solid rgba(112, 112, 112, 0.2);
}

.f-side-menu{
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 3px solid var(--secondary-theme);
    background: white;
    padding:10px 0;
    padding-right: 10px;
}
.f-side-menu ul{
    list-style-type: none;
    /*padding: 0;*/
    margin:0;
    display: flex;
    justify-content: flex-end;
    align-items: center;

}
.f-side-menu ul>li {
    /*margin-bottom:10px;*/
    position: relative;
    text-transform: uppercase;
    padding-right: 5px;
    padding-left: 5px;
}
.f-side-menu ul>li:last-of-type{
    padding-right: 0;
}
.f-side-menu ul>li.active{
    border-radius: 15px !important;
    border: 2px solid var(--secondary-theme);
    background: var(--secondary-theme);
}
.f-side-menu a {
    color: black;
    font-size: 18px;
    outline:none !important;
    padding: 5px 10px;
    display: block;
}
.f-side-menu li.active a{
    /*color:var(--secondary-theme);*/
    /* color:white; */
}
.f-side-menu a:hover{
    text-decoration: none;
}
.f-side-menu li:not(.active) a:hover{
    color:var(--secondary-theme);
}
/*.f-side-menu li.active:before {*/
/*    position: absolute;*/
/*    content: '';*/
/*    right: calc(100% + 10px);*/
/*    width: 10px;*/
/*    height: 10px;*/
/*    border-radius: 5px;*/
/*    background: var(--secondary-theme);*/
/*    transform: translateY(-50%);*/
/*    top: 50%;*/
/*    bottom: 0;*/
/*}*/

.hidden{
    display: none;
}

body.page-template-page-festival{
    margin-top:0 !important;
}
.page-template-page-festival header{
    position:static !important;
}

.next-flex > *{
    display: flex;
}
.f-media p>*{
    max-width: 100%;
}

.f-media img{
    object-fit: cover;
}

.f-media p{
    height: 100%;
    /*min-height: 360px;*/
}
.f-media p>iframe{
    /*width: 100%;*/
    /*height: auto;*/
}

.f-location{
    margin-top: 5px;
}


.f-desc img{
    width: 211px;
    height: 211px;
}


.banner-container{
    max-height: 60vh;
}
.festival-banner{
    display: grid;
    grid-template-columns: 1fr 1fr;
    line-height: 1;
}
.festival-title__half{
    position: relative;
}
.festival-title__half:last-of-type{
    font-size: 0;
}
.festival-title__half img{
    width: 100%;
    /*height: 100%;*/
    /*object-fit: cover;*/
    object-fit: contain;
    object-position: left;
    max-height: 60vh;
}
.festival-title__half .en-tile,
.festival-title__half .pl-tile{
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
}
.festival-title__half .pl-tile{
    /*display: none;*/
}
.festival-title .tile-left {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 700;
    font-size: 42px;
    padding-left: 0.8em;
    padding-right: 0.8em;
    /*transform: scale(-1, -1);*/
}

.festival-title .tile-right{
    flex: 1;
    display: grid;
    grid-template-rows: repeat(5,1fr);
    overflow: hidden;
}

.festival-title .tile-right>span {
    /*font-size: calc(100%/6);*/
    /*line-height: 1;*/
    font-size: calc(100%/4.7);
    line-height: 0.8;
    text-align: right;
    font-weight: 700;
}

.festival-title__half  .pl-tile,
.festival-title__half  .en-tile{
    background-size: auto 100% !important;
    background-position: center right !important;
    background-repeat: no-repeat !important;
}

/*.festival-title__half  .en-tile:after,*/
/*.festival-title__half  .pl-tile:after{*/
/*    !*content: "";*!*/
/*    !*position: absolute;*!*/
/*    !*width: 100%;*!*/
/*    !*height: 100%;*!*/
/*    !*background: white;*!*/
/*    !*!*animation: diagonal 4s linear 0s infinite;*!*!*/
/*    !*background: linear-gradient(135deg, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 25%,rgba(255,255,255,0) 37%,rgba(255,255,255,0) 50%,rgba(255,255,255,0) 63%,rgba(255,255,255,1) 75%,rgba(255,255,255,1) 100%);    background-repeat: no-repeat;*!*/
/*    !*background-size: 400% 400%;*!*/
/*    !*background-position: 100% 100%;*!*/

/*    !*animation: diagonal-a2 1s linear 10s infinite, diagonal-a1 1s linear 20s infinite  ;*!*/
/*    !*animation-direction: reverse;*!*/
/*}*/
/*.festival-title__half  .pl-tile:after{*/
/*    !*animation: diagonal-a1 1s linear 10s infinite, diagonal-a2 1s linear 20s infinite;*!*/
/*    !*animation-direction: reverse;*!*/
/*}*/
/*.festival-title__half  .pl-tile{*/
/*    !*animation: fade-d 4s linear 0s infinite alternate;*!*/
/*    !*animation: fade1 1s linear 30s infinite, reveal 1s linear 70s infinite;*!*/
/*}*/
/*.festival-title__half  .en-tile{*/
/*    !*animation: fade-d 4s linear 2s infinite alternate;*!*/
/*    !*animation: reveal 1s linear 3s infinite, fade1 1s linear 7s alternate;*!*/
/*    !*animation: fade-reveal 4s linear 0s infinite;*!*/
/*    !*animation-direction: reverse;*!*/

/*}*/

.festival-title__half  .pl-tile{
    opacity: 1;
    animation: banner 4s linear 5s infinite alternate-reverse;
}
.festival-title__half  .en-tile{
    opacity: 0;
    animation: banner 4s linear 5s infinite alternate;
}

@keyframes banner {
    0% {
        opacity: 0;
    }
    45% {
        opacity: 0;
    }
    55% {
        opacity: 1;
    }
    100%{
        opacity: 1;
    }
}






@keyframes diagonal {
    0%, 25%{
        background-position: 100% 100%;
    }
    75%,100% {
        background-position: 0 0;
    }
}

@keyframes diagonal-r {
     0%, 12.5%{
         background-position: 0 0;
     }
     37.5%,50% {
         background-position: 100% 100%;
     }
     50%,62.5% {
         background-position: 100% 100%;
     }
     87.5%,100% {
         background-position: 0 0;
     }
 }

@keyframes diagonal-a {
     0%{
         background-position: 0 0;
     }
     100% {
         background-position: 100% 100%;
     }
 }

@keyframes diagonal-a1 {
    0%{
        background-position: 0 0;
    }
    100% {
        background-position: 50% 50%;
    }
}


@keyframes diagonal-a2 {
    0%{
        background-position: 50% 50%;
    }
    100% {
        background-position: 100% 100%;
    }
}


@keyframes fade1 {
    0% {
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

@keyframes fade-d {
    0% {
        opacity: 0;
    }
    37% {
        opacity: 1;
    }
    63% {
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

@keyframes fade-q {
    0% {
        z-index: 0;
    }
    37% {
        z-index: 1;
    }
    63% {
        z-index: 1;
    }
    100%{
        z-index: 0;
    }
}

@keyframes reveal {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fade-reveal {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

@media screen and (max-width: 1024px) {
    .festival-title .tile-left {
        font-size: 24px;
    }

    .f-side-menu a {
        font-size: 18px;
    }

    .f-card-header h4>br {
        content:'';
    }
    .f-card-header h4>br:after {
        content:' ';
    }

}

@media screen and (max-width: 991px){
    .f-card:nth-of-type(even) .f-card-header {
        background: var(--secondary-theme);
    }
    .f-card:nth-of-type(even) .f-card-caption {
        background: var(--secondary-theme);
    }
}

@media screen and (max-width: 768px){
    .festival-title .tile-left{
        font-size: 18px;
    }

    .f-header{
        text-align: center;
    }
    .f-program-links{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .f-program-links>br{
        display: none;
    }


    #f-popup{
        padding: 0  ;
    }
    .f-side-menu{
        display: none;
    }
    .load-more-en, .load-more-pl {
        width: 130px;
        padding: 2px;
    }
    .f-program-link{
        padding: 5px 10px;
    }
    #f-about{
        padding-top: 0!important;
    }
    .f-card-main {
        grid-template-rows: auto minmax(120px,auto);
    }


    /*.f-card-img.w-100:before {*/
    /*    content: "";*/
    /*    height: 0;*/
    /*    display: inline-block;*/
    /*    padding-bottom: calc(100% - 5px);*/
    /*    width: 0px;*/
    /*    margin: 0;*/
    /*}*/
    /*.f-card-img img {*/
    /*    position: absolute;*/
    /*    object-fit: cover;*/
    /*}*/
}

@media screen and (max-width: 480px){
    .f-program-link{
        width: 250px;
    }
    .f-trailer {
        min-height: auto;
    }
}

@media screen and (max-width: 400px){
    .festival-title .tile-left{
        font-size: 14px;
    }
    .f-side-menu a {
        font-size: 12px;
    }

    .f-media p{
        min-height: unset;
    }
    .f-popup h2{
        font-size: 16px;
    }
    .f-popup h3{
        font-size: 14px;
    }
    .page-main {
        padding: 2rem 0;
    }

    .f-team-img {
        display: block;
        float: none;
        margin: auto;
        width: 100%;
        margin-bottom: 5px;
    }

    .f-desc{
        display: flex !important;
        flex-direction: column;
    }
    .f-desc img{
        width: 100%;
        height: 100%;
    }
}

.ui-dialog .ui-dialog-content{
    overflow:hidden !important;
}