/* ==========================================================================
   Article media: single images + multi-image galleries inside .article-content
   Used on single-blog, single-investments, single-services pages.
   ========================================================================== */

.article-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 24px auto;
	border-radius: 16px;
	box-shadow: 0 6px 22px rgba(17, 17, 17, 0.08);
	background: #f4f4f4;
}

.article-content figure {
	margin: 24px auto;
}

.article-content figure img {
	margin: 0 auto;
}

.article-content figcaption {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #6b6b6b;
	text-align: center;
}

/* Galleries — unenhanced (fallback): simple stack with nice cards. */
.article-content .article-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 28px auto;
}

.article-content .article-gallery img {
	margin: 0;
}

/* Galleries — enhanced by article-media.js into a slider. */
.article-gallery--slider {
	position: relative;
	display: block;
	margin: 28px auto;
	border-radius: 18px;
	overflow: hidden;
	background: #f4f4f4;
	box-shadow: 0 6px 22px rgba(17, 17, 17, 0.08);
}

.article-gallery__viewport {
	width: 100%;
	overflow: hidden;
}

.article-gallery__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

.article-gallery__track::-webkit-scrollbar {
	display: none;
}

.article-gallery__slide {
	flex: 0 0 100%;
	min-width: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #111;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.article-gallery__slide img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	display: block;
}

/* Arrows */
.article-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
	transition: background-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.article-gallery__nav:hover {
	background: #ffffff;
	transform: translateY(-50%) scale(1.05);
}

.article-gallery__nav:disabled {
	opacity: 0;
	pointer-events: none;
}

.article-gallery__nav--prev {
	left: 12px;
}

.article-gallery__nav--next {
	right: 12px;
}

/* Dots */
.article-gallery__dots {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	padding: 6px 10px;
	background: rgba(17, 17, 17, 0.35);
	border-radius: 999px;
	z-index: 2;
}

.article-gallery__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.article-gallery__dot.is-active {
	background: #ffffff;
	transform: scale(1.25);
}

/* Counter "1 / 5" */
.article-gallery__counter {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 500;
	color: #ffffff;
	background: rgba(17, 17, 17, 0.55);
	border-radius: 999px;
	z-index: 2;
	pointer-events: none;
}

@media (max-width: 600px) {
	.article-content img {
		border-radius: 12px;
		margin: 18px auto;
	}

	.article-gallery--slider {
		border-radius: 12px;
		margin: 20px auto;
	}

	.article-gallery__nav {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}

	.article-gallery__nav--prev {
		left: 8px;
	}

	.article-gallery__nav--next {
		right: 8px;
	}
}
