/* Collections Grid — Styles */

.clg-wrapper {
	--clg-cols: 4;
	--clg-gap: 24px;
	width: 100%;
}

.clg-header {
	text-align: center;
	margin-bottom: 40px;
}

.clg-title {
	font-family: inherit;
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 14px 0;
}

.clg-subtitle {
	font-size: 15px;
	line-height: 1.6;
	color: #5a5248;
	max-width: 620px;
	margin: 0 auto;
}

.clg-grid {
	display: grid;
	grid-template-columns: repeat(var(--clg-cols), 1fr);
	gap: var(--clg-gap);
}

.clg-card {
	position: relative;
	display: block;
	aspect-ratio: 3/4;
	overflow: hidden;
	border-radius: 4px;
	background-color: #eee6d8;
	text-decoration: none;
	transition-property: box-shadow, transform;
	transition-duration: 500ms;
	transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.clg-card.clg-lift:hover {
	transform: translateY(-6px);
}

.clg-image,
.clg-image-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition-property: transform;
	transition-duration: 500ms;
	transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	transform: scale(1);
}

.clg-image-placeholder {
	background: repeating-linear-gradient(45deg, #f0e9dc, #f0e9dc 10px, #e7ddc9 10px, #e7ddc9 20px);
}

.clg-card:hover .clg-image {
	transform: scale(1.08);
}

.clg-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 55%;
	background: linear-gradient(to top, #000000 0%, transparent 70%);
	opacity: 0.85;
	pointer-events: none;
}

.clg-card-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0 20px 20px 20px;
	z-index: 1;
}

.clg-card-title {
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 4px;
	line-height: 1.2;
}

.clg-card-subtitle {
	font-size: 13px;
	color: #f0ece3;
	opacity: 0.9;
}

/* Entrance animation */
.clg-wrapper[data-entrance="true"] .clg-card {
	opacity: 0;
}

.clg-wrapper[data-entrance="true"] .clg-card.clg-in-view {
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	animation-fill-mode: forwards;
	animation-name: clgFadeUp;
}

.clg-wrapper[data-entrance-type="zoom-in"] .clg-card.clg-in-view {
	animation-name: clgZoomIn;
}

.clg-wrapper[data-entrance-type="fade"] .clg-card.clg-in-view {
	animation-name: clgFade;
}

@keyframes clgFadeUp {
	from { opacity: 0; transform: translateY(28px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes clgZoomIn {
	from { opacity: 0; transform: scale(0.9); }
	to   { opacity: 1; transform: scale(1); }
}

@keyframes clgFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Responsive */
@media (max-width: 991px) {
	.clg-wrapper { --clg-cols: 2; }
	.clg-title { font-size: 22px; }
}

@media (max-width: 480px) {
	.clg-card-title { font-size: 16px; }
	.clg-card-subtitle { font-size: 12px; }
}
