.vex-flyer-gallery {
	max-width: 1440px;
	margin: 0 auto;
	font-family: inherit;
}

.vex-flyer-gallery-toolbar {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: end;
	margin-bottom: 24px;
}

.vex-flyer-gallery-toolbar select,
.vex-flyer-filter-button {
	width: 100%;
	min-height: 48px;
	padding: 0 16px;
	border-radius: 14px;
	border: 1px solid #d8dbe5;
	background: #fff;
	font-size: 16px;
}

.vex-flyer-filter-button {
	cursor: pointer;
	background: #111827;
	border-color: #111827;
	color: #fff;
	font-weight: 600;
}

.vex-flyer-group-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.vex-flyer-group-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 24px;
	padding: 20px;
	box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

.vex-flyer-group-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
}

.vex-flyer-group-header h3 {
	margin: 0 0 6px;
	font-size: 26px;
	line-height: 1.2;
	color: #111827;
}

.vex-flyer-group-meta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	color: #6b7280;
	font-size: 14px;
}

.vex-flyer-items-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.vex-flyer-card {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(170px, .95fr);
	align-items: stretch;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	overflow: hidden;
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.vex-flyer-preview-button {
	display: block;
	width: 100%;
	border: 0;
	padding: 12px;
	background: transparent;
	cursor: pointer;
}

.vex-flyer-preview-button img {
	display: block;
	width: 100%;
	height: 360px;
	object-fit: contain;
	border-radius: 14px;
	background: #fff;
}

.vex-flyer-card-body {
	display: flex;
	flex-direction: column;
	padding: 16px 14px 14px 0;
}

.vex-flyer-copy h4 { margin: 0 0 10px; font-size: 18px; line-height: 1.25; color: #111827; }
.vex-flyer-primary-text { max-height: 245px; overflow: auto; white-space: normal; font-size: 14px; line-height: 1.5; color: #374151; padding-right: 4px; }
.vex-flyer-badges { margin-top: auto; padding-top: 14px; }

.vex-flyer-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.vex-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	background: #eef2ff;
	color: #3730a3;
}

.vex-flyer-actions-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.vex-icon-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid #dbe1ea;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	color: #1f2937;
}

.vex-icon-action:hover {
	border-color: #b8c0ce;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.vex-icon-action .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.vex-action-count {
	min-width: 10px;
}

.vex-flyer-action-like.is-active {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

.vex-flyer-modal-open {
	overflow: hidden;
}

.vex-flyer-modal[hidden] {
	display: none;
}

.vex-flyer-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.vex-flyer-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.74);
	backdrop-filter: blur(8px);
}

.vex-flyer-modal-dialog {
	position: relative;
	width: min(1200px, calc(100vw - 32px));
	height: min(92vh, 980px);
	margin: 4vh auto;
	background: #0f172a;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(2, 6, 23, 0.4);
	display: grid;
	grid-template-rows: 1fr auto;
}

.vex-flyer-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.22);
	background: rgba(15, 23, 42, 0.55);
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.vex-flyer-modal-stage {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 28px 0;
	cursor: zoom-in;
}

.vex-flyer-modal-stage.is-zoomed {
	cursor: grab;
}

.vex-flyer-modal-stage.is-dragging {
	cursor: grabbing;
}

.vex-flyer-modal-image {
	max-width: 100%;
	max-height: calc(92vh - 180px);
	object-fit: contain;
	transform-origin: center center;
	transition: transform 0.16s ease;
	will-change: transform;
	user-select: none;
	-webkit-user-drag: none;
}

.vex-flyer-modal-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 24px 24px;
	background: #fff;
}

.vex-flyer-modal-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: #475569;
}

.vex-flyer-modal-copy strong {
	font-size: 24px;
	line-height: 1.2;
	color: #111827;
}

@media (max-width: 1024px) {
	.vex-flyer-gallery-toolbar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vex-flyer-modal-dialog {
		width: min(100vw - 16px, 1200px);
		height: min(95vh, 980px);
		margin: 8px auto;
	}

	.vex-flyer-modal-footer {
		flex-direction: column;
		align-items: stretch;
	}
}

@media (max-width: 767px) {
	.vex-flyer-gallery-toolbar {
		grid-template-columns: 1fr;
	}

	.vex-flyer-group-card {
		padding: 16px;
		border-radius: 18px;
	}

	.vex-flyer-group-header h3 {
		font-size: 22px;
	}

	.vex-flyer-preview-button img {
		height: 360px;
	}

	.vex-flyer-modal-stage {
		padding: 20px 12px 0;
	}

	.vex-flyer-modal-copy strong {
		font-size: 18px;
	}
}

@media (max-width: 1280px) { .vex-flyer-items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .vex-flyer-items-grid { grid-template-columns: 1fr; } .vex-flyer-card { grid-template-columns: 1fr; } .vex-flyer-card-body { padding: 0 14px 14px; } }
