/* Conferences slideshow – card carousel */

.conferences-slideshow {
	position: relative;
	max-width: 100%;
	margin: 1.5rem 0;
	overflow: hidden;
}

.conferences-slideshow-track {
	display: flex;
	gap: 1.5rem;
	scroll-snap-type: x mandatory;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 0.5rem 0 1rem;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.conferences-slideshow-track::-webkit-scrollbar {
	display: none;
}

.conferences-card {
	flex: 0 0 min(320px, 85vw);
	scroll-snap-align: start;
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease;
}

.conferences-card:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.conferences-card-poster {
	aspect-ratio: 16 / 10;
	background: gainsboro;
	overflow: hidden;
}

.conferences-card-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.conferences-card-poster-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, gainsboro 0%, lightgray 100%);
	color: dimgray;
	font-size: 0.9rem;
}

.conferences-card-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex-grow: 1;
	align-items: center;
	text-align: center;
}

.conferences-card-title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.35;
}

.conferences-card-meta {
	margin: 0;
	font-size: 0.9rem;
	color: dimgray;
}

.conferences-label {
	font-weight: 600;
	color: darkslategray;
}

.conferences-card-btn {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.5rem 1.5rem;
	background: dodgerblue;
	color: white !important;
	text-decoration: none;
	border-radius: 6px;
	font-size: 0.9rem;
	transition: background 0.2s ease;
	text-align: center;
}

.conferences-card-btn:hover {
	background: darkblue;
}

/* Prev/Next buttons */

.conferences-slideshow-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	font-size: 1.4rem;
	line-height: 1;
	color: darkslategray;
	z-index: 2;
	transition: background 0.2s, box-shadow 0.2s;
}

.conferences-slideshow-btn:hover {
	background: white;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.conferences-prev {
	left: 8px;
}

.conferences-next {
	right: 8px;
}

.conferences-empty {
	text-align: center;
	color: dimgray;
	padding: 2rem;
}
