/* ================= GRID ================= */
.designer-grid {
	padding: 80px 5%;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 24px;
	justify-items: center;
	max-width: 1360px;
	margin: 0 auto;
}

@media (max-width: 1024px) {
	.designer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.designer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.designer-grid {
		grid-template-columns: 1fr;
	}
}

.designer-card {
	position: relative;
	width: 200px;
	cursor: pointer;
}

/* ================= PHOTO CARD ================= */
.photo-box {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: transparent;
	box-shadow: none;
	transition: none;
	display: flex;
	flex-direction: column;
}

.photo-box:hover {
	/* no hover border/shadow */
}

.img-stack {
	width: 100%;
	height: 320px;
	position: relative;
	overflow: hidden;
}

.base-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.35s ease, transform 0.35s ease;
	opacity: 1;
}

.photo-box:hover .base-img {
	/* Hide the base image on hover so only the alternate image remains visible */
	opacity: 0;
	transform: scale(1);
}

.fg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
	transform: scale(1);
}

.photo-box:hover .fg-img {
	opacity: 1;
	transform: scale(1.25);
}

.photo-box:hover .fg-img.is-switching {
	opacity: 0;
}

/* ================= NAME ================= */
.designer-name {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
	padding: 16px 12px 20px;
	font-weight: 600;
	text-align: center;
}

.ch-name {
	font-size: 20px;
}

.en-name {
	font-size: 18px;
	font-family: "Noto Sans TC", sans-serif;
	font-weight: 400;
	color: #969696;
	margin-top: 4px;
}

.photo-box:hover .ch-name,
.photo-box:hover .en-name {
	color: #F1027C;
}