/* Website Project Showcase V2 widget — the same fixed row-pattern
   pagination as the original Website Project Showcase (page 1: a
   full-width hero row + a row of 2 + a row of 3 = 6 projects; every
   later page: two rows of 2 + a row of 3 = 7 projects; a bottom-right
   page changer cross-fades between pages), but every card is a
   full-bleed background image with corner-pinned content: outline tag
   pills top-left, up to 2 mention badges top-right, a copyright line +
   large Anton title bottom-left, and a corner-bracket CTA button
   bottom-right. The background thumbnail smoothly zooms in on hover
   (via a dedicated .aiol-wps2__bg layer, so only the image scales — the
   card and its content stay put), and a shared watermark logo fades in
   dead-center over the card at the same time. */

.aiol-wps2-wrap {
	--aiol-wps2-gap: 24px;
	--aiol-wps2-fade: 250ms;

	position: relative;
}

.aiol-wps2-pages {
	position: relative;
}

.aiol-wps2-page {
	display: flex;
	flex-direction: column;
	gap: var(--aiol-wps2-gap);
	opacity: 1;
	transition: opacity var(--aiol-wps2-fade) ease;
}

.aiol-wps2-page[hidden] {
	display: none;
}

.aiol-wps2-page.is-fading {
	opacity: 0;
}

/* ---------- Row structure ---------- */
.aiol-wps2 {
	display: grid;
	gap: var(--aiol-wps2-gap);
}

.aiol-wps2__row--hero {
	grid-template-columns: 1fr;
}

.aiol-wps2__row--pair {
	grid-template-columns: repeat( 2, 1fr );
}

.aiol-wps2__row--trio {
	grid-template-columns: repeat( 3, 1fr );
}

@media ( max-width: 1024px ) {
	.aiol-wps2__row--trio {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 640px ) {
	.aiol-wps2__row--pair,
	.aiol-wps2__row--trio {
		grid-template-columns: 1fr;
	}
}

/* ---------- Card ---------- */
.aiol-wps2__card {
	position: relative;
	display: block;
	height: 420px;
	border-radius: 20px;
	overflow: hidden;
	background-color: #101010;
	box-sizing: border-box;
}

.aiol-wps2__row--hero .aiol-wps2__card {
	height: 520px;
}

.aiol-wps2__row--trio .aiol-wps2__card {
	height: 340px;
}

/* A separate layer (not the card itself) holds the background image, so
   the hover-zoom transform below only scales the thumbnail — the card's
   rounded corners and its corner-pinned text content never move. */
.aiol-wps2__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale( 1 );
	transition: transform 500ms ease;
	will-change: transform;
}

.aiol-wps2__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba( 0, 0, 0, 0.35 );
	pointer-events: none;
}

/* A shared watermark (one upload, used on every card): always dead
   center and scaled to fit within the card (never larger than its own
   width/height, whichever is smaller, so it never overflows a short
   wide card or a narrow tall one) — invisible at rest, fading in only
   while that specific card is hovered. */
.aiol-wps2__hover-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	max-width: 45%;
	max-height: 45%;
	width: auto;
	height: auto;
	object-fit: contain;
	transform: translate( -50%, -50% );
	opacity: 0;
	transition: opacity 300ms ease;
	pointer-events: none;
}

.aiol-wps2__card:hover .aiol-wps2__hover-logo {
	opacity: 0.5;
}

.aiol-wps2__card:hover .aiol-wps2__bg {
	transform: scale( 1.08 );
}

.aiol-wps2__badge {
	/* A normal flow item at the top of the .aiol-wps2__corner--tr flex
	   column (same grid cell/padding as the tags in --tl), so it lines up
	   on the same vertical baseline as the tags on the left, sits on the
	   right (align-items: flex-end on its parent), and stacks above the
	   mentions below it. */
	display: inline-flex;
	align-items: center;
	align-self: flex-end;
	margin-bottom: 10px;
	padding: 6px 12px;
	border-radius: 999px;
	background-color: #ffffff;
	color: #141414;
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	line-height: 1;
}

.aiol-wps2__card-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto 1fr auto;
	height: 100%;
	padding: 28px;
	box-sizing: border-box;
}

.aiol-wps2__corner {
	display: flex;
	flex-direction: column;
}

.aiol-wps2__corner--tl {
	grid-column: 1;
	grid-row: 1;
	align-items: flex-start;
	gap: 8px;
}

.aiol-wps2__corner--tr {
	grid-column: 2;
	grid-row: 1;
	align-items: flex-end;
}

.aiol-wps2__corner--bl {
	grid-column: 1;
	grid-row: 3;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 6px;
}

.aiol-wps2__corner--br {
	grid-column: 2;
	grid-row: 3;
	align-items: flex-end;
	justify-content: flex-end;
}

/* ---------- Tags (top-left) ---------- */
.aiol-wps2__tags {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.aiol-wps2__tag {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border: 1px solid #ffffff;
	border-radius: 6px;
	color: #ffffff;
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 1;
	background-color: transparent;
}

/* ---------- Mentions (top-right) ---------- */
.aiol-wps2__mentions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
}

.aiol-wps2__mention {
	display: flex;
	align-items: center;
	gap: 12px;
}

.aiol-wps2__mention-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: rgba( 255, 255, 255, 0.14 );
	color: #ffffff;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 700;
}

.aiol-wps2__mention-copy {
	text-align: right;
}

.aiol-wps2__mention-title {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
}

/* ---------- Bottom-left: copyright + title ---------- */
.aiol-wps2__copyright {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: rgba( 255, 255, 255, 0.7 );
}

.aiol-wps2__title {
	font-family: 'Anton', sans-serif;
	font-size: 34px;
	font-weight: 400;
	line-height: 1;
	color: #ffffff;
	text-transform: uppercase;
}

/* ---------- CTA button (bottom-right) — static corner brackets, plus a
   small solid square that's invisible by default and, on hover,
   repeatedly grows from zero to full size then instantly resets back to
   zero — a sawtooth, never shrinking back down. Its layout space is
   always reserved so the button never changes size on hover. ---------- */
.aiol-wps2__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	text-decoration: none;
	color: #ffffff;
}

.aiol-wps2__cta-text {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.aiol-wps2__cta-corner {
	position: absolute;
	width: 14px;
	height: 14px;
	border: 0 solid #ffffff;
	transition: width 0.6s ease, height 0.6s ease;
}

.aiol-wps2__cta-corner--tl {
	top: 0;
	left: 0;
	border-top-width: 2px;
	border-left-width: 2px;
}

.aiol-wps2__cta-corner--tr {
	top: 0;
	right: 0;
	border-top-width: 2px;
	border-right-width: 2px;
}

.aiol-wps2__cta-corner--bl {
	bottom: 0;
	left: 0;
	border-bottom-width: 2px;
	border-left-width: 2px;
}

.aiol-wps2__cta-corner--br {
	bottom: 0;
	right: 0;
	border-bottom-width: 2px;
	border-right-width: 2px;
}

.aiol-wps2__cta:hover .aiol-wps2__cta-corner {
	width: 18px;
	height: 18px;
}

.aiol-wps2__cta-icon {
	display: inline-block;
	width: 4px;
	height: 4px;
	background-color: currentColor;
	flex-shrink: 0;
	transform: scale( 0 );
}

.aiol-wps2__cta:hover .aiol-wps2__cta-icon {
	animation: aiol-wps2-cta-grow 2.2s ease-out infinite;
}

@keyframes aiol-wps2-cta-grow {
	0% {
		transform: scale( 0 );
	}
	100% {
		transform: scale( 1 );
	}
}

/* ---------- Page changer ---------- */
.aiol-wps2__pager {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	margin-top: 28px;
}

.aiol-wps2__pager-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background-color: #EDEDED;
	color: #5c5c5c;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.aiol-wps2__pager-btn:hover {
	background-color: #d8d8d8;
}

.aiol-wps2__pager-btn.is-active {
	background-color: #141515;
	color: #ffffff;
}

@media ( max-width: 600px ) {
	.aiol-wps2__row--hero .aiol-wps2__card {
		height: 420px;
	}

	.aiol-wps2__row--pair .aiol-wps2__card,
	.aiol-wps2__row--trio .aiol-wps2__card {
		height: 300px;
	}

	.aiol-wps2__card-inner {
		padding: 20px;
	}

	.aiol-wps2__title {
		font-size: 24px;
	}

	.aiol-wps2__mention-icon {
		width: 30px;
		height: 30px;
	}
}
