.wcfm-ee-gallery {
	display: grid;
	grid-template-columns: repeat(var(--wcfm-ee-columns, 3), minmax(0, 1fr));
	gap: 14px;
	margin: 1.5em 0;
}

.wcfm-ee-gallery__item {
	margin: 0;
}

.wcfm-ee-gallery__item a {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: #f3f4f6;
	cursor: zoom-in;
}

.wcfm-ee-gallery__item img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0;
	transition: transform .22s ease;
}

.wcfm-ee-gallery__item a:hover img {
	transform: scale(1.025);
}

.wcfm-ee-gallery__item figcaption {
	padding-top: 6px;
	color: #64748b;
	font-size: .88em;
}

.wcfm-ee-products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 16px;
	margin: 1.5em 0;
}

.wcfm-ee-products--list {
	grid-template-columns: 1fr;
}

.wcfm-ee-product-card {
	display: grid;
	grid-template-columns: clamp(110px, 34%, 180px) minmax(0, 1fr);
	min-width: 0;
	min-height: 150px;
	overflow: hidden;
	border: 1px solid #dfe3e8;
	border-radius: 8px;
	background: #fff;
}

.wcfm-ee-product-card__image {
	display: block;
	min-height: 100%;
	background: #f5f6f7;
}

.wcfm-ee-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 150px;
	object-fit: cover;
	margin: 0;
}

.wcfm-ee-product-card__body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	padding: 16px;
}

.wcfm-ee-product-card__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	margin: 0 0 8px;
	font-size: 1.05rem;
	line-height: 1.35;
}

.wcfm-ee-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.wcfm-ee-product-card__description {
	width: 100%;
	overflow: hidden;
	margin: 0 0 14px;
	color: #667085;
	font-size: .92rem;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcfm-ee-product-card__button {
	display: inline-flex;
	margin-top: auto;
	padding: 8px 13px;
	border-radius: 5px;
	background: #1f2937;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}

.wcfm-ee-lightbox-open {
	overflow: hidden;
}

.wcfm-ee-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 54px 70px;
	background: rgba(0, 0, 0, .9);
	touch-action: pan-y;
}

.wcfm-ee-lightbox__figure {
	display: flex;
	max-width: 100%;
	max-height: 100%;
	flex-direction: column;
	align-items: center;
	margin: 0;
}

.wcfm-ee-lightbox__image {
	display: block;
	max-width: min(92vw, 1500px);
	max-height: calc(100vh - 115px);
	object-fit: contain;
	user-select: none;
}

.wcfm-ee-lightbox__caption {
	min-height: 1.5em;
	padding-top: 9px;
	color: #fff;
	font-size: .92rem;
	text-align: center;
}

.wcfm-ee-lightbox__close,
.wcfm-ee-lightbox__nav {
	position: fixed;
	border: 0;
	background: rgba(0, 0, 0, .28);
	color: #fff;
	cursor: pointer;
	line-height: 1;
}

.wcfm-ee-lightbox__close {
	top: 12px;
	right: 16px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-size: 36px;
}

.wcfm-ee-lightbox__nav {
	top: 50%;
	width: 50px;
	height: 64px;
	border-radius: 7px;
	font-size: 44px;
	transform: translateY(-50%);
}

.wcfm-ee-lightbox__prev {
	left: 12px;
}

.wcfm-ee-lightbox__next {
	right: 12px;
}

.wcfm-ee-lightbox__nav[hidden] {
	display: none;
}

.wcfm-ee-lightbox__close:focus-visible,
.wcfm-ee-lightbox__nav:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.wcfm-ee-youtube {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin: 1.5em 0;
	border-radius: 10px;
	background: #000;
}

.wcfm-ee-youtube__trigger {
	position: absolute;
	inset: 0;
	display: block;
	background: #000;
	color: #fff;
}

.wcfm-ee-youtube__trigger img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	opacity: .92;
	transition: opacity .2s ease, transform .2s ease;
}

.wcfm-ee-youtube__trigger:hover img {
	opacity: 1;
	transform: scale(1.012);
}

.wcfm-ee-youtube__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 72px;
	height: 50px;
	border-radius: 14px;
	background: #f00;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .32);
	transform: translate(-50%, -50%);
}

.wcfm-ee-youtube__play::after {
	position: absolute;
	top: 14px;
	left: 29px;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 20px solid #fff;
	content: "";
}

.wcfm-ee-youtube iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.wcfm-ee-youtube--loaded {
	background: #000;
}

@media (max-width: 767px) {
	.wcfm-ee-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wcfm-ee-product-card {
		grid-template-columns: 110px minmax(0, 1fr);
	}

	.wcfm-ee-product-card__image img {
		min-height: 140px;
	}

	.wcfm-ee-lightbox {
		padding: 50px 42px;
	}

	.wcfm-ee-lightbox__nav {
		width: 38px;
		height: 54px;
		font-size: 34px;
	}

	.wcfm-ee-lightbox__prev {
		left: 3px;
	}

	.wcfm-ee-lightbox__next {
		right: 3px;
	}
}

@media (max-width: 420px) {
	.wcfm-ee-gallery {
		gap: 8px;
	}

	.wcfm-ee-product-card__body {
		padding: 12px;
	}

	.wcfm-ee-youtube__play {
		width: 60px;
		height: 42px;
		border-radius: 12px;
	}

	.wcfm-ee-youtube__play::after {
		top: 12px;
		left: 25px;
		border-top-width: 9px;
		border-bottom-width: 9px;
		border-left-width: 17px;
	}
}
