/* Fading slideshows for the former MetaSlider sliders (inc/slider.php).
   Spacing and type mirror the site's previous MetaSlider "Architekt" style. */

.vf-slider {
	margin-bottom: 20px;
}

.vf-slider__slides,
.vf-slider__captions {
	display: grid;
}

.vf-slider__slides {
	aspect-ratio: var(--vf-slider-ratio, 1.5);
}

.vf-slider__slide,
.vf-slider__caption {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.vf-slider__slide.is-active,
.vf-slider__caption.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s ease, visibility 0s;
}

/* Scoped under .vf-slider so blog-post image rules (e.g. .vf-post-content img margins) don't apply. */
.vf-slider .vf-slider__slide img {
	display: block;
	margin: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain; /* Portrait slides in a landscape slider stay whole instead of overflowing. */
}

.vf-slider__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 35px;
	margin-top: 15px;
}

.vf-slider__arrow {
	flex: none;
	width: 34px;
	height: 20px;
	padding: 0;
	border: 0;
	background: none;
	color: #000;
	opacity: 0.7;
	cursor: pointer;
	line-height: 0;
}

.vf-slider__arrow:hover,
.vf-slider__arrow:focus-visible {
	opacity: 1;
	background: none;
	color: #000;
}

.vf-slider__arrow svg {
	width: 34px;
	height: 12px;
}

.vf-slider__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vf-slider__dots li {
	margin: 0;
}

.vf-slider__dots button {
	padding: 0 0 3px;
	border: 0;
	border-bottom: 1px solid transparent;
	background: none;
	color: #3a3a3a;
	font-family: Inter, system-ui, sans-serif;
	font-size: 11px;
	line-height: 1.4;
	cursor: pointer;
}

.vf-slider__dots button:hover,
.vf-slider__dots button:focus-visible {
	background: none;
	color: #000;
}

.vf-slider__dots button.is-active {
	border-bottom-color: currentColor;
	color: #000;
}

.vf-slider__caption {
	padding: 16px 30px 20px 0;
	color: #3a3a3a;
	font-family: Inter, system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.4;
}

.vf-slider__caption > :last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.vf-slider__slide,
	.vf-slider__caption {
		transition: none;
	}
}
