﻿/* --- Slideshow Container --- */
.af-slideshow {
	position: relative;
	overflow: hidden;
}

.af-slides {
	position: relative;
}

/* --- Individual Slide --- */
.af-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	display: flex;
	flex-direction: column;
}

	.af-slide.is-active {
		opacity: 1;
		position: relative;
		z-index: 1;
	}

	.af-slide img {
		width: 100%;
		height: auto;
		display: block;
	}

	/* Hide captions */
	.af-slide figcaption {
		display: none;
	}

/* --- Reset button appearance inside slideshow --- */
.af-slideshow button,
.af-dots button {
	all: unset; /* removes all browser + theme default styles */
	box-sizing: border-box;
	cursor: pointer;
}

/* --- Prev / Next Buttons --- */
.af-prev,
.af-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid black;
	background: rgba(255, 255, 255, 0.7);
	color: black;
	font-size: 1.5rem;
	font-weight: bold;
	line-height: 36px;
	text-align: center;
	z-index: 3;
	transition: background 0.3s ease, transform 0.2s ease;
}

	.af-prev:hover,
	.af-next:hover {
		background: rgba(255, 255, 255, 1);
		transform: translateY(-50%) scale(1.1);
	}

.af-prev {
	left: 15px;
}

.af-next {
	right: 15px;
}

/* --- Dots Navigation --- */
.af-slideshow .af-dots {
	position: absolute;
	bottom: 30px; /* distance from bottom */
	right: 30px; /* distance from right edge */
	transform: none; /* disable centering transform */
	display: flex !important;
	justify-content: flex-end; /* align dots to right */
	gap: 6px;
	z-index: 3;
}

.af-slideshow .af-dots button {
	all: unset;
	display: inline-block;
	width: 14px !important;
	height: 14px !important;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 0 4px rgba(0,0,0,0.8); /* drop shadow instead of border */
	cursor: pointer;
	box-sizing: border-box;
	transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

	.af-slideshow .af-dots button:hover {
		background: rgba(255, 255, 255, 1);
		transform: scale(1.15);
		box-shadow: 0 0 6px rgba(0,0,0,0.9); /* slightly stronger shadow on hover */
	}

	.af-slideshow .af-dots button.is-active {
		background: white;
		box-shadow: 0 0 6px rgba(0,0,0,1);
	}

/* --- Reset figure defaults --- */
.af-slideshow,
.af-slideshow * {
	box-sizing: border-box;
}

	.af-slideshow figure {
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: column;
	}
