/* ── Reset & Globals ───────────────────────────────── */

:root {
	--color-primary: #1a3a52;
	--color-text: #374151;
	--color-heading: #111827;
	--color-muted: #6b7280;
	--color-hover: #f9fafb;
	--hover-duration: 0.3s;
}

.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* ── Gallery ───────────────────────────────────────── */

.gallery-section .container {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gallery-viewport {
	overflow: hidden;
	width: 100%;
}

.gallery-container {
	display: flex;
	touch-action: pan-y;
}

.gallery-slide {
	flex: 0 0 100%;
	min-width: 0;
	position: relative;
}

.gallery-slide img {
	width: 100%;
	height: 66.6666666667vw; /* 600px; */
	max-height: 700px;
	object-fit: cover;
	display: block;
	cursor: zoom-in;
	-webkit-user-drag: none;
	user-select: none;
}

@media (min-width: 1141px) {
	.gallery-viewport {
		max-width: 2280px;
		margin-left: auto;
		margin-right: auto;
	}
	.gallery-slide {
		flex: 0 0 1140px;
		opacity: 0.4;
		transition: opacity 0.3s ease;
	}
	.gallery-slide.is-selected {
		opacity: 1;
	}
}

.gallery-controls {
	display: flex;
	flex-direction: column;
	gap: 24px;
	justify-content: center;
	align-items: center;
	max-width: 1140px;
	width: 100%;
	padding-block: 1.5rem;
}

.gallery-nav {
	display: flex;
	align-items: center;
	justify-content: center;
}

.counter {
	padding: 0.5rem 2rem;
	text-align: center;
	color: var(--color-text);
	display: flex;
	align-items: center;
	font-size: clamp(1.125rem, 0.7083rem + 1.1111vw, 1.5rem);
}

.gallery-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background-color: transparent;
	color: var(--color-text);
	cursor: pointer;
	transition:
		color var(--hover-duration),
		background-color var(--hover-duration);
}

.gallery-btn.action-btn {
	display: none;
}

@media (min-width: 768px) {
	.gallery-btn.action-btn {
		display: inline-flex;
	}
}

.action-btn {
	gap: 0.75rem;
	padding: 1rem 2rem;
	height: 54px;
	font-size: clamp(0.875rem, 0.7361rem + 0.3704vw, 1rem);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.nav-btn {
	padding: 1rem;
	font-size: clamp(0.875rem, 0.7361rem + 0.3704vw, 1rem);
}

.nav-btn:hover,
.action-btn:hover {
	color: var(--color-hover);
	background-color: var(--color-primary);
}

@media (min-width: 640px) {
	.gallery-controls {
		flex-direction: row;
		align-items: center;
	}
}
