/*
Theme Name:  Layers 2026
Theme URI:   https://feelbeit.com
Author:      FeelBeit
Description: Custom WordPress theme for Layers 2026 festival
Version:     1.0.0
Requires at least: 7.0
Requires PHP: 8.2
Text Domain: layers2026
*/


/* ─── Fonts ──────────────────────────────────────────────── */

@font-face {
    font-family: "Rapida";
    src: url("assets/fonts/RapidaHebLatArDemi_web/Rapida_Heb-Lat-Ar-Demi.woff2") format("woff2"),
         url("assets/fonts/RapidaHebLatArDemi_web/Rapida_Heb-Lat-Ar-Demi.woff") format("woff"),
         url("assets/fonts/RapidaHebLatArDemi_web/Rapida_Heb-Lat-Ar-Demi.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Rapida";
    src: url("assets/fonts/RapidaHebLatArDemiCursive_web/Rapida_Heb-Lat-Ar-DemiCursive.woff2") format("woff2"),
         url("assets/fonts/RapidaHebLatArDemiCursive_web/Rapida_Heb-Lat-Ar-DemiCursive.woff") format("woff"),
         url("assets/fonts/RapidaHebLatArDemiCursive_web/Rapida_Heb-Lat-Ar-DemiCursive.otf") format("opentype");
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "SimplerPro";
    src: url("assets/fonts/SimplerProHLARSemibold_web/SimplerPro_HLAR-Semibold.woff2") format("woff2"),
         url("assets/fonts/SimplerProHLARSemibold_web/SimplerPro_HLAR-Semibold.woff") format("woff"),
         url("assets/fonts/SimplerProHLARSemibold_web/SimplerPro_HLAR-Semibold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SimplerPro";
    src: url("assets/fonts/SimplerProHLARBlack_web/SimplerPro_HLAR-Black.woff2") format("woff2"),
         url("assets/fonts/SimplerProHLARBlack_web/SimplerPro_HLAR-Black.woff") format("woff"),
         url("assets/fonts/SimplerProHLARBlack_web/SimplerPro_HLAR-Black.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ─── Reset ─────────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Custom properties ──────────────────────────────────── */

:root {
    --color-bg:      #111;
    --color-text:    #fff;
    --color-bg-accent-grid:  #ef4535;
    --color-bg-accent-list:  #f7931e;
    --font-primary:     "Rapida", serif;
    --font-secondary:   "SimplerPro", sans-serif;
    --container-max: 1200px;
    --gap:           1.5em;
    --event-bg:      #163089;
    /*--timetable-bg: url('assets/backgrounds/BG-03-50.jpg?v=2');*/
}

/* ─── Base ───────────────────────────────────────────────── */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 20px;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}
h1, h2, h3{
    font-family: var(--font-secondary);
    font-weight: 600;
}
.button{
    display: inline-block;
    text-decoration: none;
    background: none;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 0.25em 2em;
    border-radius: 1em;
    font-family: var(--font-secondary);
    letter-spacing: 0.05em;
    font-size: 0.85em;
}
.site-header{
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background-color 0.2s ease;
}
body.single-layers_event .site-header,
.site-header--scrolled{
    background-color: var(--color-bg);
}
.site-header__inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1em;
    line-height: 1.5;
}
.site-header__end{
    display: flex;
    gap: 0.25rem;
    align-items: center;
}
.site-header__languages{
    display: flex;
    gap: 0;
    list-style: none;
}
.site-header__languages a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3em;
    height: 3em;
    text-decoration: none;
}
.site-header__languages a:hover{
    background: rgba(255, 255, 255, 0.35);
}
.current-lang{
    background: var(--color-text);
    color: var(--color-bg);
}
.site-header__logo img{
    width: 4em;
    height: 3em;
    object-fit: cover;
}
.site-header__title{
    font-style: italic;
}
.site-header__title a{
    text-decoration: none;
}
body.page-template-page-homepage .site-header__title{
    display: none;
}

.site-nav ul{
    display: flex;
    gap: 0.5em;
    list-style: none;
}
.site-nav li a{
    display: block;
    text-decoration: none;
    width: 3em;
}
.site-nav li a img{
    width: 100%;
    height: auto;
}
.site-nav-label,
.site-header__mobile{
    display: none;
}
.site-main-image img{
    width: 100%;
    height: auto;
}
.main-image--desktop{
    display: block;
}
.main-image--mobile{
    display: none;
}
.runner{
    overflow: hidden;
    background: var(--color-bg);
    color: var(--color-text);
}
.runner__inner{
    display: flex;
    width: max-content;
    font-size: 1.1em;
    line-height: 2.2;
    animation: layers26-runner-scroll 20s linear infinite;
}
.runner__text{
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.runner__text::after{
    content: "•";
    margin-inline: 1em;
}
/* Shift equals exactly one copy-width: keep this in sync with the number
   of duplicated copies rendered in header.php (currently 3). */
@keyframes layers26-runner-scroll{
    from{ transform: translateX(0); }
    to{ transform: translateX(calc(-100% / 3)); }
}
@keyframes layers26-runner-scroll-rtl{
    from{ transform: translateX(0); }
    to{ transform: translateX(calc(100% / 3)); }
}
:lang(he) .runner__inner,
:lang(ar) .runner__inner{
    animation-name: layers26-runner-scroll-rtl;
}
.container{
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap);
}
.event-single{
    background-color: var(--event-bg);
    padding: calc(3 * var(--gap)) 0;
}
.page-single{
    background: #585524;
    padding: calc(3 * var(--gap)) 0;
}
.page-single__header{
    margin-bottom: calc(2 * var(--gap));
}
.page-single__content{
    max-width: 800px;
}
.page-single__content p{
    margin-bottom: 1em;
}
.page-single--404 .page-single__content .button{
    margin-top: 1em;
}
.single__content hr{
    margin: 2em 0 1.5em 0;
    opacity: 0.25;
    width: 170px;
}
.single__content h2{
    margin-bottom: 0.5em;
}
h1{
    font-weight: 900;
    font-size: 3em;
    line-height: 1;
    margin-bottom: 0.3em;
}
.event-single__subtitle{
    font-size: 1.3em;
    line-height: 1.3;
}
.two-columns{
    display: grid;
    grid-template-columns: 1fr 3.5fr;
    /*grid-auto-flow: revert;*/
    gap: calc(3 * var(--gap));
    margin-top: calc(2 * var(--gap));
}
.two-columns__left{
    /*padding-inline-end: calc(2 * var(--gap));*/
    /* Without this, this grid item's min-width defaults to "auto", which lets
       Swiper's internal flex row (slides at flex-shrink:0) report its full
       unshrunk intrinsic width upward and blow up the grid track. */
    min-width: 0;
}
.two-columns__right{
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.85em;
    line-height: 1.5;
}
.event-single__date{
    margin-bottom: 0.5em;
}
.event-single__date-dm{
    font-family: var(--font-primary);
    display: block;
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.25em;
}
.event-single__date-weekday{}
.event-single__date-time{}
.event-single__freenote{
    display: block;
}

.single__notes p{
    margin-bottom: 1em;
    line-height: 1.5;
}
.event-single__notes::before{
    content: "----";
    display: block;
    margin: 0.35rem 0;
}
.single__content p{
    margin-bottom: 1em;
    line-height: 1.5;
}
.single__thumbnail{
    margin-top: calc(2 * var(--gap));
}
.single-gallery__wrapper{
    min-width: 0;
}
.single-gallery{
    width: 100%;
    min-width: 0;
    --swiper-navigation-size: 1.1em;
    --swiper-navigation-sides-offset: 0.5em;
    margin-top: calc(2 * var(--gap));
    /* Height comes from this element's own width via aspect-ratio, not from
       Swiper's internal height:100% chain — the gallery sits inside a CSS
       Grid column, and percentage heights there resolve against the row,
       which is itself sized by this content, causing a circular blow-up. */
    aspect-ratio: 16 / 9;
}
.single-gallery__image{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.single-gallery .swiper-button-prev,
.single-gallery .swiper-button-next{
    width: 2.5em;
    height: 2.5em;
    color: #fff;
}
.event-accordion__item{
    background: var(--color-bg);
    margin: 0.25em 0;
}

.event-accordion__summary{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding: 1em 1.5em 1.2em;
    cursor: pointer;
    list-style: none;
}

.event-accordion__summary:hover{
    background: #ef4535;
    color: var(--color-bg);
}
.event-accordion__summary::-webkit-details-marker{
    display: none;
}
.event-accordion__summary-main{
    display: flex;
    flex-direction: column;
    gap: 0.35em;
}
.event-accordion__title{
    font-family: var(--font-secondary);
    font-weight: 900;
    font-size: 2em;
    line-height: 1;
}
.event-accordion__subtitle{
    font-size: 1.1em;
    line-height: 1.2;
    margin-bottom: 0.25em;
}
.event-accordion__date{
    display: flex;
    align-items: baseline;
    gap: 0.35em;
    font-family: var(--font-primary);
    font-size: 1.2em;
    white-space: nowrap;
}
.event-accordion__date-dm{
    font-weight: bold;
}
.event-accordion__icon{
    display: block;
    width: 3.5em;
    height: 3.5em;
    flex-shrink: 0;
    margin-inline-start: var(--gap);
}

.event-accordion__summary:hover .event-accordion__icon img{
    filter: brightness(0);
}
.event-accordion__icon img{
    width: 100%;
    height: 100%;
    transition: transform 200ms ease;
}
.event-accordion__item[open] .event-accordion__icon img{
    transform: rotate(45deg);
}
.event-accordion__body{
    padding: 1.5em;
    background: #1e1e1e;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20%;
    grid-template-areas: "content thumbnail";
}
.event-accordion__thumbnail{
    grid-area: thumbnail;
    position: relative;
    aspect-ratio: 5 / 3;
    overflow: hidden;
}
.event-accordion__thumbnail img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-accordion__content{
    grid-area: content;
}
.event-accordion__excerpt{
    margin-bottom: 1.5em;
    line-height: 1.5;
}
.event-accordion__link{
    background: #f5f1e9;
    color: var(--color-bg);
}
.event-accordion__link:hover{
    filter: invert(1);
}

/* Timetable */
h2.timetable__title{
    font-size: 3em;
    font-weight: 900;
}
.timetable{
    border-top: 3px solid var(--color-bg);
    /*background: var(--timetable-bg) no-repeat center center/cover;*/
    padding: calc(3 * var(--gap)) 0;
}
.timetable__title{
    margin-bottom: 1em;
}
.timetable__days{
    position: relative;
}
/* Mobile-only Swiper carousel (see assets/js/timetable.js); on desktop the
   .timetable__tabs button row above is the only way to switch days. */
.timetable__days .swiper-button-prev,
.timetable__days .swiper-button-next{
    display: none;
}
.timetable__day-heading{
    color: var(--color-text);
    background: var(--color-bg);
    padding: 0.7em 0.5em 1em 0.5em;
    text-align: center;
    margin-bottom: 1em;
}
.timetable__day-heading-dm{
    display: block;
    font-family: var(--font-primary);
    font-size: 2em;
    font-weight: normal;
}
.timetable__day-heading-weekday{
    font-size: 1.2em;
    font-family: var(--font-secondary);
    font-weight: 600;
}
.timetable__tabs{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 0.75em;
    margin-bottom: 0.75em;
}
.timetable__tab-button{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border: none;

    font-family: var(--font-secondary);
    cursor: pointer;
    flex: 1 1 0;
    justify-content: center;
}

.timetable__tab-button--day{
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.25);
    padding: 0.7em 0.5em 1em 0.5em;
    filter: blur(0.055em);
}
.timetable__tab-button--day:focus,
.timetable__tab-button--day:hover{
    filter: blur(0);
}
.timetable__tab-button--day.timetable__tab-button[aria-selected="true"]{
    background: var(--color-bg);
    filter: blur(0);
}
.timetable__tab-button--day .timetable__tab-dm{
    font-family: var(--font-primary);
    font-size: 2em;
    font-weight: normal;
    line-height: 1.1;
}
.timetable__tab-button--day .timetable__tab-weekday{
    font-family: var(--font-secondary);
    font-size: 1.2em;
    font-weight: 600;
}

.timetable__day-panel[hidden]{
    display: none;
}

.timetable .event-accordion__item{
    color: #111111;
    background: #f5f1e9;
    margin: 0;
    border-bottom: 2px solid #111111;
}
.timetable .event-accordion__summary:hover{
    background: #f7931e;
}
.timetable .event-accordion__item[open] .event-accordion__summary{
    background: #c1c2b2;
}
.timetable .event-accordion__summary{
    padding: 0.95em 1em 1em;
}
.timetable .event-accordion__summary-main{
    gap: 0.25em;
}
.timetable .event-accordion__icon{
    width: 2.5em;
    height: 2.5em;
}
.timetable .event-accordion__icon img{
    filter: brightness(0);
}
.timetable .event-accordion__body{
    background: #c1c2b2;
    padding-inline-start: 20%;
    padding-top: 0.25em;
    grid-template-columns: 1fr 1fr;
    gap: 20%;
}
.timetable .event-accordion__summary-main{
    width: 100%;
    display: grid;
    grid-template-columns: 20% auto;
    gap: 0.5em;
    align-items: start;
}
.timetable .event-accordion__date{
    padding-inline-start: 20%;
    font-size: 1em;
    gap: 0.65em;
    display: flex;
    flex-direction: column;
    align-items: start;
}
.timetable .event-accordion__title{
    font-weight: 900;
    font-size: 1.7em;
    display: block;
}
.timetable .event-accordion__subtitle{
    font-size: 1.1em;
    margin-top: 0.25em;
}
/* Footer */
.site-footer__inner{
    display: grid;
    grid-template-columns: auto 20em;
    grid-template-areas: "location subscribe" "social subscribe";
    gap: calc(2 * var(--gap));
    padding-top: calc(2 * var(--gap));
    padding-bottom: calc(2 * var(--gap));
    line-height: 1.3;
}
.site-footer__subscribe{
    grid-area: subscribe;
}
.site-footer__location{
    grid-area: location;
}
.site-footer__social{
    grid-area: social;
}

.site-footer__inner h2{
    font-size: 1.5em;
    line-height: 1.2;
    margin-bottom: 0.5em;
}
.site-footer__inner p{
    margin-bottom: 0.5em;
}
.site-footer__inner .button:hover,
.site-footer__inner .button:focus{
    background: #29abff;
    border-color: #29abff;
    color: var(--color-bg);
}
.site-footer__map-links{
    margin-top: 2em;
}
.site-footer__map-links a:first-child{
    margin-inline-end: 0.5em;
}
.site-footer__social-links a{
    display: inline-block;
    width: 3em;
    height: 3em;
    margin-inline-end: 1.5em;
}
.site-footer__social-links a img{
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(100);
}
html[dir=rtl] .wpcf7-form{
    direction: rtl;
}
.wpcf7-form p{
    margin-top: 2.5em;
    display: flex;
    gap: 0.25em;
    position: relative;
}
html[dir=rtl] .wpcf7-form input[type="email"]{
    direction: rtl;
}
.wpcf7-form input[type="email"]{
    width: 100%;
    padding: 0.5em 1em;
    border: none;
    border-radius: 1em;
    font-family: var(--font-secondary);
    letter-spacing: 0.05em;
    font-size: 0.85em;
    background: #1e1e1e;
    color: var(--color-text);
}
.wpcf7-form input[type="submit"]{
    display: inline-block;
    text-decoration: none;
    background: none;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 0.25em 0.75em;
    border-radius: 1em;
    font-family: var(--font-secondary);
    letter-spacing: 0.05em;
    font-size: 0.85em;
}
.wpcf7-spinner{
    position: absolute;
    right: -20px;
    top: 7px;
}
/*
.site-footer__subscribe-form{
    margin-top: 2.5em;
    display: flex;
    gap: 0.25em;
}
.site-footer__subscribe-input{
    width: 100%;
    padding: 0.5em 1em;
    border: none;
    border-radius: 1em;
    font-family: var(--font-secondary);
    letter-spacing: 0.05em;
    font-size: 0.85em;
    background: #1e1e1e;
    color: var(--color-text);
}
 */
.site-footer__whatsapp{
    margin-top: 2.5em;
}
.site-footer__whatsapp-button{
    margin-top: 1em;
    display: block;
    text-align: center;
}
.credits{
    border-top: 3px solid var(--color-bg);
    padding-top: calc(3 * var(--gap));
    padding-bottom: calc(3 * var(--gap));
    /*background: url("assets/backgrounds/BG-04-50.jpg?v=2") no-repeat center center/cover;*/
    line-height: 1.5;
}
.credits__title{
    font-size: 3em;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}
.credits_3_columns_text{
    text-align: center;
    column-count: 3;
    column-gap: 2em;
    margin: calc(3 * var(--gap)) 0;
}
.credits_3_columns_text p{
    margin-bottom: 0.5em;
    break-inside: avoid;
}
.credits__bottom_title{
    display: flex;
    align-items: end;
    font-size: 1.35em;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    direction: ltr;
}
.credits__bottom_title::before,
.credits__bottom_title::after{
    content: "";
    display: inline-block;
    width: 5em;
    height: 5em;
    background: url("assets/images/B-Layers.svg") no-repeat center center/contain;
}
.credits__support{
    direction: ltr;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    align-items: center;
}
.credits__support_logos{
    display: flex;
    gap: 1em;
}
.credits__support_logos img{
    width: 100%;
    height: auto;
}
.credits__support_text{
    font-family: var(--font-secondary);
    font-size: 0.85em;
}
.homepage-content {
    padding-top: calc(2 * var(--gap));
    padding-bottom: calc(2 * var(--gap));
    /*background: url("assets/backgrounds/BG-04-50.jpg?v=2") no-repeat center center/cover;*/
    line-height: 1.5;
    border-top: solid 4px var(--color-bg);
}
.homepage-content p{
    padding-inline-end: 25%;
}
.homepage-content a.button{
    margin-top: 1.5em;
    background: #f5f1e9;
    color: #af0004;
    border: none;
}
.homepage-content a.button:hover{
    color: var(--color-text);
    background: var(--color-bg);
}
/* ─── Featured block ─────────────────────────────────────────────────────── */

.featured {
    /*background: url("assets/backgrounds/BG-01-50.jpg?v=2") no-repeat center center/cover;*/
    padding: calc(2 * var(--gap)) 0;
    border-top: solid 4px var(--color-bg);
}
.featured__title{
    font-size: 2.5em;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1em;
}
.featured__grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));*/
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}
.featured-card__link {
    background: var(--color-bg);
    border: 3px solid var(--color-bg);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: min-content auto min-content;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.featured-card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.half-grid .featured-card:nth-child(1),
.half-grid .featured-card:nth-child(4){
    grid-column: span 2;
}
.half-grid .featured-card:nth-child(1) .featured-card__thumb,
.half-grid .featured-card:nth-child(4) .featured-card__thumb{
    aspect-ratio: 6 / 2.14;
}

.featured-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.featured-card__link:hover{
    border-color: #ef4535;
    background: #ef4535;
}
.featured-card__link:hover .featured-card__thumb img {
    transform: scale(1.04);
}

.featured-card__body {
    padding: 0.75em 1em 1em;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.featured-card__title {
    font-size: 1.1em;
    line-height: 1.2;
}

.featured-card__subtitle {
    font-size: 0.85em;
    opacity: .75;
    line-height: 1.3;
}

.featured-card__date {
    margin-top: 0.25em;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.8em;
    opacity: .75;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.featured-card__footer{
    display: flex;
    gap: 2em;
    padding: 0 1em 1em;
    align-items: end;
    justify-content: space-between;
}
.featured-card__date-range{
    font-size: 0.9em;
    white-space: nowrap;
}
/* ─── Tags ──────────────────────────────────────────────── */

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5em;
}

.featured-card .tag-list {
    margin-top: 0;
}

.tag-list__item{
    display: inline-block;
    text-decoration: none;
    background: none;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.15em 0.5em;
    font-family: var(--font-secondary);
    letter-spacing: 0.05em;
    font-size: 0.63em;
}
@media (prefers-reduced-motion: reduce){
    .runner__inner{
        animation: none;
    }
}
html[lang=ar] *{
    letter-spacing: 0!important;
}
/*
.tagged-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.tagged-list__type {
    font-family: var(--font-secondary);
    font-size: 0.75em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: .6;
}
 */