.giftflow-campaign-images {
	font-family: inherit;
}

.giftflow-campaign-images__main {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 0.75rem;
	cursor: pointer;
	aspect-ratio: 4 / 3;
	max-height: 480px;
	background: var(--wp--preset--color--base, #f3f4f6);
}

.giftflow-campaign-images__main:hover .giftflow-campaign-images__overlay {
	opacity: 1;
}

.giftflow-campaign-images__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.08);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.giftflow-campaign-images__overlay-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	border-radius: 50%;
	color: #fff;
}

.giftflow-campaign-images__overlay-icon svg {
	width: 22px;
	height: 22px;
}

.giftflow-campaign-images__counter {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	backdrop-filter: blur(4px);
	pointer-events: none;
}

.giftflow-campaign-images__main-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
}

.giftflow-campaign-images__single .giftflow-campaign-images__main-img {
	border-radius: 12px;
	max-height: none;
}

.giftflow-campaign-images__single .giftflow-campaign-images__overlay,
.giftflow-campaign-images__single .giftflow-campaign-images__counter {
	display: none;
}

.giftflow-campaign-images__thumbs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.giftflow-campaign-images__thumb {
	flex: 0 0 calc(25% - 0.375rem);
	border: 2px solid transparent;
	padding: 0;
	background: none;
	cursor: pointer;
	border-radius: 8px;
	overflow: hidden;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.giftflow-campaign-images__thumb:hover {
	opacity: 0.9;
}

.giftflow-campaign-images__thumb--active {
	border-color: var(--wp--preset--color--vivid-cyan-blue, #3b82f6);
}

.giftflow-campaign-images__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	border-radius: 6px;
}

.giftflow-campaign-images__thumb--more {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--base, #f3f4f6);
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast, #333);
	transition: background 0.2s ease;
}

.giftflow-campaign-images__thumb--more:hover {
	background: var(--wp--preset--color--contrast-2, #e5e7eb);
}

.giftflow-campaign-images__thumb--hidden {
	display: none;
}

.giftflow-campaign-images--empty {
	padding: 3rem 2rem;
	text-align: center;
	color: var(--wp--preset--color--contrast-2, #666);
	font-style: italic;
	background: var(--wp--preset--color--base, #f9fafb);
	border-radius: 12px;
}
