/* Guitar Bcn — pàgina El Festival (fitxa d'edició). Figma 41:1860 (2027) i 41:2480 (2026), 1440 px.
   Mesures del disseny a 1440; per sota s'escalen amb l'ample (px / 1440 × 100vw) i al mòbil es reordenen.
   Colors: negre i blanc trencats i els dos de l'edició (--gtfe-c1, --gtfe-c2: guitar-edicio-pagina.php). */

.gtfe-pag {
	--gtfe-n: #1c1c1c;
	--gtfe-b: #f2efe9;
	--gtfe-font: "Halyard Display", system-ui, sans-serif;
	--gtfe-ease: cubic-bezier(.22, .8, .2, 1);
	--gtfe-lat: var(--gt-lat, 90px);
}
/* Contenidors de la plantilla: a sang i sense espais (el ritme el porta cada bloc). */
.gtfe-pag .gtfe-c { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; padding: 0; }
.gtfe-pag .gtfe-c .elementor-widget-shortcode, .gtfe-pag .gtfe-c .elementor-shortcode { width: 100%; margin: 0; }
.gtfe-pag .gtfe-c:has(.elementor-shortcode:empty):not(:has(.gtfe-carrusel .swiper-slide)) { display: none; }   /* 30-nov: el carrusel de la galeria va al costat d'un shortcode buit */
.gtfe-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============ Franja «El Festival» ============ */
.gtfe-banner { position: relative; height: clamp(112px, 13.0556vw, 188px); overflow: hidden; background: var(--gtfe-n); }
.gtfe-banner .gtfe-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.gtfe-banner__vidre {
	position: absolute; inset: 0; z-index: 3; display: flex; align-items: center;
	padding: clamp(10px, 1.3194vw, 19px) var(--gtfe-lat) clamp(8px, 1.1111vw, 16px);
}
/* Sense fotos: el mosaic difuminat amb vidre del Figma (188 px) */
.gtfe-banner--mosaic .gtfe-banner__vidre {
	background: rgba(201, 201, 201, .31);
	-webkit-backdrop-filter: blur(12.4px); backdrop-filter: blur(12.4px);
	box-shadow: inset 0 0 0 1px rgba(201, 201, 201, .15);
}

/* Amb fotos del festival (23-nov, la clienta: «que es vegi que és la web del festival»): més alta perquè les fotos
   es llegeixin, el rètol a baix a l'esquerra sobre un vel fosc i les fotos passant soles (edicio.js).
   L'alçada és fixa en cada pantalla: les fotos van absolutes i no mouen res en carregar (CLS 0). */
.gtfe-banner--fotos { height: clamp(200px, 27.7778vw, 460px); height: clamp(200px, min(27.7778vw, 58svh), 460px); }
.gtfe-banner__foto { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 1.6s ease; }
.gtfe-banner__foto.is-on { opacity: 1; }
.gtfe-banner__foto.is-dalt { z-index: 2; }
.gtfe-banner--fotos .gtfe-banner__img { transform: scale(1.04); transform-origin: 50% 50%; backface-visibility: hidden; }
/* el moviment de càmera: un apropament lent, cada foto cap a un costat */
.gtfe-banner__foto.is-on .gtfe-banner__img { animation: gtfe-pla 11s linear both; }
.gtfe-banner__foto:nth-child(2n) { --gtfe-kx: 1.6%; --gtfe-ky: .8%; }
.gtfe-banner__foto:nth-child(3n) { --gtfe-kx: -1.2%; --gtfe-ky: 1.4%; }
@keyframes gtfe-pla {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to   { transform: scale(1.13) translate3d(var(--gtfe-kx, -1.6%), var(--gtfe-ky, -1%), 0); }
}
.gtfe-banner.is-pausa .gtfe-banner__img { animation-play-state: paused; }
.gtfe-banner--fotos .gtfe-banner__vidre {
	align-items: flex-end; padding: 0 var(--gtfe-lat) clamp(26px, 3.3333vw, 48px);
	background:
		linear-gradient(180deg, rgba(28, 28, 28, 0) 25%, rgba(28, 28, 28, .66) 100%),
		linear-gradient(90deg, rgba(28, 28, 28, .5) 0%, rgba(28, 28, 28, 0) 62%);
}
.gtfe-banner--fotos .gtfe-banner__tit { text-shadow: 0 2px 28px rgba(28, 28, 28, .45); }
/* botó d'aturar el passi (WCAG 2.2.2): a baix a la dreta, a l'altura del rètol */
.gtfe-banner .gtfe-banner__pausa {
	--gtbtn-bg: rgba(28, 28, 28, .45);
	position: absolute; z-index: 4; right: var(--gtfe-lat); bottom: clamp(26px, 3.3333vw, 48px); width: 44px;
}
.gtfe-banner__ico { width: 11px; height: 13px; flex: none; }
.gtfe-banner__ico--mou { display: none; margin-left: 2px; }
.gtfe-banner__pausa[aria-pressed="true"] .gtfe-banner__ico--pausa { display: none; }
.gtfe-banner__pausa[aria-pressed="true"] .gtfe-banner__ico--mou { display: block; }
/* amb fotos grans a dalt, menys aire fins al titular (el Figma en deixava 284 sota la franja de 188) */
.gtfe-pag:has(.gtfe-banner--fotos) .gtfe-cap { padding-top: clamp(56px, 10.4167vw, 150px); }
.gtfe-banner .gtfe-banner__tit {
	margin: 0; color: var(--gtfe-b); font-family: var(--gtfe-font); font-weight: 500;
	font-size: clamp(44px, 6.25vw, 90px); line-height: .8889; letter-spacing: 0; white-space: nowrap;
}
.gtfe-banner__t { position: relative; display: inline-block; }
/* El garabat de la home ([gt_garabat tipus="ovalo"]), a la mida i el gruix del disseny: 481 × 81 a 53,52 px. */
.gtfe-banner .gtgarabat { position: absolute; left: -.4111em; top: -.0333em; width: 5.3475em; height: .9em; color: var(--gtfe-b); pointer-events: none; }
.gtfe-banner .gtgarabat svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gtfe-banner .gtgarabat path { stroke-width: 4.85; }

/* ============ Capçalera de l'edició: titular, selector, franja, text i píxels ============ */
.gtfe-cap {
	position: relative; background: var(--gtfe-n); color: var(--gtfe-b); font-family: var(--gtfe-font);
	padding: clamp(64px, 19.7222vw, 284px) 0 clamp(56px, 9.375vw, 135px);
}
.gtfe-cap__fila { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 0 var(--gtfe-lat); }
.gtfe-cap .gtfe-cap__tit {
	flex: 0 1 auto; max-width: 886px; width: 61.5278vw; margin: 0; padding: 0;
	color: var(--gtfe-b); font-family: var(--gtfe-font); font-weight: 500; font-style: normal;
	font-size: clamp(40px, 6.25vw, 90px); line-height: .8889; letter-spacing: 0; text-transform: uppercase;
	overflow-wrap: break-word;
}
.gtfe-cap .gtfe-cap__franja {
	/* Disseny: 47 px d'alt amb línia de 26 i 11 + 10 de coixí. Aquí línia de 32 i 8 + 7: una línia queda
	   idèntica i, si el titular en fa dues, no es trepitgen. */
	position: relative; margin: -4px 0 0; padding: 8px var(--gtfe-lat) 7px calc(var(--gtfe-lat) - 1px);
	background: var(--gtfe-c1, #c2899d); color: var(--gtfe-b);
	font-family: var(--gtfe-font); font-weight: 500; font-size: clamp(18px, 2.0833vw, 30px); line-height: 1.0667; letter-spacing: 0;
}
.gtfe-cap__franja span { display: block; }
.gtfe-cap__cos { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(32px, 7.0833vw, 102px); margin-top: clamp(40px, 4.6528vw, 67px); padding-left: calc(var(--gtfe-lat) + 2px); }
.gtfe-cap .gtfe-cap__text {
	flex: 0 1 760px; min-width: 0; max-width: 760px;
	/* 30-nov (Júlia/Javi: «la letra se ve gigante»): el Figma era per a poc text i n'hi ha bastant. De 30 a 24 px a 1440,
	   amb més interlineat perquè es llegeixi com a text i no com a titular. */
	font-family: var(--gtfe-font); font-weight: 400; font-size: clamp(18px, 1.6667vw, 24px); line-height: 1.3; letter-spacing: 0; color: var(--gtfe-b);
}
.gtfe-cap .gtfe-cap__text p { margin: 0 0 .85em; padding: 0; font: inherit; color: inherit; }
.gtfe-cap .gtfe-cap__text p:last-child { margin-bottom: 0; }
.gtfe-cap .gtfe-cap__text a { color: inherit; text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.gtfe-cap .gtfe-cap__text strong, .gtfe-cap .gtfe-cap__text b { font-weight: 500; }

/* Píxels (Figma «Group 48», 440 × 142), a tocar de la vora dreta. */
.gtfe-px { position: relative; flex: none; width: clamp(200px, 30.5556vw, 440px); aspect-ratio: 440 / 142; }
.gtfe-px i { position: absolute; display: block; }
.gtfe-px .gtfe-px--1 { background: var(--gtfe-c1, #c2899d); }
.gtfe-px .gtfe-px--2 { background: var(--gtfe-c2, #3a6251); }
.gtfe-px .gtfe-px--b { background: var(--gtfe-b); }

/* ============ Selector d'edició (270 × 39) ============ */
.gtfe-tria { position: relative; flex: none; width: 270px; font-family: var(--gtfe-font); }
/* El botó del desplegable és un nav M del sistema de botons (botons.css): alçada, contorn, lletra i hover;
   ple mentre és obert. Aquí només el que és seu: sense el triangle del <summary> i la fletxa. */
.gtfe-tria__boto::-webkit-details-marker { display: none; }
.gtfe-tria__boto::marker { content: ""; }
.gtfe-tria--sola .gtfe-tria__boto { pointer-events: none; }   /* una sola edició: només el rètol */
.gtfe-tria__fl { flex: none; width: 14.47px; height: 9.16px; margin-right: -.74px; transition: transform .3s var(--gtfe-ease); }
.gtfe-tria[open] .gtfe-tria__fl { transform: rotate(180deg); }

.gtfe-tria__llista {
	position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; width: max(100%, 330px); box-sizing: border-box;
	max-height: min(424px, 62vh); overflow-y: auto; overscroll-behavior: contain;
	padding: 8px; border: 2px solid var(--gtfe-b); border-radius: 20px; background: var(--gtfe-n);
	scrollbar-width: thin; scrollbar-color: rgba(242, 239, 233, .45) transparent;
}
.gtfe-tria[open] .gtfe-tria__llista { animation: gtfe-obre .2s var(--gtfe-ease); }
@keyframes gtfe-obre { from { opacity: 0; transform: translateY(-6px); } }
.gtfe-tria__llista ul { list-style: none; margin: 0; padding: 0; }
.gtfe-tria__llista li { margin: 0; padding: 0; }
.gtfe-tria .gtfe-tria__op {
	display: flex; align-items: center; gap: 14px; box-sizing: border-box; min-height: 44px; padding: 6px 14px; border-radius: 12px;
	color: var(--gtfe-b); text-decoration: none; transition: background-color .15s, color .15s;
}
.gtfe-tria__any { flex: none; font-weight: 500; font-size: 15px; line-height: 17px; font-variant-numeric: tabular-nums; }
.gtfe-tria__nom { min-width: 0; font-weight: 500; font-size: 11px; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; opacity: .62; }
.gtfe-tria .gtfe-tria__op.is-ara { background: rgba(242, 239, 233, .12); }
.gtfe-tria .gtfe-tria__op:hover, .gtfe-tria .gtfe-tria__op:focus-visible { background: var(--gtfe-b); color: var(--gtfe-n); outline: none; }
.gtfe-tria .gtfe-tria__op:hover .gtfe-tria__nom, .gtfe-tria .gtfe-tria__op:focus-visible .gtfe-tria__nom { opacity: .75; }

/* ============ Vídeo (1258 × 658) i foto a sang (1440 × 399) ============ */
.gtfe-video { background: var(--gtfe-n); padding: 0 var(--gtfe-lat) clamp(56px, 6.9444vw, 100px) calc(var(--gtfe-lat) + 2px); }
.gtfe-video .gtfe-video__marc { aspect-ratio: 1258 / 658; background: var(--gtfe-n); }
.gtfe-video .gtfe-video__marc::after { display: none; }
.gtfe-video .gtv__img { object-position: center; }
/* El botó rodó del disseny (79 px). El Figma el tenia a 429 px de dalt; Javi el vol al centre de la foto (24-nov). */
.gtfe-video .gtfe-video__play {
	left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: clamp(56px, 5.4861vw, 79px); height: clamp(56px, 5.4861vw, 79px); min-height: 0;
	margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--gtfe-b);
	display: block; overflow: visible; transition: transform .35s var(--gtfe-ease);
}
.gtfe-video .gtfe-video__play::before { display: none; }
.gtfe-video .gtfe-video__play svg { display: block; width: 100%; height: 100%; }
.gtfe-video .gtv.is-clicable:hover .gtfe-video__play { transform: translate(-50%, -50%) scale(1.06); color: var(--gtfe-b); }
.gtfe-video .gtfe-video__play:focus-visible { outline: 2px solid var(--gtfe-b); outline-offset: 4px; }

.gtfe-foto { position: relative; height: clamp(220px, 27.7083vw, 560px); overflow: hidden; background: var(--gtfe-n); }
.gtfe-foto .gtfe-foto__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ============ Galeria de l'edició: tira de fotos de vora a vora ([guitar_ed_galeria]) ============ */
.gtfe-gal { background: var(--gtfe-n); color: var(--gtfe-b); font-family: var(--gtfe-font); padding: 0 0 clamp(56px, 6.9444vw, 100px); }
.gtfe-gal__cap {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	margin: 0 var(--gtfe-lat) 0 calc(var(--gtfe-lat) + 2px); padding: 24px 0 32px; border-top: 1px solid var(--gtfe-b);
}
.gtfe-gal .gtfe-gal__tit {
	margin: 0; padding: 0; color: var(--gtfe-b); font-family: var(--gtfe-font); font-weight: 500;
	font-size: clamp(22px, 2.0833vw, 30px); line-height: 1.0667; letter-spacing: 0; text-transform: none;
}
.gtfe-gal__n { color: var(--gtfe-c1, #c2899d); }
.gtfe-gal__ctl { display: flex; gap: 12px; flex: none; }
.gtfe-gal .gtfe-gal__nav { width: 64px; }
.gtfe-gal__track {
	display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-padding-inline: calc(var(--gtfe-lat) + 2px) var(--gtfe-lat);
	padding: 0 var(--gtfe-lat) 0 calc(var(--gtfe-lat) + 2px);
	scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-x pan-y;
}
.gtfe-gal__track::-webkit-scrollbar { display: none; }
.gtfe-gal__track.is-drag { cursor: grabbing; }
.gtfe-gal__track:focus-visible { outline: 2px solid var(--gtfe-b); outline-offset: 4px; }
.gtfe-gal__foto {
	position: relative; flex: none; margin: 0; overflow: hidden; scroll-snap-align: start;
	height: clamp(220px, 30.5556vw, 440px); aspect-ratio: 3 / 2; background: rgba(242, 239, 233, .06);
}
.gtfe-gal .gtfe-gal__img {
	display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none;
	transition: transform 1s var(--gtfe-ease);
}
@media (hover: hover) { .gtfe-gal__foto:hover .gtfe-gal__img { transform: scale(1.03); } }

/* ============ Filet abans del peu (Figma «Group 29», 1440 × 48) ============ */
.gtfe-sep { position: relative; height: 48px; background: var(--gtfe-n); }
.gtfe-sep::before { content: ""; position: absolute; left: 0; right: 0; top: 23.5px; height: 1px; background: var(--gtfe-b); }

/* ============ Concerts de l'edició i cartell ([guitar_ed_historic], guitar-arxiu.php) ============
   24-nov: les targetes de l'agenda (.gtcs__card, agenda.css) dins d'un .gtcs sense data-gtcs. Aquí només el que
   canvia: fons fosc, columnes i quantes se'n veuen abans de «Veure tots els concerts» (edicio.js posa is-plegat).
   Títol a tot l'ample; a sota, les targetes a l'esquerra i el cartell (edicions passades) a la dreta. */
.gthist {
	display: grid; grid-template-columns: minmax(0, 1fr) 270px; column-gap: clamp(32px, 7.0833vw, 102px); align-items: start;
	padding: 0 var(--gtfe-lat) clamp(56px, 6.9444vw, 100px) calc(var(--gtfe-lat) + 2px);
	background: var(--gtfe-n); color: var(--gtfe-b); font-family: var(--gtfe-font); scroll-margin-top: calc(var(--gt-cap-h, 96px) + 16px);
}
.gthist [hidden] { display: none !important; }   /* el botó: botons.css li posa display i guanyaria a [hidden] */
.gthist--sense-cartell { grid-template-columns: minmax(0, 1fr); }
.gthist .gthist__tit {
	grid-column: 1 / -1; margin: 0 0 32px; padding: 24px 0 0; border-top: 1px solid var(--gtfe-b);
	color: var(--gtfe-b); font-family: var(--gtfe-font); font-weight: 500; font-size: clamp(22px, 2.0833vw, 30px); line-height: 1.0667; letter-spacing: 0; text-transform: none;
}
/* només cartell (sense cap concert): sol a la columna dreta, amb el filet a dalt com el títol de les altres */
.gthist--nomes-cartell::before { content: ""; grid-column: 1 / -1; height: 0; margin-bottom: 32px; border-top: 1px solid var(--gtfe-b); }
.gthist--nomes-cartell .gthist__cartell { grid-column: 2; }
.gthist__concerts { min-width: 0; }
/* agenda.css: .gtcs crema amb text negre; aquí sobre el negre de la pàgina */
.gthist .gthist__gtcs { background: transparent; color: var(--gtfe-b); }
.gthist .gthist__graella { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Dins d'Elementor, «.elementor img { height: auto }» (0,1,1) guanyava a .gtcs__img i la foto no omplia el quadrat.
   Foto que no carrega: ni icona trencada ni text, el fons de la targeta (l'onerror ja la treu). */
.gthist .gtcs .gtcs__img { width: 100%; height: 100%; max-width: none; border-radius: 0; color: transparent; }
.gthist.is-plegat .gthist__graella > .gtcs__card:nth-child(n+10) { display: none; }   /* 3 columnes: 9 */
.gthist .gthist__tots { margin-top: 40px; }
.gthist__cartell { margin: 0; position: sticky; top: calc(var(--gt-cap-h, 96px) + 24px); }
.gthist__cartell a { display: block; }
.gthist__cartell a:focus-visible { outline: 2px solid var(--gtfe-b); outline-offset: 4px; }
.gthist .gthist__img { display: block; width: auto; max-width: 100%; height: auto; }
/* escriptori ample sense cartell (la vigent): 4 columnes, com a l'agenda (8 a la vista) */
@media (min-width: 1280px) {
	.gthist--sense-cartell .gthist__graella { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gthist--sense-cartell.is-plegat .gthist__graella > .gtcs__card:nth-child(9) { display: none; }
}
/* escriptori estret: 2 columnes al costat del cartell (6); sense cartell, 3 (9) */
@media (min-width: 1024px) and (max-width: 1279px) {
	.gthist:not(.gthist--sense-cartell) .gthist__graella { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gthist.is-plegat:not(.gthist--sense-cartell) .gthist__graella > .gtcs__card:nth-child(n+7) { display: none; }
}
/* tauleta: una sola columna (títol, cartell, targetes) i les targetes a 2 (6) */
@media (max-width: 1023px) {
	.gthist, .gthist--nomes-cartell { grid-template-columns: minmax(0, 1fr); }
	/* l'aire de sota amb padding: Elementor posa «margin: 0» a les figure amb pes (0,4,1) */
	.gthist__cartell { position: static; order: -1; max-width: 270px; padding-bottom: 40px; }
	.gthist .gthist__tit { order: -2; }
	.gthist--nomes-cartell .gthist__cartell { grid-column: auto; padding-bottom: 0; }
	.gthist--nomes-cartell::before { order: -2; }
	.gthist .gthist__graella { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gthist.is-plegat .gthist__graella > .gtcs__card:nth-child(n+7) { display: none; }
}

/* ============ Pantalles mitjanes ============ */
@media (max-width: 1024px) {
	.gtfe-cap__fila { flex-direction: column; gap: 28px; }
	.gtfe-cap .gtfe-cap__tit { width: auto; max-width: 15em; }
	.gtfe-cap .gtfe-cap__franja { margin-top: 28px; padding-top: 10px; padding-bottom: 10px; line-height: 1.15; }
	.gtfe-tria__llista { right: auto; left: 0; width: min(330px, calc(100vw - 2 * var(--gtfe-lat))); }
	.gtfe-cap .gtfe-cap__text { line-height: 1.3; }
	.gtfe-cap .gtfe-cap__text p { margin-bottom: .9em; }
}

/* ============ Mòbil ============ */
@media (max-width: 767px) {
	.gtfe-banner__vidre { padding-top: 6px; padding-bottom: 4px; }
	.gtfe-cap { padding-top: 56px; }
	.gtfe-cap .gtfe-cap__tit { font-size: clamp(34px, 10.8vw, 44px); line-height: .95; }
	.gtfe-cap .gtfe-cap__franja { padding: 11px var(--gtfe-lat) 10px; font-size: 20px; line-height: 1.15; }
	.gtfe-cap__cos { flex-direction: column; align-items: stretch; gap: 40px; padding: 0 var(--gtfe-lat); }
	.gtfe-cap .gtfe-cap__text { flex: none; font-size: 18px; line-height: 1.45; }
	.gtfe-px { align-self: flex-end; width: min(62vw, 260px); margin-right: calc(-1 * var(--gtfe-lat)); }
	.gtfe-video { padding: 0 var(--gtfe-lat) 56px; }
	.gthist { padding: 0 var(--gtfe-lat) 56px; }
	.gthist .gthist__tit { margin-bottom: 24px; padding-top: 20px; }
	.gthist__cartell { max-width: 220px; padding-bottom: 32px; }
	.gthist--nomes-cartell .gthist__cartell { padding-bottom: 0; }
	.gtfe-tria__nom { font-size: 12px; }
	/* galeria: una foto i un tros de la següent, que es vegi que llisca; ajust per foto */
	.gtfe-gal__cap { margin: 0 var(--gtfe-lat); padding: 20px 0 24px; }
	/* al mòbil la tira es passa amb el dit (es veu el tros de la foto següent): sense fletxes */
	.gtfe-gal__ctl { display: none; }
	.gtfe-gal__track { padding: 0 var(--gtfe-lat); scroll-padding-inline: var(--gtfe-lat); }
	.gtfe-gal__foto { height: auto; width: calc(100vw - 2 * var(--gtfe-lat) - 28px); }
	.gtfe-banner--fotos .gtfe-banner__vidre { padding-bottom: 22px; }
	.gtfe-banner .gtfe-banner__pausa { bottom: 22px; }
}
/* mòbil: una targeta per fila (foto 4:3 d'agenda.css) i 4 a la vista; el botó a tot l'ample */
@media (max-width: 639px) {
	.gthist .gthist__graella { grid-template-columns: minmax(0, 1fr); }
	.gthist.is-plegat .gthist__graella > .gtcs__card:nth-child(n+5) { display: none; }
	.gthist .gthist__tots { width: 100%; margin-top: 32px; }
}
/* mòbil dret: la franja de fotos, prou alta perquè s'hi vegi alguna cosa */
@media (max-width: 767px) and (orientation: portrait) {
	.gtfe-banner--fotos { height: clamp(220px, 64vw, 300px); }
}
/* mòbil ajagut: poca alçada; que el titular es vegi sense haver de baixar gaire */
@media (max-height: 500px) and (orientation: landscape) {
	.gtfe-banner--fotos { height: clamp(180px, 52svh, 240px); }
	.gtfe-pag:has(.gtfe-banner--fotos) .gtfe-cap { padding-top: 48px; }
	.gtfe-gal__foto { height: min(62svh, 300px); }
}

@media (prefers-reduced-motion: reduce) {
	.gtfe-tria__boto, .gtfe-tria__boto::before, .gtfe-tria__fl, .gtfe-video__play, .gtfe-gal__img { transition: none !important; }
	.gtfe-tria[open] .gtfe-tria__llista { animation: none; }
	/* sense pase ni moviment: la primera foto, quieta */
	.gtfe-banner__foto { transition: none; }
	.gtfe-banner__foto.is-on .gtfe-banner__img { animation: none; }
}
/* la tira cap sencera a la pantalla: sense fletxes */
.gtfe-gal.sense-scroll .gtfe-gal__ctl { visibility: hidden; }

/* ============ Galeria: cada foto obre el lightbox (edicio.js) ============ */
.gtfe-gal__obre { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; cursor: zoom-in; }
.gtfe-gal__track.is-drag .gtfe-gal__obre { cursor: grabbing; }
.gtfe-gal__obre:focus-visible { outline: 2px solid var(--gtfe-b, #f2efe9); outline-offset: -6px; }

.gtlb { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #161616; color: #f2efe9; font-family: var(--gtfe-font, "Halyard Display", sans-serif); }
.gtlb::backdrop { background: rgba(20, 20, 20, .5); }
.gtlb[open] { display: block; animation: gtlb-in .25s ease; }
@keyframes gtlb-in { from { opacity: 0; } to { opacity: 1; } }
.gtlb__marc { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing: border-box; padding: clamp(72px, 9vh, 96px) clamp(104px, 9vw, 140px); touch-action: pan-y; }
.gtlb .gtlb__img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; transition: opacity .25s ease; }
.gtlb .gtlb__img.is-carrega { opacity: 0; }
.gtlb .gtlb__tanca { position: absolute; top: 20px; right: 24px; width: 64px; min-width: 64px; padding: 0; color: #f2efe9; }
.gtlb .gtlb__tanca svg { width: 14px; height: 14px; }
.gtlb .gtlb__nav { position: absolute; top: 50%; width: 64px; margin-top: -22px; color: #f2efe9; }
.gtlb .gtlb__nav--ant { left: 24px; }
.gtlb .gtlb__nav--seg { right: 24px; }
.gtlb .gtlb__nav[hidden] { display: none; }
html.gt-bloq-lb, html.gt-bloq-lb.lenis { overflow: hidden !important; }
@media (max-width: 767px) {
	.gtlb__marc { padding: 72px 0 92px; }
	.gtlb .gtlb__tanca { top: 14px; right: 16px; }
	.gtlb .gtlb__nav { top: auto; bottom: 24px; margin-top: 0; }
	.gtlb .gtlb__nav--ant { left: 16px; }
	.gtlb .gtlb__nav--seg { right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .gtlb[open] { animation: none; } .gtlb .gtlb__img { transition: none; } }

/* 24-nov (Javi): la foto de l'edició va just sota la franja «El Festival» i el titular ve darrere amb poc aire
   (abans: 284 px buits sota la franja i la foto a baix de tot, després del text). */
.gtfe-pag .gtfe-cap.gtfe-cap--amb-foto { padding-top: clamp(40px, 4.1667vw, 64px); }

/* Feedback d'Anna (25-nov), en prova (body.gt-anna): el nom del festival i la franja del lema, separats */
body.gt-anna .gtfe-cap .gtfe-cap__franja { margin-top: clamp(24px, 2.8vw, 40px); }

/* Galeria a dalt, en lloc de la foto sola (27-nov): sense el títol a la vista (la franja «El Festival» és just a sobre),
   les fletxes a la dreta, i la tira enganxada a la franja com ho anava la foto */
.gtfe-gal--portada { padding: clamp(20px, 2.4vw, 32px) 0 clamp(40px, 4.8vw, 70px); }
.gtfe-gal--portada .gtfe-gal__tit { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gtfe-gal--portada .gtfe-gal__cap { justify-content: flex-end; margin-bottom: clamp(14px, 1.6vw, 22px); }
/* la tira, enganxada a la franja com la foto; les fletxes a sota, a la dreta, sense el filet de capçalera */
.gtfe-gal--portada { display: flex; flex-direction: column; padding-top: 0; }
.gtfe-gal--portada .gtfe-gal__cap { order: 2; margin: clamp(14px, 1.6vw, 22px) var(--gtfe-lat) 0 calc(var(--gtfe-lat) + 2px); padding-top: 0; padding-bottom: 0; border: 0; min-height: 0; }

/* 27-nov (Javi): els concerts de l'edició amb aire entre targetes, com «També et recomanem» a la fitxa de concert */
body.gt-anna .gthist .gthist__graella { gap: clamp(16px, 2vw, 28px); }

/* ============ Galeria = carrusel d'imatges d'Elementor (30-nov) ============
   L'estil del carrusel és compartit (home.css, .gt-carrusel): el mateix mòdul a El Festival i a Escenaris. Aquí, l'aire de sota. */
.gtfe-carrusel { margin-bottom: clamp(40px, 4.8vw, 70px); }
