/**
 * gallery_slider_module.css
 *
 * Styles for template-parts/modules/gallery_slider_module.php
 * Full-width image slider with bottom-overlay counter, caption, and nav arrows.
 */

/* ---------------------------------------------------------------
   Section
--------------------------------------------------------------- */
.gallery-slider-module {
	background-color: var(--white);
	padding: 40px 40px;
}

/* ---------------------------------------------------------------
   Optional header — displayed above the slider
--------------------------------------------------------------- */
.gallery-slider-module__header {
	margin-bottom: 24px;
}

.gallery-slider-module__header h2 {
	font-size: clamp(40px, 6vw, 64px);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--black);
	margin: 0px 0 35px;
}

/* ---------------------------------------------------------------
   Slider wrapper — position context for overlay UI
--------------------------------------------------------------- */
.gallery-slider {
	position: relative;
	overflow: hidden;
}

/* ---------------------------------------------------------------
   Track — stacked slides, only active is visible
--------------------------------------------------------------- */
.gallery-slider__track {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #111;
}

.gallery-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.gallery-slider__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.gallery-slider__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gallery-slider__placeholder {
	width: 100%;
	height: 100%;
	background-color: #222;
}

/* ---------------------------------------------------------------
   UI bar — overlaid at bottom of track
--------------------------------------------------------------- */
.gallery-slider__ui {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 50px 40px;
	background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
	pointer-events: none;
}

/* ---------------------------------------------------------------
   Counter + caption — bottom left
--------------------------------------------------------------- */
.gallery-slider__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gallery-slider__counter {
	font-size: 16px;
	font-weight: 500;
	color: var(--white);
	line-height: 1;
}

.gallery-slider__caption {
	font-size: 16px;
	color: var(--white);
	opacity: 1;
	line-height: 1.4;
	max-width: 480px;
}

/* ---------------------------------------------------------------
   Navigation arrows — bottom right
--------------------------------------------------------------- */
.gallery-slider__nav {
	display: flex;
	gap: 10px;
	align-items: center;
	pointer-events: all;
	position: relative;
  top: 8px;
}

.gallery-slider__prev,
.gallery-slider__next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1.5px solid var(--btn-grey);
	background-color: transparent;
	color: var(--btn-grey);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  cursor: pointer;
}

.gallery-slider__prev.is-active,
.gallery-slider__next.is-active {
	background-color: var(--yellow);
	border-color: var(--yellow);
	color: var(--black);
	cursor: pointer;
}

.gallery-slider__prev.is-active:hover,
.gallery-slider__next.is-active:hover,
.gallery-slider__prev:hover,
.gallery-slider__next:hover {
	background-color: var(--yellow-hover);
	border-color: var(--yellow-hover);
}
.gallery-slider__prev:focus-visible,
.gallery-slider__next:focus-visible {
	outline: 2px solid var(--yellow);
	outline-offset: 3px;
}

.gallery-slider__prev svg,
.gallery-slider__prev svg {
	display: block;
	flex-shrink: 0;
}
/* ---------------------------------------------------------------
   Responsive — 992px
--------------------------------------------------------------- */
@media (max-width: 992px) {
	.gallery-slider-module {
		padding: 32px 20px;
	}

	.gallery-slider__ui {
		padding: 20px 24px;
	}

	.gallery-slider__counter {
		font-size: 14px;
	}
	.gallery-slider__caption {
		font-size: 15px;
	}
}

/* ---------------------------------------------------------------
   Responsive — 700px: remove outer padding, edge-to-edge
--------------------------------------------------------------- */
@media (max-width: 700px) {


	.gallery-slider__ui {
		padding: 16px 20px;
	}

	.gallery-slider__prev,
	.gallery-slider__next {
		width: 40px;
		height: 40px;
	}
}
