.ecomas-tcg {
	--ecomas-tcg-columns: 3;
	--ecomas-tcg-accent: #d71920;
	--ecomas-tcg-ink: #17202a;
	--ecomas-tcg-muted: #5d6875;
	display: grid;
	gap: 34px;
}

.ecomas-tcg__intro {
	max-width: 930px;
}

.ecomas-tcg__eyebrow {
	color: var(--ecomas-tcg-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.ecomas-tcg h2 {
	color: var(--ecomas-tcg-ink);
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.12;
	margin: 0 0 18px;
}

.ecomas-tcg__intro p:not(.ecomas-tcg__eyebrow) {
	color: var(--ecomas-tcg-muted);
	font-size: 17px;
	line-height: 1.75;
	margin: 0 0 22px;
}

.ecomas-tcg__intro ul {
	display: grid;
	gap: 10px 22px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.ecomas-tcg__intro li {
	color: var(--ecomas-tcg-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	padding-left: 24px;
	position: relative;
}

.ecomas-tcg__intro li::before {
	background: var(--ecomas-tcg-accent);
	border-radius: 999px;
	content: "";
	height: 8px;
	left: 0;
	position: absolute;
	top: 10px;
	width: 8px;
}

.ecomas-tcg__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--ecomas-tcg-columns), minmax(0, 1fr));
}

.ecomas-tcg__card {
	background: #fff;
	border: 1px solid rgba(23, 32, 42, 0.1);
	border-radius: 8px;
	box-shadow: 0 12px 34px rgba(23, 32, 42, 0.08);
	margin: 0;
	overflow: hidden;
}

.ecomas-tcg__image-button {
	appearance: none;
	background: #f4f6f8;
	border: 0;
	cursor: zoom-in;
	display: block;
	height: auto;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

.ecomas-tcg__image-button img {
	aspect-ratio: 16 / 10;
	display: block;
	height: auto;
	object-fit: cover;
	transform: scale(1);
	transition: transform 320ms ease, filter 320ms ease;
	width: 100%;
}

.ecomas-tcg__image-button::after {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.42));
	content: "";
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity 260ms ease;
}

.ecomas-tcg__zoom {
	align-items: center;
	background: var(--ecomas-tcg-accent);
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 28px;
	font-weight: 300;
	height: 46px;
	justify-content: center;
	left: 50%;
	line-height: 1;
	opacity: 0;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%) scale(0.86);
	transition: opacity 260ms ease, transform 260ms ease;
	width: 46px;
	z-index: 2;
}

.ecomas-tcg__card:hover .ecomas-tcg__image-button img,
.ecomas-tcg__image-button:focus-visible img {
	filter: saturate(1.06) contrast(1.04);
	transform: scale(1.07);
}

.ecomas-tcg__card:hover .ecomas-tcg__image-button::after,
.ecomas-tcg__image-button:focus-visible::after,
.ecomas-tcg__card:hover .ecomas-tcg__zoom,
.ecomas-tcg__image-button:focus-visible .ecomas-tcg__zoom {
	opacity: 1;
}

.ecomas-tcg__card:hover .ecomas-tcg__zoom,
.ecomas-tcg__image-button:focus-visible .ecomas-tcg__zoom {
	transform: translate(-50%, -50%) scale(1);
}

.ecomas-tcg figcaption {
	color: var(--ecomas-tcg-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	min-height: 70px;
	padding: 20px 22px;
}

.ecomas-tcg-lightbox {
	align-items: center;
	background: rgba(8, 13, 20, 0.86);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 28px;
	position: fixed;
	z-index: 999999;
}

.ecomas-tcg-lightbox.is-open {
	display: flex;
}

.ecomas-tcg-lightbox__inner {
	max-height: calc(100vh - 70px);
	max-width: min(1120px, 96vw);
	position: relative;
}

.ecomas-tcg-lightbox img {
	border-radius: 8px;
	display: block;
	max-height: calc(100vh - 130px);
	max-width: 100%;
	object-fit: contain;
}

.ecomas-tcg-lightbox__title {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	margin: 14px 48px 0 0;
}

.ecomas-tcg-lightbox__close {
	background: #fff;
	border: 0;
	border-radius: 50%;
	color: #17202a;
	cursor: pointer;
	font-size: 30px;
	height: 44px;
	line-height: 1;
	position: absolute;
	right: -14px;
	top: -14px;
	width: 44px;
}

@media (max-width: 767px) {
	.ecomas-tcg {
		gap: 26px;
	}

	.ecomas-tcg__intro ul,
	.ecomas-tcg__grid {
		grid-template-columns: 1fr;
	}

	.ecomas-tcg figcaption {
		min-height: auto;
	}
}
