/*--------------------------------------------------------------
# Inner Circle — Member Wins Gallery
# Centered heading over a grid of portrait cards carrying member
# trip photos and booking screenshots, captioned over a scrim.
--------------------------------------------------------------*/

/* ── Section ── */
.ic-wins {
	background: var(--tpp-white);
	/* Bottom padding only — .ic-beds above supplies 100px, and
	   .ic-sched below carries none on desktop. */
	padding: 0 0 100px;
	overflow: hidden;
}

/* ── Container ── */
.ic-wins__container {
	width: 100%;
	max-width: var(--tpp-container-max);
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}


/* ──────────────────────────────────────────────
   Heading
   ────────────────────────────────────────────── */

.ic-wins__heading {
	text-align: center;
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 4.5vw + 0.5rem, 3.5rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
	margin: 0 0 12px;
}

.ic-wins__sub {
	text-align: center;
	font-family: var(--tpp-font-body);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--tpp-text-light);
	margin: 0 0 48px;
}


/* ──────────────────────────────────────────────
   Scroll-reveal
   ────────────────────────────────────────────── */

.ic-wins__heading,
.ic-wins__sub {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ic-wins.is-visible .ic-wins__heading,
.ic-wins.is-visible .ic-wins__sub {
	opacity: 1;
	transform: translateY(0);
}

.ic-wins.is-visible .ic-wins__sub {
	transition-delay: 0.08s;
}

/* Cards land one after another. */
.ic-wins__item {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ic-wins.is-visible .ic-wins__item {
	opacity: 1;
	transform: translateY(0);
	transition-delay: calc(0.16s + var(--win-index, 0) * 0.08s);
}


/* ──────────────────────────────────────────────
   Grid
   ────────────────────────────────────────────── */

.ic-wins__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}


/* ──────────────────────────────────────────────
   Card
   ────────────────────────────────────────────── */

.ic-wins__card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 4;
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	background: var(--tpp-black);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ic-wins__card:hover {
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.ic-wins__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}


/* ── Caption — sits over a scrim so it stays legible on any photo ── */
.ic-wins__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	padding: 40px 16px 16px;
	font-family: var(--tpp-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--tpp-white);
	text-align: center;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.82) 0%,
		rgba(0, 0, 0, 0.45) 55%,
		rgba(0, 0, 0, 0) 100%
	);
}


/* ── Placeholder card ── */
.ic-wins__card--placeholder {
	flex-direction: column;
	background: transparent;
	border: 1px dashed var(--tpp-border);
}

.ic-wins__card--placeholder:hover {
	transform: none;
	box-shadow: none;
}

.ic-wins__placeholder-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tpp-text-light);
}

/* With no photo behind it the scrim would read as a smudge — the
   caption just centres under the icon instead. */
.ic-wins__card--placeholder .ic-wins__caption {
	position: static;
	padding: 12px 16px 0;
	color: var(--tpp-text-light);
	background: none;
}


/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */

/* Tablet (≤991px) — 2 across */
@media screen and (max-width: 991px) {
	.ic-wins__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

/* Mobile (≤767px) */
@media screen and (max-width: 767px) {
	/* Section padding below 992px is set page-wide in
	   inner-circle-rhythm.css, which loads last. This used to read
	   `padding: 0` because .ic-sched below supplied the gap with its own
	   top padding — it no longer does, so the note would have been
	   misleading. Horizontal padding only here. */
	.ic-wins {
		padding-left: 0;
		padding-right: 0;
	}

	.ic-wins__heading {
		font-size: clamp(1.75rem, 7vw, 2.5rem);
	}

	.ic-wins__sub {
		margin-bottom: 32px;
	}

	.ic-wins__grid {
		gap: 12px;
	}

	.ic-wins__caption {
		padding: 32px 12px 12px;
		font-size: 0.8125rem;
	}
}

/* Small mobile (≤480px) */
@media screen and (max-width: 480px) {
	.ic-wins__caption {
		font-size: 0.75rem;
	}

	.ic-wins__placeholder-icon svg {
		width: 28px;
		height: 28px;
	}
}


/* ──────────────────────────────────────────────
   Reduced motion
   ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.ic-wins__heading,
	.ic-wins__sub,
	.ic-wins__item,
	.ic-wins__card {
		transition: none;
	}

	.ic-wins.is-visible .ic-wins__item {
		transition-delay: 0s;
	}

	.ic-wins__card:hover {
		transform: none;
	}
}
