/* Unterseite /live/: Galerien aller Auftritte (inc/live.php). Fotos in buendigen Reihen, Hoehe je Reihe gleich. */
.ct-live-page { background: var(--c-live); }
html:has(.ct-live-page) { scroll-behavior: smooth; }

/* Kopf: neuestes Foto gross hinter dem Titel, laeuft nach unten ins Dunkel aus */
.ct-gal__head {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: end;
	min-height: min(82svh, 820px);
	padding: calc(var(--bar) + 64px) var(--m) clamp(48px, 6vw, 88px);
	overflow: hidden;
}
.ct-gal__bg {
	position: absolute;
	inset: -6% 0 0;
	z-index: -2;
	width: 100%;
	height: 112%;
	object-fit: cover;
	filter: saturate(.7) brightness(.6);
	transform: translate3d(0, var(--py, 0px), 0) scale(1.06);
}
.ct-gal__head::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgb(7 16 18 / .7) 0%, rgb(7 16 18 / 0) 30%, rgb(7 16 18 / .35) 60%, var(--c-live) 100%);
}
.ct-gal__kicker { font-size: var(--step-small); font-weight: 500; color: var(--bone-soft); }
.ct-gal__kicker a { text-decoration: none; }
.ct-gal__kicker a:hover { text-decoration: underline; text-underline-offset: 5px; }
.ct-gal__title {
	margin: .16em 0 0 -.04em;
	font-size: clamp(88px, 17vw, 280px);
	font-weight: 900;
	letter-spacing: -.055em;
	line-height: .8;
}
.single-ct_auftritt .ct-gal__title { font-size: clamp(56px, 10vw, 168px); }
.ct-gal__count { margin-top: 24px; font-size: var(--step-lead); color: var(--bone-soft); }
.ct-gal__index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.ct-gal__index a {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	min-height: 48px;
	align-content: center;
	padding: 12px 20px;
	border: 2px solid rgb(237 238 234 / .35);
	border-radius: 999px;
	background: rgb(7 16 18 / .55);
	font-weight: 500;
	text-decoration: none;
	transition: border-color .2s, background-color .2s, color .2s;
}
.ct-gal__index a span { font-size: var(--step-small); color: var(--muted-dark); transition: color .2s; }
.ct-gal__index a:hover { border-color: var(--bone); background: var(--bone); color: var(--ink-dark); }
.ct-gal__index a:hover span { color: var(--ink-dark); }
/* Seite /logbuch/ (Bestaetigung Newsletter, inc/newsletter.php): nur der Kopf, bildschirmhoch */
.ct-logbuch .ct-gal__head { box-sizing: border-box; min-height: 100svh; padding-bottom: clamp(40px, 5vw, 72px); }
.ct-logbuch__links a { align-items: center; }
.ct-logbuch .ct-gal__title { font-size: clamp(60px, 10vw, 168px); }
.ct-logbuch__text { max-width: 34em; color: var(--bone); }

.ct-gal__empty { padding: 0 var(--m) 160px; font-size: var(--step-lead); color: var(--bone-soft); }

/* Ein Auftritt: Angaben links (bleiben stehen), Fotos rechts */
.ct-gig {
	display: grid;
	grid-template-columns: minmax(220px, 3fr) 9fr;
	gap: clamp(24px, 4vw, 64px);
	padding: clamp(56px, 8vw, 128px) var(--m);
	border-top: 1px solid rgb(237 238 234 / .12);
	scroll-margin-top: var(--bar);
}
.ct-gal__head + .ct-gig { border-top: 0; padding-top: 16px; }
.ct-gig__head { position: sticky; top: calc(var(--bar) + 32px); align-self: start; display: grid; gap: 10px; }
.ct-gig__nr {
	margin-bottom: 8px;
	font-size: clamp(64px, 7vw, 120px);
	font-weight: 900;
	letter-spacing: -.05em;
	line-height: .8;
	color: transparent;
	-webkit-text-stroke: 1.5px rgb(237 238 234 / .4);
}
.ct-gig__date { font-weight: 500; color: var(--bone-soft); }
.ct-gig__title { font-size: clamp(32px, 3.2vw, 54px); font-weight: 900; letter-spacing: -.035em; line-height: .95; text-wrap: balance; }
.ct-gig__title a { text-decoration: none; }
.ct-gig__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ct-gig__place { color: var(--bone-soft); }
.ct-gig__text { max-width: 40ch; color: var(--bone-soft); }
.ct-gig__text p + p { margin-top: .8em; }
.ct-gig__n { margin-top: 6px; font-size: var(--step-small); color: var(--muted-dark); }

/* Buendige Reihen: jedes Foto waechst im Verhaeltnis seiner Breite (--r = Breite/Hoehe) */
.ct-shots { --h: clamp(170px, 14.5vw, 240px); display: flex; flex-wrap: wrap; gap: 10px; }
.ct-shots::after { content: ""; flex-grow: 999; }
.ct-shot { position: relative; flex: var(--r) 1 calc(var(--r) * var(--h)); aspect-ratio: var(--r); background: #0b1214; overflow: hidden; }
.ct-shot__link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.ct-shot__img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.88); transition: transform .9s var(--ease), filter .4s; }
.ct-shot__link::after { content: ""; position: absolute; inset: 0; border: 2px solid rgb(237 238 234 / 0); transition: border-color .3s, inset .3s var(--ease); pointer-events: none; }
.ct-shot__link:hover .ct-shot__img { transform: scale(1.05); filter: brightness(1.05); }
.ct-shot__link:hover::after { inset: 10px; border-color: rgb(237 238 234 / .7); }
.ct-shot__link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* Einblenden beim Scrollen (live.js setzt is-anim und is-in) */
.ct-gal.is-anim .ct-shot { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease) calc(var(--i) * 70ms), transform .9s var(--ease) calc(var(--i) * 70ms); }
.ct-gal.is-anim .ct-shot.is-in { opacity: 1; transform: none; }

/* Grossansicht: Bild blendet beim Wechsel weich ueber */
.ct-gal .ct-lightbox__img { transition: opacity .25s; }
.ct-gal .ct-lightbox__img.is-loading { opacity: 0; }

@media (max-width: 860px) {
	.ct-gal__head { min-height: 68svh; padding-top: calc(var(--bar) + 40px); }
	.ct-gal__count { font-size: var(--step-body); }
	.ct-gig { grid-template-columns: 1fr; gap: 24px; }
	.ct-gig__head { position: static; }
	.ct-gig__nr { font-size: 56px; }
	.ct-shots { --h: 112px; gap: 6px; }
	.ct-shot__link:hover::after { inset: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.ct-shot__img, .ct-shot__link::after { transition: none; }
	.ct-shot__link:hover .ct-shot__img { transform: none; }
	.ct-gal__bg { transform: scale(1.06); }
}
