.cs-post-slider,
.cs-post-slider *,
.cs-post-download,
.cs-post-download *,
.cs-inline-figure-grid,
.cs-inline-figure-grid * {
	box-sizing: border-box;
	font-family: "Balsamiq Sans", Arial, sans-serif;
}

.cs-post-slider {
	--cs-post-primary: #2a130d;
	--cs-post-border: rgba(42, 19, 13, 0.34);
	--cs-post-soft: #f8eee9;
	width: 100%;
	margin: 34px 0;
	color: var(--cs-post-primary);
}

.cs-post-slider__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.cs-post-slider__header h2 {
	margin: 0;
	color: var(--cs-post-primary);
	font-size: clamp(24px, 2.5vw, 34px);
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.cs-post-slider__controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.cs-post-slider__arrow {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1.5px solid var(--cs-post-primary);
	border-radius: 999px;
	background: #fff;
	color: var(--cs-post-primary);
	cursor: pointer;
	box-shadow: none;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cs-post-slider__arrow span {
	display: block;
	margin-top: -3px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.cs-post-slider__arrow:hover {
	background: var(--cs-post-primary);
	color: #fff;
	transform: translateY(-1px);
}

.cs-post-slider__arrow:disabled {
	cursor: default;
	opacity: 0.35;
	transform: none;
}

.cs-post-slider__viewport {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.cs-post-slider__viewport::-webkit-scrollbar {
	display: none;
}

.cs-post-slider__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(220px, calc((100% - 36px) / 3));
	gap: 18px;
	padding: 2px 2px 18px;
}

.cs-post-slide {
	margin: 0;
	padding: 16px;
	border: 1.5px solid var(--cs-post-border);
	border-radius: 18px;
	background: #fff;
	scroll-snap-align: start;
}

.cs-post-slide__button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.cs-post-slider__image {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: block;
	object-fit: contain;
	object-position: center;
	background: #fff;
	border-radius: 12px;
}

.cs-inline-figure-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 28px 0;
}

.cs-inline-figure-grid--double {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cs-inline-figure-grid--single {
	grid-template-columns: minmax(0, 1fr);
}

.cs-inline-figure-grid--single .cs-inline-figure {
	width: min(100%, 760px);
	margin: 0 auto;
}

.cs-inline-figure {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 14px;
	float: none !important;
	clear: both;
	width: 100%;
	height: auto !important;
	min-height: 0;
	margin: 0;
	padding: 16px 16px 18px;
	border: 1.5px solid var(--cs-post-border, rgba(42, 19, 13, 0.34));
	border-radius: 18px;
	background: #fff;
	overflow: visible;
}

.cs-inline-figure__image {
	flex: 0 0 auto;
	width: 100% !important;
	height: auto !important;
	max-height: 680px;
	display: block !important;
	object-fit: contain;
	object-position: center;
	background: #fff;
	border-radius: 12px;
}

.cs-inline-figure__caption {
	position: static !important;
	z-index: 1;
	flex: 0 0 auto;
	display: block !important;
	clear: both;
	margin: 0 !important;
	padding: 0 6px 2px;
	color: var(--cs-post-primary, #2a130d);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	background: #fff;
}

.cs-post-lightbox[hidden] {
	display: none !important;
}

.cs-post-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 24px;
}

.cs-post-lightbox__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(18, 10, 7, 0.84);
	cursor: zoom-out;
}

.cs-post-lightbox__dialog {
	position: relative;
	z-index: 1;
	width: min(92vw, 1100px);
	max-height: 88vh;
	padding: 16px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
}

.cs-post-lightbox__image {
	width: 100%;
	max-height: calc(88vh - 32px);
	display: block;
	object-fit: contain;
	background: #fff;
	border-radius: 14px;
}

.cs-post-lightbox__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 1.5px solid var(--cs-post-primary);
	border-radius: 999px;
	background: #fff;
	color: var(--cs-post-primary);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.cs-post-download {
	margin: 32px 0;
	text-align: center;
}

.cs-post-download__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 15px 28px;
	border-radius: 999px;
	background: #2a130d;
	color: #fff !important;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	text-decoration: none !important;
	transition: background 0.18s ease, transform 0.18s ease;
}

.cs-post-download__button:hover {
	background: #160905;
	color: #fff !important;
	transform: translateY(-1px);
}

@media (max-width: 767px) {
	.cs-post-slider {
		margin: 28px 0;
	}

	.cs-post-slider__header {
		align-items: flex-start;
	}

	.cs-post-slider__header h2 {
		font-size: 24px;
	}

	.cs-post-slider__arrow {
		width: 34px;
		height: 34px;
	}

	.cs-post-slider__track {
		grid-auto-columns: 78%;
		gap: 14px;
	}

	.cs-post-slide {
		padding: 12px;
		border-radius: 14px;
	}

	.cs-inline-figure-grid {
		grid-template-columns: 1fr;
		gap: 14px;
		margin: 22px 0;
	}

	.cs-inline-figure {
		padding: 12px;
		border-radius: 14px;
	}

	.cs-post-lightbox {
		padding: 14px;
	}

	.cs-post-lightbox__dialog {
		width: 100%;
		padding: 12px;
		border-radius: 16px;
	}
}
