/**
 * Canvas Club — weekly themes section
 */

.cc-weekly-themes {
	position: relative;
	overflow: hidden;
	padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5rem);
	background: var(--cc-white, #fff);
}

.cc-weekly-themes__splatter {
	position: absolute;
	bottom: 8%;
	right: -2rem;
	width: clamp(5rem, 12vw, 9rem);
	height: auto;
	pointer-events: none;
	z-index: 0;
}

.cc-weekly-themes__inner {
	position: relative;
	z-index: 1;
}

.cc-weekly-themes__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-weekly-themes__item {
	list-style: none;
}

.cc-weekly-themes__item--more {
	display: none;
}

.cc-weekly-themes__item--more.is-revealing {
	display: list-item;
	animation: cc-weekly-themes-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: var(--cc-reveal-delay, 0ms);
}

@keyframes cc-weekly-themes-reveal {
	from {
		opacity: 0;
		transform: translateY(1.75rem);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc-weekly-themes__item--more.is-revealing {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

.cc-weekly-themes__card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
}

.cc-weekly-themes__card--link {
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease;
	pointer-events: none;
}

.cc-weekly-themes__card--link:hover,
.cc-weekly-themes__card--link:focus-visible {
	transform: translateY(-3px);
	outline: none;
}

.cc-weekly-themes__card-media {
	margin: 0;
	padding: 0.75rem;
	background: var(--cc-card-color, #f5f5f5);
	border-radius: 0.35rem;
	overflow: hidden;
}

.cc-weekly-themes__card-media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	-webkit-mask-image: var(--cc-photo-mask);
	mask-image: var(--cc-photo-mask);
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}


.cc-weekly-themes__footer {
	display: flex;
	justify-content: center;
	margin-top: 2.5rem;
	opacity: 1;
	transform: translateY(0);
	transition:
		opacity 0.35s ease,
		transform 0.35s ease;
}

.cc-weekly-themes__footer.is-hiding {
	opacity: 0;
	transform: translateY(-0.5rem);
	pointer-events: none;
}


@media (max-width: 1100px) {
	.cc-weekly-themes__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 700px) {
	.cc-weekly-themes__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cc-weekly-themes__splatter {
		display: none;
	}
}

@media (max-width: 480px) {
	.cc-weekly-themes__grid {
		grid-template-columns: 1fr;
		margin: 0 auto;
	}
}
