/* 3.3.0: festival edition, events, short-film collections (Uri's spec, Dec 2026).
   The theme's body font-size is 0, so every block here sets its own size.
   Grids flow from the reading side, so a partial last row sits on the right in Hebrew and on the left in English. */

.ufe { font-size: 16px; line-height: 1.5; color: #111; }
.ufe a { color: inherit; text-decoration: none; }
.ufe-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero (frame from the old festival page) */
.page-wrapper.festival-edition .head h2 { font-size: 20px; font-weight: bold; margin: 10px 0; }
.page-wrapper.festival-edition .head .excerpt p { font-size: 18px; margin: 6px 0; }
.page-wrapper.festival-edition .head .ufe-year { font-weight: bold; }
.page-wrapper.festival-edition .head .ufe-summary { margin-top: 18px; font-size: 17px; }
.page-wrapper.festival-edition .head .ufe-summary p { font-size: 17px; }
.page-wrapper.festival-edition .cover:not([style]) { height: 300px; background: #111; }
.page-wrapper.festival-edition .main.ufe-main { max-width: 1200px; padding: 0 20px 60px; box-sizing: border-box; }

/* Areas */
.ufe-area { margin: 0 0 70px; scroll-margin-top: 20px; }
.ufe-region { margin: 0 0 50px; scroll-margin-top: 20px; }
.ufe-area-title { margin-top: 30px; }
.ufe-region-title { margin: 40px auto 10px !important; }
.ufe-region-title p { font-size: 24px !important; }
.ufe-region-desc { text-align: center; font-size: 17px; max-width: 760px; margin: 0 auto 20px; }
.ufe-links { text-align: center; margin-top: 30px; font-size: 16px; }
.ufe-links .ufe-more { margin-top: 0; margin-bottom: 12px; }
.ufe-links .ufe-more a { font-weight: bold; font-size: 18px; }
.ufe-links .ufe-more a:hover, .ufe-links .ufe-back a:hover { color: crimson; }
.ufe-back a { font-size: 15px; text-decoration: underline !important; }
.ufe-back a::before { content: "\2191\00a0"; text-decoration: none; display: inline-block; }

/* 2. Quick navigation: 16:9, white bold text over an image dimmed by 40% */
.ufe-nav { margin-top: 10px; }
.ufe-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ufe-nav-tile { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; border: 1px solid #111; box-shadow: 3px 3px 0 #111; }
.ufe-nav-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .3s; }
.ufe-nav-img::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.ufe-nav-tile:hover .ufe-nav-img { transform: scale(1.04); }
.ufe-nav-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; color: #fff; font-weight: bold; font-size: 28px; line-height: 1.2; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }

/* 3. News: image tile with a thin frame, date and title under it (not on it) */
.ufe-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ufe-news-tile { display: block; text-align: start; }
.ufe-news-img { display: block; aspect-ratio: 16 / 9; background: #ddd center / cover no-repeat; border: 1px solid #111; }
.ufe-news-date { display: block; margin-top: 10px; font-size: 13px; color: crimson; font-weight: bold; }
.ufe-news-title { display: block; margin-top: 4px; font-size: 18px; font-weight: bold; line-height: 1.3; }
.ufe-news-tile:hover .ufe-news-title { color: crimson; }

/* 4. Film programme: 4 a row (2 on mobile), 3:2 image with a black bar on top, text under the image */
.ufe-program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ufe-program-tile { display: block; background: #fff; border: 1px solid #111; box-shadow: 3px 3px 0 #111; text-align: start; }
.ufe-program-img { display: block; aspect-ratio: 3 / 2; background: #111 center / cover no-repeat; border-top: 8px solid #111; }
.ufe-program-title { display: block; padding: 12px 14px 0; font-size: 19px; font-weight: bold; line-height: 1.25; }
.ufe-program-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 4px 14px 0; font-size: 14px; }
.ufe-program-tile::after { content: ""; display: block; height: 14px; }
.ufe-program-tile:hover .ufe-program-title { color: crimson; }

/* Cards (films, shorts, collections, events, editions): the film archive card */
.ufe-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 20px; }
.ufe-cards > a { display: block; }
.ufe .item { background: #fff; border: 1px solid #111; box-shadow: 3px 3px 0 #111; box-sizing: border-box; height: 100%; text-align: center; }
.ufe .item .poster { height: 200px; background: #111 center / cover no-repeat; }
.ufe .item .info { padding: 20px 24px 24px; }
.ufe .item .info h2 { font-size: 22px; font-weight: bold; line-height: 1.25; margin: 12px 0 6px; }
.ufe .item .info h2 .title-line { display: block; }
.ufe .item .info h2 .title-line-2 { font-size: 16px; font-weight: normal; }
.ufe .item .info h3.ufe-sub { font-size: 16px; font-weight: normal; margin: 4px 0 8px; }
.ufe .item .magazine-title { display: inline-block; padding: 3px 12px; color: #fff; background: crimson; font-weight: bold; font-size: 14px; margin: 0 3px 6px; }
.ufe .item .categories { margin: 6px 0 0; line-height: 1.2; }
.ufe .item .categories object { display: inline-block; }
.ufe .item .categories span { font-size: 12px; display: inline-block; color: #fff; background: #111; line-height: 1.8; padding: 0 6px; font-weight: bold; margin: 0 3px 5px; }
.ufe .item .categories a:hover span { background: crimson; }
.ufe .item .excerpt { font-size: 14px; margin-top: 10px; }
.ufe .item .read { margin-top: 14px; font-weight: bold; font-size: 14px; }
.ufe .item:hover .read { color: crimson; }
.ufe .ufe-when { color: crimson; font-weight: bold; font-size: 14px; margin: 6px 0; }
.ufe .ufe-role { font-size: 14px; }

/* Bio cards (existing festival design) inside the new areas */
.ufe-people .items-container { direction: inherit; }
.ufe-people .one_object_people .info h2 { font-size: 20px; font-weight: bold; margin: 12px 0 6px; }
.ufe-people .one_object_people .info h3 { font-size: 15px; margin: 2px 0; }
.ufe-people .one_object_people .info .excerpt { font-size: 14px; font-weight: normal; }
.ufe-team .festival_team .excerpt { display: none; }
.ufe-team .one_object_people .info { height: auto !important; min-height: 110px; }

/* 9. Articles: the articles list design (/articles/?fest=...) */
.ufe-article-list a { color: inherit; text-decoration: none; }
.ufe-article-list .article { display: flex; align-items: stretch; background: #fff; border: 1px solid #111; box-shadow: 3px 3px 0 #111; margin: 0 0 30px; min-height: 240px; overflow: hidden; text-align: start; }
.ufe-article-list .article > a:first-child { flex: 0 0 42%; display: block; }
.ufe-article-list .article .poster { height: 100%; min-height: 240px; background: #111 center / cover no-repeat; }
.ufe-article-list .article .info { flex: 1 1 auto; display: flex; flex-direction: column; padding: 24px 30px; box-sizing: border-box; }
.ufe-article-list .article .info .author { font-size: 14px; font-weight: bold; min-height: 16px; }
.ufe-article-list .article .info h2 { font-size: 24px; font-weight: bold; line-height: 1.25; margin: 10px 0; }
.ufe-article-list .article .info h3 { font-size: 16px; font-weight: normal; margin: 0 0 10px; }
.ufe-article-list .article .info h3 p { font-size: 16px; margin: 0; }
.ufe-article-list .article .info .read { margin-top: auto; font-weight: bold; font-size: 14px; }
.ufe-article-list .article .info .read:hover { color: crimson; }

/* List pages (all films of a section, events of an edition, collections, editions archive, guests) */
.ufe-archive, .ufe-list-page { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; box-sizing: border-box; }
.ufe-list-heading { font-size: 34px; font-weight: bold; text-align: center; margin: 10px 0 25px; }
.ufe-filter-row { text-align: center; margin: 0 0 12px; }
.ufe-filter-row a { display: inline-block; font-size: 13px; font-weight: bold; color: #fff !important; background: #111; padding: 2px 8px; margin: 0 3px 6px; }
.ufe-filter-row.ufe-filter-red a, .ufe-filter-row a.active, .ufe-filter-row a:hover { background: crimson; }
.ufe-speakers .festival_type_chunk { margin-top: 10px; }
.ufe-empty { text-align: center; font-size: 16px; }
.page-wrapper.ufe-speakers-page .main.posts h1 { font-size: 34px; text-align: center; }

/* Chips and buttons */
.ufe-chip-red { display: inline-block; padding: 3px 12px; color: #fff; background: crimson; font-weight: bold; font-size: 14px; }
.ufe-chips { margin: 8px 0; }
.ufe-chips span { display: inline-block; font-size: 13px; color: #fff; background: #111; line-height: 1.8; padding: 0 8px; font-weight: bold; margin: 0 3px 5px; }
.ufe-chips a:hover span { background: crimson; }
.ufe-chips-red span { background: crimson; font-size: 14px; padding: 2px 12px; }
.ufe-btn-red { display: inline-block; background: crimson; color: #fff !important; font-weight: bold; font-size: 17px; padding: 10px 26px; margin-top: 16px; border: 1px solid #111; box-shadow: 3px 3px 0 #111; }
.ufe-btn-red:hover { background: #111; }

/* Event page */
.ufe-event-page { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; box-sizing: border-box; }
.ufe-event-top { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 30px; }
.ufe-event-side { flex: 0 0 340px; text-align: center; }
.ufe-event-image { aspect-ratio: 3 / 2; background: #111 center / cover no-repeat; border: 1px solid #111; box-shadow: 3px 3px 0 #111; }
.ufe-event-head { flex: 1 1 auto; }
.ufe-event-head h1 { font-size: 38px; font-weight: bold; line-height: 1.15; margin: 10px 0 6px; }
.ufe-event-head h2.ufe-sub { font-size: 20px; font-weight: normal; margin: 0 0 14px; }
.ufe-details { font-size: 16px; margin: 10px 0 16px; }
.ufe-details div { margin: 2px 0; }
.ufe-rows { border-top: 2px solid #111; }
.ufe-row { padding: 10px 0; border-bottom: 1px solid #111; font-size: 16px; }
.ufe-row a { text-decoration: underline !important; }
.ufe-event-content { font-size: 18px; line-height: 1.7; margin: 10px 0 40px; }
.ufe-event-content p { font-size: 18px; }
.ufe-rows-block { border-top: 2px solid #111; margin-top: 30px; }
.ufe-rows-title { font-size: 22px; font-weight: bold; padding: 14px 0 6px; }
.ufe-row-card { display: flex; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid #111; }
.ufe-row-img { flex: 0 0 200px; aspect-ratio: 16 / 9; background: #ddd center / cover no-repeat; border: 1px solid #111; }
.ufe-row-poster { flex-basis: 110px; aspect-ratio: 2 / 3; }
.ufe-row-text { display: block; }
.ufe-row-kind { display: block; color: crimson; font-weight: bold; font-size: 14px; }
.ufe-row-title { display: block; font-size: 20px; font-weight: bold; line-height: 1.25; }
.ufe-row-title .title-line { display: block; }
.ufe-row-title .title-line-2 { font-size: 16px; font-weight: normal; }
.ufe-row-meta { display: block; font-size: 14px; margin-top: 2px; }
.ufe-row-card:hover .ufe-row-title { color: crimson; }

/* Collection page: details box based on the magazine issue box, no cover */
.ufe-collection-page { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; box-sizing: border-box; }
.ufe-box { max-width: 680px; margin: 10px auto 40px; background: #fff; border: 1px solid #111; box-shadow: 0 6px 0 #111; padding: 30px; text-align: center; box-sizing: border-box; }
.ufe-box h1 { font-size: 40px; font-weight: bold; line-height: 1.15; margin: 10px 0; }
.ufe-box h2.ufe-sub { font-size: 20px; font-weight: bold; margin: 0 0 10px; }
.ufe-box .ufe-stats { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0; }
.ufe-box .ufe-stats p { font-size: 17px; font-weight: bold; margin: 0; }
.ufe-box .ufe-stats .hyphen { width: 60px; height: 2px; background: #111; }
.ufe-box-text { font-size: 17px; line-height: 1.7; margin-top: 12px; }
.ufe-box-text p { font-size: 17px; }

/* Mobile */
@media screen and (max-width: 900px) {
	.ufe-cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }
	.ufe-program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 640px) {
	.page-wrapper.festival-edition .main.ufe-main { padding: 0 16px 40px; }
	.ufe-nav-grid, .ufe-news-grid { grid-template-columns: 1fr; gap: 16px; }
	.ufe-nav-title { font-size: 24px; }
	.ufe-program-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.ufe-program-title { font-size: 16px; padding: 8px 10px 0; }
	.ufe-program-desc { padding: 2px 10px 0; font-size: 13px; }
	.ufe-cards { grid-template-columns: 1fr; }
	.ufe .festival_type_chunk .items-container { grid-template-columns: 1fr !important; }
	.ufe-article-list .article { flex-direction: column; }
	.ufe-article-list .article > a:first-child { flex-basis: auto; }
	.ufe-article-list .article .poster { min-height: 200px; }
	.ufe-event-top { flex-direction: column; gap: 20px; }
	.ufe-event-side { flex-basis: auto; width: 100%; }
	.ufe-event-head h1, .ufe-box h1 { font-size: 30px; }
	.ufe-row-img { flex-basis: 120px; }
	.ufe-row-poster { flex-basis: 80px; }
	.ufe-list-heading { font-size: 26px; }
	.page-wrapper.festival-edition .cover { height: 260px; }
}

/* On list pages the theme's ".page-wrapper.peoples .item" card rules (fixed 320px text box, big padding, black chip) also match: undo them here */
.page-wrapper .ufe .item .info { height: auto !important; padding: 20px 24px 24px !important; display: block; width: auto; }
.page-wrapper .ufe .item .info h2 { font-size: 22px !important; margin: 12px 0 6px !important; }
.page-wrapper .ufe .item .poster { height: 200px; width: 100%; display: block; }
.page-wrapper .ufe .item .magazine-title { background: crimson !important; padding: 3px 12px !important; font-size: 14px !important; }
.page-wrapper .ufe .item .read { margin-top: 14px !important; }
