/* =====================================================
   Featured Items Slider Module
   ===================================================== */

.featured_items_slider_module {
	padding: 80px 0 60px;
	overflow: hidden; /* clips the peeking third card */
}

/* ---- Top row: title + nav arrows ---- */

.fis-top-row {
	padding: 0 0 0 40px;
	margin-bottom: 45px;
}

.fis-section-title {
	font-family: var(--black-font);
	font-size: clamp(34px, 4.444vw, 64px);
	font-weight: 700;
	color: var(--white);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0;
	line-height: clamp(36px, 4.167vw, 60px);
	text-align: left;
}

/* ---- Navigation buttons ---- */

.fis-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding-right: 85px;
	margin-top: 50px;
}

.fis-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	color: var(--white);
	background: var(--dark-grey);
	transition: var(--transition);
}

.fis-btn:hover {
	opacity: 0.85;
}

.fis-btn:focus-visible {
	outline: 2px solid var(--main-color);
	outline-offset: 3px;
}

/* Next button is the active/green one by default */
.fis-next {
	background: var(--main-color);
}

/* Disabled state (at start / end of slider) */
.fis-btn.fis-btn--disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* ---- Hide nav when there aren't enough items to scroll ---- */
/*
 * Matches the slidesToShow breakpoints in main.js (4 / 3 / 2 / 1).
 * Nav is hidden by default (desktop, 4 visible) when item count <= 4,
 * then re-shown at each breakpoint once the item count exceeds what's visible.
 */
.featured_items_slider_module[data-item-count="1"] .fis-nav,
.featured_items_slider_module[data-item-count="2"] .fis-nav,
.featured_items_slider_module[data-item-count="3"] .fis-nav,
.featured_items_slider_module[data-item-count="4"] .fis-nav {
	display: none;
}

@media (max-width: 1399px) {
	.featured_items_slider_module[data-item-count="4"] .fis-nav {
		display: flex;
	}
}

@media (max-width: 1199px) {
	.featured_items_slider_module[data-item-count="3"] .fis-nav {
		display: flex;
	}
}

@media (max-width: 767px) {
	.featured_items_slider_module[data-item-count="2"] .fis-nav {
		display: flex;
	}
}

/* ---- Slider outer wrapper ---- */
/*
 * Left padding aligns the slider with the Bootstrap container left edge.
 * No right padding — slides bleed off the right edge.
 * The module's overflow:hidden clips the peeking third card.
 */

.fis-slider-outer {
	padding-left: 40px;
}

/* ---- Slick overrides ---- */
/*
 * Width > 100% forces 3 slides to overflow their container, creating the
 * 2.75-slide peek effect.  Section overflow:hidden handles the clip.
 * 3 / 2.75 = 1.0909 → 109.09%
 */

.featured_items_slider_module .featured-items-slider {
	width: 109.1%;
}

.featured_items_slider_module .featured-items-slider .slick-list {
	overflow: visible;
}

.featured_items_slider_module .featured-items-slider .slick-track {
	display: flex;
	margin-left: 0; /* prevent Slick auto-centering when fewer slides than slidesToShow */
}

/* ---- Individual slide ---- */

.fis-slide {
	padding: 0 8px;
	height: auto;
}

/* ---- Card ---- */

.fis-card {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 3 / 4;
	text-decoration: none;
	background: var(--black);
}

.fis-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.45s ease;
}

.fis-card:hover .fis-card__image {
	transform: scale(1.04);
}

/* Gradient overlay — dark at top, transparent at bottom */

.fis-card__overlay {
	position: absolute;
	inset: 0;
	/*background: linear-gradient(0deg, rgba(217, 217, 217, 0) 60%, rgba(0, 0, 0, 0.8) 100%);*/
	z-index: 1;
	pointer-events: none;
}
.fis-card__overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.8) 100%);
}
/* Card title — sits above overlay in top-left corner */

.fis-card__title {
	position: absolute;
	top: 50px;
	left: 50px;
	right: 50px;
	z-index: 2;
	margin: 0;
	font-family: var(--black-font);
	font-size: clamp(22px, 4.444vw, 34px);
	font-weight: 700;
	color: var(--white);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.2;
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
	text-wrap: balance; /* evens out the wrap so a long word splits mid-way rather than dumping one letter onto its own line */
}

/* =====================================================
   Responsive
   ===================================================== */

/* Wide — 4 visible + peek (4 / 3.75 ≈ 1.067 → 106.7%) */
@media (min-width: 1400px) {
	.featured_items_slider_module .featured-items-slider {
		width: 106.7%;
	}
}

/* Tablet — 2 visible + peek (120% = 2/1.75 ≈ 1.143 → 114.3%) */
@media (max-width: 1199px) {
	.featured_items_slider_module .featured-items-slider {
		width: 114.3%;
	}

	.fis-top-row {
		padding: 0 0 0 40px;
	}

	.fis-slider-outer {
		padding-left: 40px;
	}

	.fis-btn {
		width: 46px;
		height: 46px;
	}

	
	.fis-nav {
		padding-right: 25px;
		margin-top: 30px;
	}
}

/* Mobile — 1 visible + peek */
@media (max-width: 767px) {
	.featured_items_slider_module {
		padding: 5px 0 5px;
	}

	.featured_items_slider_module .featured-items-slider {
		width: 100%; /* 1 / 0.82 = 1.22 → shows ~82% of second card */
	}

	.fis-section-title {
		font-size: 1.5rem;
	}

	.fis-top-row {
		margin-bottom: 20px;
	}

  .fis-card__title {
    top: 24px;
    left: 24px;
    right: 24px;
  }

	.fis-top-row {
    padding: 0 0 0 30px;
  }
  .fis-slider-outer {
    padding-left: 25px;
    padding-right: 25px;
  }

	.fis-card {aspect-ratio: 3 / 4;}
}
