/* ============================================
   SEMINARIUM GALLERY & TIMELINE STYLES
   
   Ten plik zawiera style dla:
   - Timeline seminariów (v3)
   - Galeria zdjęć i modal
   - Karty seminariów
   - Nawigacja po latach
   
   Zmienne CSS są importowane z variables.css
   ============================================ */

/* Prevent horizontal scroll globally for seminarium section */
body:has(#seminarium),
html:has(#seminarium) {
	overflow-x: hidden;
	max-width: 100vw;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.seminarium-lang-switcher {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	z-index: 100;
}

.seminarium-lang-btn {
	padding: 0.25rem 0.75rem;
	text-decoration: none;
	color: #555;
	font-weight: 500;
	font-size: 0.9rem;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.seminarium-lang-btn:hover {
	background: rgba(0, 0, 0, 0.05);
	color: #000;
}

.seminarium-lang-btn.active {
	background: #2e7d32;
	color: #fff;
}

.seminarium-lang-divider {
	color: #ccc;
}

.seminarium-v3__header {
	position: relative;
}

.seminarium-gallery {
	margin-top: 0;
	text-align: center;
}

.seminarium-gallery-title {
	margin-top: 0;
	margin-bottom: 8px;
}

.seminarium-gallery-cover-link {
	display: inline-block;
}

.seminarium-gallery-cover {
	display: block;
	max-width: 380px;
	width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 0 auto;
}


body.seminarium-gallery-modal-open {
	overflow: hidden;
}

.seminarium-gallery-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 10000;
}

.seminarium-gallery-modal.is-open {
	display: block;
}

.seminarium-gallery-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
}

.seminarium-gallery-modal-content {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 18px 18px 14px;
}

.seminarium-gallery-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 34px;
	font-family: Arial, sans-serif;
	line-height: 1;
	padding: 0;
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
}

.seminarium-gallery-close::before {
	content: '×';
	display: block;
	transform: translateY(0px);
}

.seminarium-gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 28px;
	/* make a square control and center content */
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	padding: 0;
	border-radius: 12px;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: transform 120ms ease, box-shadow 120ms ease;
}

.seminarium-gallery-nav-prev {
	left: 10px;
}

.seminarium-gallery-nav-next {
	right: 10px;
}

/* remove focus outline and persistent selection look */
.seminarium-gallery-nav:focus,
.seminarium-gallery-nav:active {
	outline: none;
	box-shadow: none;
}

.seminarium-gallery-nav:active {
	transform: translateY(-48%) scale(0.98);
}

/* Ensure arrows are perfectly centered and remove persistent focus styling */
.seminarium-gallery-nav {
	line-height: 1;
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	touch-action: manipulation;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.seminarium-gallery-nav::-moz-focus-inner { border: 0; padding: 0; }

.seminarium-gallery-nav:focus,
.seminarium-gallery-nav:active {
	outline: none !important;
	box-shadow: none !important;
}

.seminarium-gallery-nav:focus,
.seminarium-gallery-nav:focus-visible,
.seminarium-gallery-nav:active {
	background: rgba(0, 0, 0, 0.35) !important;
	color: #fff !important;
}

/* On small screens keep the same vertical translate so active scale doesn't shift position */
@media (max-width: 600px) {
	.seminarium-gallery-nav {
		width: 64px;
		height: 64px;
		font-size: 32px;
		line-height: 1;
	}
	.seminarium-gallery-nav:active {
		transform: translateY(-50%) scale(0.98) !important;
	}
}

.seminarium-gallery-modal-image {
	flex: 1;
	max-width: 100%;
	max-height: calc(100vh - 170px);
	object-fit: contain;
	margin: 36px auto 10px;
}

.seminarium-gallery-modal-thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 10px 6px 6px;
	justify-content: flex-start;
	max-width: 1200px;
	margin: 0 auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
	cursor: grab;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	width: 100%;
}

.seminarium-gallery-modal-thumbs::-webkit-scrollbar { display: none; }

.seminarium-gallery-thumb-btn {
	border: 2px solid transparent;
	background: transparent;
	padding: 0;
	border-radius: 6px; /* match img radius */
	overflow: hidden; /* ensure border wraps image */
	display: inline-block;
	cursor: pointer;
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.seminarium-gallery-thumb-btn.is-active {
	border-color: #00693E;
	box-shadow: 0 8px 20px rgba(0, 105, 62, 0.12);
	transform: translateY(-2px);
}

.seminarium-gallery-thumb-btn img {
	width: 110px;
	height: 78px;
	object-fit: cover;
	object-position: center;
	border-radius: 6px;
	display: block;
	background: transparent;
}

@media screen and (max-width: 37.5em) {
	.seminarium-gallery-thumb-btn img {
		width: 80px;
		height: 56px;
	}
	.seminarium-gallery-modal-thumbs {
		gap: 8px;
		padding: 8px 4px 4px;
		justify-content: flex-start;
	}
	.seminarium-gallery-modal-image {
		max-height: calc(100vh - 150px);
	}
}

/* -----------------------------
   Overrides: improve wrapping for
   file hints (match gallery behavior)
   ----------------------------- */
.seminarium-v3-file__label,
.seminarium-v3-files__hint {
	font-size: 12px;
	text-align: center;
	line-height: 1.2;
	max-width: none;
	overflow: visible;
	text-overflow: clip;
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.seminarium-v3-files__top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
	gap: 12px;
}

.seminarium-v3-files__title {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-weight: 700;
	font-size: 14px;
	margin: 0;
	text-align: left;
	flex: 0 0 auto;
}

.seminarium-v3-files__hint {
	font-size: 13px;
	color: var(--muted);
	opacity: 1;
	transition: opacity 180ms ease;
	text-align: right;
	flex: 1 1 50%;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.25;
}

/* =============================
   Seminarium V3 (per-event cards)
   ============================= */

/* Override Materialize container for seminarium section */
#seminarium .container,
#seminarium {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	overflow-x: hidden !important;
}

/* Override Materialize row inside seminarium */
#seminarium .row {
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 0 !important;
}

/* Override Materialize col inside seminarium */
#seminarium .col {
	padding: 0 !important;
}

.seminarium-v3 {
	/* Use global CSS variables from variables.css */
	--text: var(--seminarium-text, #111827);
	--muted: var(--seminarium-muted, #6B7280);
	--line: var(--seminarium-line, #E5E7EB);
	--card: var(--seminarium-card, #FFFFFF);
	--radius: var(--seminarium-radius, 18px);
	--shadow: var(--seminarium-shadow, 0 10px 30px rgba(17, 24, 39, 0.08));
	--shadow-hover: var(--seminarium-shadow-hover, 0 16px 45px rgba(17, 24, 39, 0.12));

	color: var(--text);
	padding: 18px 16px 34px;
	font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	max-width: 100%;
	width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
	margin: 0;
}

.seminarium-v3__header {
	margin: 10px 0 18px;
}

.seminarium-v3__title {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-size: clamp(28px, 3vw, 40px);
	margin: 0 0 8px;
}

.seminarium-v3__lead {
	margin: 0 auto;
	max-width: 75ch;
	color: var(--muted);
	line-height: 1.65;
}

/* Year Navigation - Current Implementation */
.seminarium-v3-yearnav {
	margin: 24px 0 18px;
	padding: 10px 16px;
	overflow-x: auto;
	overflow-y: hidden;
	display: flex;
	justify-content: center;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 105, 62, 0.35) transparent;
}

.seminarium-v3-yearnav::-webkit-scrollbar {
	height: 6px;
}

.seminarium-v3-yearnav::-webkit-scrollbar-track {
	background: transparent;
}

.seminarium-v3-yearnav::-webkit-scrollbar-thumb {
	background: rgba(0, 105, 62, 0.35);
	border-radius: 999px;
}

.seminarium-v3-yearnav::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 105, 62, 0.5);
}

.seminarium-v3-yearnav ul {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: inline-flex;
	gap: 10px;
	align-items: center;
	flex-wrap: nowrap;
	width: auto;
	min-width: 100%;
	max-width: 720px;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.seminarium-v3-yearnav li {
	flex-shrink: 0;
}

.seminarium-v3-yearnav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	height: 40px;
	padding: 0 18px;
	border-radius: 8px;
	background: #00897B;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 14px;
	line-height: 1;
	border: none;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	box-shadow: 0 2px 8px rgba(0, 137, 123, 0.25);
}

.seminarium-v3-yearnav a:hover,
.seminarium-v3-yearnav a:focus {
	background: #00796B;
	box-shadow: 0 4px 12px rgba(0, 137, 123, 0.35);
	outline: none;
}

.seminarium-v3-yearnav a:active {
	transform: scale(0.96);
}

.seminarium-v3-yearnav a.is-active {
	background: #004D40;
	color: #fff;
	box-shadow: 0 4px 16px rgba(0, 77, 64, 0.4);
}

@media screen and (max-width: 32.5em) {
	.seminarium-v3-yearnav {
		justify-content: flex-start;
		padding: 8px 12px;
	}

	.seminarium-v3-yearnav ul {
		gap: 8px;
		padding: 0;
		width: max-content;
		min-width: 100%;
		max-width: none;
		justify-content: flex-start;
		flex-wrap: nowrap;
		scroll-snap-type: x proximity;
	}

	.seminarium-v3-yearnav li {
		scroll-snap-align: start;
	}

	.seminarium-v3-yearnav a {
		min-width: 60px;
		height: 44px;
		padding: 0 16px;
		font-size: 14px;
	}
}

/* Year Navigation (BEM) */
.seminarium-v3-year-nav {
	margin: 24px 0 18px;
	padding: 10px 16px;
	overflow-x: auto;
	overflow-y: hidden;
	display: flex;
	justify-content: center;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 105, 62, 0.35) transparent;
}

.seminarium-v3-year-nav::-webkit-scrollbar {
	height: 6px;
}

.seminarium-v3-year-nav::-webkit-scrollbar-track {
	background: transparent;
}

.seminarium-v3-year-nav::-webkit-scrollbar-thumb {
	background: rgba(0, 105, 62, 0.35);
	border-radius: 999px;
}

.seminarium-v3-year-nav::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 105, 62, 0.5);
}

.seminarium-v3-year-nav__list {
	list-style: none;
	margin: 0 auto;
	padding: 6px 10px;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	flex-wrap: nowrap;
	width: 100%;
	min-width: 100%;
	max-width: 720px;
	justify-content: space-evenly;
	background: transparent;
	border: 1px solid rgba(17, 24, 39, 0.18);
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.seminarium-v3-year-nav__item {
	flex-shrink: 0;
}

.seminarium-v3-year-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	color: #1a5c38;
	text-decoration: none;
	font-weight: 700;
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 14px;
	line-height: 1;
	border: 1px solid transparent;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.seminarium-v3-year-nav__link:hover,
.seminarium-v3-year-nav__link:focus {
	background: #e8f5e9;
	color: #155c37;
	box-shadow: 0 6px 16px rgba(0, 105, 62, 0.18);
	outline: none;
}

.seminarium-v3-year-nav__link:active {
	transform: scale(0.98);
}

/* Active year - controlled by JS */
.seminarium-v3-year-nav__link.is-active {
	background: #1a5c38;
	color: #fff;
	box-shadow: 0 10px 22px rgba(0, 105, 62, 0.28);
}

@media screen and (max-width: 32.5em) {
	.seminarium-v3-year-nav {
		justify-content: flex-start;
		padding: 8px 12px;
	}

	.seminarium-v3-year-nav__list {
		gap: 6px;
		padding: 6px 8px;
		width: max-content;
		min-width: 100%;
		max-width: none;
		justify-content: space-evenly;
		flex-wrap: nowrap;
		scroll-snap-type: x proximity;
	}

	.seminarium-v3-year-nav__item {
		scroll-snap-align: start;
	}

	.seminarium-v3-year-nav__link {
		min-width: 56px;
		height: 44px;
		padding: 0 14px;
		font-size: 13px;
	}
}

/* Timeline */
.seminarium-v3-timeline {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	position: relative;
	max-width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
}

.seminarium-v3-timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	background: linear-gradient(to bottom, rgba(0, 105, 62, 0.25), rgba(167, 25, 48, 0.25));
	transform: translateX(-50%);
}

.seminarium-v3-timeline__item {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 52px 1fr;
	column-gap: 22px;
	align-items: start;
	padding: 22px 0;
	min-width: 0;
	scroll-margin-top: 120px;
}

.seminarium-v3-timeline__marker {
	grid-column: 2;
	grid-row: 1;
	align-self: start;
	justify-self: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--agh-green, #00693E);
	border: 3px solid #fff;
	box-shadow: 0 0 0 4px rgba(0, 105, 62, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
	margin-top: 0;
	position: relative;
	z-index: 2;
	box-sizing: border-box;
}

.seminarium-v3-timeline__item:nth-child(odd) .seminarium-v3-card { grid-column: 1; grid-row: 1; justify-self: end; align-self: start; }
.seminarium-v3-timeline__item:nth-child(even) .seminarium-v3-card { grid-column: 3; grid-row: 1; justify-self: start; align-self: start; }

/* Year - Large background year display for desktop */
.seminarium-v3-timeline__year {
	position: absolute;
	top: 22px;
	font-weight: 800;
	font-size: clamp(32px, 5vw + 12px, 72px);
	line-height: 1;
	color: rgba(0, 0, 0, 0.12);
	z-index: 1;
	pointer-events: none;
	user-select: none;
	transform: translateY(calc(-50% + 8px));
}

.seminarium-v3-timeline__item:nth-child(odd) .seminarium-v3-timeline__year {
	left: calc(50% + 50px);
}

.seminarium-v3-timeline__item:nth-child(even) .seminarium-v3-timeline__year {
	right: calc(50% + 50px);
}

/* Card */
.seminarium-v3-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: none;
	padding: 18px;
	display: grid;
	gap: 14px;
	width: 100%;
	max-width: 480px;
	min-width: 0;
	box-sizing: border-box;
	overflow: hidden;
	position: relative;
	z-index: 0;
}

.seminarium-v3-card:hover {
	box-shadow: var(--shadow);
}

/* International seminar badge */
.seminarium-v3-card--international::before {
	content: '🌍';
	position: absolute;
	top: 6px;
	right: 10px;
	font-size: 28px;
	z-index: 10;
	pointer-events: none;
}

.seminarium-v3-card__title--international {
	color: #1565C0;
	padding-right: 45px;
}

.seminarium-v3-card__header {
	display: grid;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.seminarium-v3-card__title {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.25;
	margin: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: none;
}

.seminarium-v3-card__subtitle {
	margin: 0;
	color: var(--muted);
	line-height: 1.55;
	word-wrap: break-word;
	overflow-wrap: normal;
	hyphens: none;
}

.seminarium-v3-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	color: #374151;
	font-size: 14px;
}

.seminarium-v3-meta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.seminarium-v3-meta i {
	color: var(--agh-red);
}

/* Materials (two columns) */
.seminarium-v3-materials {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.seminarium-v3-material {
	display: grid;
	grid-template-rows: 140px auto;
	gap: 10px;
	padding: 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #F9FAFB;
	text-decoration: none;
	color: inherit;
	transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.seminarium-v3-material:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	border-color: rgba(0, 105, 62, 0.30);
}

.seminarium-v3-material__thumb {
	width: 100%;
	height: 100%;
	background: #000000;
	box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.seminarium-v3-material__thumb img,
.seminarium-v3-material__thumb canvas {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* Styl dla miniatur (rzeczywiste podglądy plików) */
.seminarium-v3-material__image {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Cover dla miniatur JPG */
	display: block;
}

/* Styl dla ikon typów plików (fallback) */
.seminarium-v3-material__icon {
	width: 60%;
	height: 60%;
	object-fit: contain; /* Contain dla ikon SVG */
	opacity: 0.85;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.seminarium-v3-material__label {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-weight: 600;
	font-size: 13px;
	color: #1F2937;
}

/* Per-card gallery (single cover -> opens modal with thumbs strip) */
.seminarium-v3-gallery {
	border-top: 1px solid var(--line);
	padding-top: 14px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.seminarium-v3-gallery__inner {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.seminarium-v3-gallery__top {
	display: flex;
	align-items: baseline;
	justify-content: flex-start;
	gap: 10px;
	margin-bottom: 10px;
}

.seminarium-v3-gallery__title {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-weight: 700;
	font-size: 14px;
	margin: 0;
	text-align: left;
}

.seminarium-v3-gallery__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.seminarium-v3-gallery__hint {
	font-size: 13px;
	color: var(--muted);
	opacity: 1;
	transition: opacity 180ms ease;
	text-align: right;
}

/* Hint is now always visible, no hover needed */

.seminarium-v3-gallery__cover {
	display: block;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: transparent;
	text-decoration: none;
	color: inherit;
	transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	position: relative;
}

.seminarium-v3-gallery__cover:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	border-color: rgba(0, 105, 62, 0.30);
}

.seminarium-v3-gallery__cover:active {
	transform: scale(0.98);
}

.seminarium-v3-gallery__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	background: transparent;
	border-radius: 12px;
	display: block;
}

/* Ensure gallery cover label is positioned as overlay */
.seminarium-v3-gallery__coverLabel {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 6px 16px;
	border-radius: 20px;
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-weight: 600;
	font-size: 13px;
}

.seminarium-v3-empty {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

/* Participants section */
.seminarium-v3-participants {
	border-top: 1px solid var(--line);
	padding-top: 14px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

.seminarium-v3-participants__title {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: #1F2937;
	margin: 0;
}

.seminarium-v3-participants__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	background: #00695c;
	color: white;
	text-decoration: none;
	border-radius: var(--radius);
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-weight: 600;
	font-size: 15px;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.seminarium-v3-participants__button:hover {
	background: #00897b;
	transform: translateY(-1px);
}

.seminarium-v3-participants__count {
	margin: 0;
	font-size: 14px;
	color: #374151;
	line-height: 1.5;
}

.seminarium-v3-participants__count strong {
	color: var(--agh-red);
	font-weight: 700;
	font-size: 14px;
}

/* Files strip — match gallery size and behavior */
.seminarium-v3-files {
	border-top: 1px solid var(--line);
	padding-top: 14px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	overflow: hidden;
}

.seminarium-v3-files__inner {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.seminarium-v3-files__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.seminarium-v3-files__title {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-weight: 700;
	font-size: 14px;
	margin: 0;
	text-align: left;
}

.seminarium-v3-files__hint {
	font-size: 13px;
	color: var(--muted);
	opacity: 1;
	transition: opacity 180ms ease;
	text-align: right;
}

.seminarium-v3-files__row {
	display: flex;
	flex-wrap: nowrap;
	gap: 1rem;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 8px 0 12px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #2e7d32 #e0e0e0;
}

.seminarium-v3-files__row::-webkit-scrollbar {
	height: 8px;
}

.seminarium-v3-files__row::-webkit-scrollbar-track {
	background: #e0e0e0;
	border-radius: 4px;
}

.seminarium-v3-files__row::-webkit-scrollbar-thumb {
	background: #2e7d32;
	border-radius: 4px;
}

.seminarium-v3-files__row::-webkit-scrollbar-thumb:hover {
	background: #1b5e20;
}

/* Ensure gallery cover and files section render at identical widths inside the card */
.seminarium-v3-card > .seminarium-v3-gallery__cover,
.seminarium-v3-card .seminarium-v3-gallery__cover {
	max-width: 100%;
	width: 100%; /* be responsive inside the card */
	box-sizing: border-box;
}

/* Inner container to align files content to gallery cover width */
.seminarium-v3-files__inner,
.seminarium-v3-gallery__inner {
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
}

/* Tablet breakpoint: adjust card and gallery widths */
@media screen and (max-width: 62em) {
	.seminarium-v3-card {
		max-width: 100%;
		padding: 16px;
	}
	
	.seminarium-v3-materials {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	
	.seminarium-v3-card__title {
		font-size: clamp(16px, 2.5vw, 18px);
	}
	
	.seminarium-v3-files__inner,
	.seminarium-v3-gallery__inner {
		max-width: 100%;
	}
}

@media screen and (max-width: 1400px) {
	.seminarium-v3-files__inner,
	.seminarium-v3-gallery__inner {
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
		margin: 0 auto;
	}
}

.seminarium-v3-file {
	flex: 0 0 auto;
	width: 110px; /* same as modal thumbs */
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
}

.seminarium-v3-file__thumb {
	width: 110px;
	height: 78px;
	border-radius: 8px;
	overflow: hidden;
	background: #F9FAFB;
	display: block;
}

.seminarium-v3-file__thumb img,
.seminarium-v3-file__thumb canvas {
	width: 100%;
	height: 100%;
	object-fit: cover; /* prevent white bars */
	display: block;
}

.seminarium-v3-file__label {
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    max-width: 110px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Ensure titles and subtitles wrap inside cards */
.seminarium-v2-card__title,
.seminarium-v3-card__title,
.seminarium-v2-card__subtitle,
.seminarium-v3-card__subtitle {
	white-space: normal !important;
	overflow-wrap: normal !important;
	word-break: normal !important;
	hyphens: none !important;
	overflow: visible !important;
	text-overflow: clip !important;
}

/* When using material-style cards inside the files horizontal strip */
.seminarium-v3-files__row .seminarium-v3-material {
	flex: 0 0 160px;
	width: 160px;
	display: grid;
	grid-template-rows: 110px auto;
	gap: 8px;
	padding: 10px;
	border-radius: 12px;
}
.seminarium-v3-files__row .seminarium-v3-material__thumb {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	overflow: hidden;
}
.seminarium-v3-files__row .seminarium-v3-material__label {
	font-size: 12px;
	max-width: 160px;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
	text-align: center;
	line-height: 1.3;
}

@media screen and (max-width: 32.5em) {
	.seminarium-v3-files { max-width: 100%; }
	.seminarium-v3-file { width: 90px; }
	.seminarium-v3-file__thumb { width: 90px; height: 64px; }
	.seminarium-gallery-thumb-btn img { width: 90px; height: 64px; }
}

/* RWD: timeline left, cards full width */
@media screen and (max-width: 87.5em) {
	.seminarium-v3-timeline::before {
		left: 18px;
		transform: translateX(-50%);
	}
	.seminarium-v3-timeline__item {
		grid-template-columns: 36px 1fr;
		grid-template-rows: auto auto;
		column-gap: 16px;
		row-gap: 0;
		max-width: 100%;
		overflow: hidden;
		box-sizing: border-box;
		padding: 20px 0 14px 0;
		scroll-margin-top: 180px;
	}
	.seminarium-v3-timeline__marker {
		grid-column: 1;
		grid-row: 1;
		width: 14px;
		height: 14px;
		margin: 0;
		justify-self: center;
		align-self: center;
		position: relative;
		left: 0;
		transform: none;
	}
	/* Year in single-column - same style as two-column (large, semi-transparent) */
	.seminarium-v3-timeline__year {
		position: static !important;
		transform: none !important;
		grid-column: 2;
		grid-row: 1;
		font-size: clamp(28px, 4vw + 10px, 48px);
		font-weight: 800;
		color: rgba(0, 0, 0, 0.12);
		margin-bottom: 10px;
		margin-left: 0;
		max-width: 100%;
		overflow: hidden;
		z-index: 1;
		pointer-events: auto;
		user-select: none;
		align-self: center;
	}
	/* Hide large background years on odd/even items since we show inline */
	.seminarium-v3-timeline__item:nth-child(odd) .seminarium-v3-timeline__year,
	.seminarium-v3-timeline__item:nth-child(even) .seminarium-v3-timeline__year {
		left: auto;
		transform: none;
	}
	.seminarium-v3-timeline__item:nth-child(odd) .seminarium-v3-card,
	.seminarium-v3-timeline__item:nth-child(even) .seminarium-v3-card {
		grid-column: 2;
		grid-row: 2;
		justify-self: stretch;
		max-width: 100%;
		width: 100%;
	}
}

/* Mobile: Stack materials vertically, reduce paddings, fluid typography */
@media screen and (max-width: 32.5em) {
	.seminarium-v3 {
		padding: 12px 12px 24px 12px;
		margin: 0;
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
		box-sizing: border-box;
	}
	
	#seminarium,
	#seminarium .container,
	#seminarium .row {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		overflow-x: hidden !important;
		box-sizing: border-box !important;
	}
	
	.seminarium-v3__title {
		font-size: clamp(22px, 6vw, 32px);
		padding: 0 8px;
	}
	
	.seminarium-v3-materials {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	
	.seminarium-v3-gallery__cover {
		grid-template-rows: 110px auto;
		max-width: 100%;
		cursor: pointer;
		touch-action: manipulation;
	}
	
	.seminarium-v3-card {
		padding: 12px;
		overflow: hidden;
		width: calc(100vw - 50px);
		max-width: calc(100vw - 50px);
		box-sizing: border-box;
		margin: 0;
	}
	
	/* Mobile adjustments for international badge */
	.seminarium-v3-card--international::before {
		top: 5px;
		right: 8px;
		font-size: 24px;
	}
	
	.seminarium-v3-card__header {
		min-width: 0;
		width: 100%;
		box-sizing: border-box;
		overflow: hidden;
	}
	
	.seminarium-v3-card--international .seminarium-v3-card__header {
		padding-right: 40px;
	}
	
	.seminarium-v3-card__title {
		font-size: clamp(14px, 4vw, 16px);
		line-height: 1.35;
		white-space: normal !important;
		overflow-wrap: normal !important;
		word-break: normal !important;
		hyphens: none;
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
		overflow: hidden;
		text-overflow: clip !important;
	}
	
	.seminarium-v3-card__title--international {
		padding-right: 40px;
	}
	
	.seminarium-v3-card__subtitle {
		font-size: clamp(12px, 3.5vw, 14px);
		line-height: 1.45;
		white-space: normal !important;
		overflow-wrap: normal !important;
		word-break: normal !important;
		hyphens: none;
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
		overflow: hidden;
		text-overflow: clip !important;
	}
	
	.seminarium-v3-card__meta {
		font-size: 12px;
		width: 100%;
		box-sizing: border-box;
	}
	
	.seminarium-v3-material {
		grid-template-rows: 140px auto;
		padding: 12px;
		box-sizing: border-box;
		overflow: hidden;
	}
	
	.seminarium-v3-material__label {
		font-size: 12px;
		line-height: 1.35;
		white-space: normal !important;
		overflow-wrap: break-word !important;
		word-break: break-word !important;
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
		overflow: hidden;
		text-overflow: clip !important;
	}
	
	.seminarium-v3-files__row {
		padding: 8px 4px 6px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 8px;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x;
	}
	
	.seminarium-v3-files__row .seminarium-v3-material {
		flex: 0 0 140px;
		width: 140px;
		scroll-snap-align: start;
		touch-action: manipulation;
		grid-template-rows: 100px auto;
	}
	
	.seminarium-v3-files__row .seminarium-v3-material__label {
		white-space: normal !important;
		overflow: hidden;
		text-overflow: clip !important;
		line-height: 1.3;
		max-width: 140px;
		box-sizing: border-box;
		min-height: 32px;
		font-size: 11px;
	}
	
	.js-seminarium-gallery-open {
		cursor: pointer;
		touch-action: manipulation;
	}
	
	/* Ensure timeline marker and line stay visible on mobile */
	.seminarium-v3-timeline {
		margin: 18px 0 0;
		padding: 0 0 0 0;
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
		box-sizing: border-box;
	}
	
	.seminarium-v3-timeline::before {
		left: 18px;
		transform: translateX(-50%);
		width: 3px;
	}
	
	.seminarium-v3-timeline__item {
		padding: 40px 0 14px 0;
		max-width: 100%;
		width: 100%;
		overflow-x: hidden;
		box-sizing: border-box;
		margin: 0;
		scroll-margin-top: 200px;
		grid-template-columns: 36px 1fr;
		column-gap: 12px;
	}
	
	.seminarium-v3-timeline__marker {
		width: 12px;
		height: 12px;
		border: 2px solid #fff;
		justify-self: center;
		box-shadow: 0 0 0 3px rgba(0, 105, 62, 0.2), 0 1px 3px rgba(0, 0, 0, 0.15);
	}
	
	.seminarium-v3-timeline__year {
		margin-left: 0 !important;
		padding-right: 8px;
	}
	
	.seminarium-v3-card {
		margin: 0;
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
	}
	
	.seminarium-v3-materials,
	.seminarium-v3-gallery,
	.seminarium-v3-files {
		max-width: 100%;
		width: 100%;
		overflow-x: hidden;
		box-sizing: border-box;
	}
	
	.seminarium-v3-gallery__inner {
		max-width: 100%;
		width: 100%;
		overflow: hidden;
	}
	
	.seminarium-v3-files__inner {
		max-width: 100%;
		width: 100%;
		overflow: hidden;
	}
	
	.seminarium-v3-card__header,
	.seminarium-v3-card__title,
	.seminarium-v3-card__subtitle {
		max-width: 100%;
		padding-right: 0;
	}
}

/* Extra small screens (320px and below) */
@media screen and (max-width: 20em) {
	.seminarium-v3 {
		padding: 8px 8px 20px 8px;
	}
	
	.seminarium-v3-timeline__item {
		grid-template-columns: 24px 1fr;
		column-gap: 8px;
	}
	
	.seminarium-v3-timeline::before {
		left: 12px;
		transform: translateX(-50%);
		width: 2px;
	}
	
	.seminarium-v3-timeline__marker {
		width: 10px;
		height: 10px;
		justify-self: center;
	}
	
	.seminarium-v3-card {
		padding: 10px;
		gap: 10px;
	}
	
	.seminarium-v3-card__title {
		font-size: 13px !important;
	}
	
	.seminarium-v3-card__subtitle {
		font-size: 11px !important;
	}
	
	.seminarium-v3-material {
		grid-template-rows: 100px auto;
		padding: 8px;
	}
	
	.seminarium-v3-gallery__cover {
		padding: 0;
	}
}