.cigale-gallery {
	--gallery-blue: var(--calypso-blue, #a3badc);
	--gallery-blue-dark: var(--calypso-blue-dark, #7898c2);
	--gallery-ink: var(--calypso-ink, #515861);
	--gallery-muted: var(--calypso-muted, #747c86);
	--gallery-border: var(--calypso-border, #dde5ed);
	--gallery-soft: var(--calypso-soft, #f6f9fc);
	--gallery-radius: var(--radius-medium, 14px);
	--gallery-shadow: var(--shadow-soft, 0 10px 35px rgba(67, 81, 101, 0.08));
	width: 100%;
	font-family: var(--font-main, "Montserrat", Arial, sans-serif);
}

.cigale-gallery *,
.cigale-gallery *::before,
.cigale-gallery *::after {
	box-sizing: border-box;
}

.cigale-gallery__viewport {
	overflow: hidden;
	border: 1px solid var(--gallery-border);
	border-radius: var(--gallery-radius);
	background: var(--gallery-soft);
}

.cigale-gallery__track {
	display: flex;
	transition: transform 0.45s ease;
	will-change: transform;
}

.cigale-gallery__slide {
	position: relative;
	flex: 0 0 100%;
	margin: 0;
	aspect-ratio: 16 / 10;
	background: var(--gallery-soft);
}

.cigale-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cigale-gallery__caption {
	position: absolute;
	right: 16px;
	bottom: 16px;
	left: 16px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: var(--radius-small, 8px);
	background: rgba(255, 255, 255, 0.9);
	color: var(--gallery-ink);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.cigale-gallery__controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 12px;
}

.cigale-gallery__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--gallery-border);
	border-radius: var(--radius-small, 8px);
	background: #ffffff;
	color: var(--gallery-ink);
	font: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cigale-gallery__button:hover,
.cigale-gallery__button:focus-visible {
	border-color: var(--gallery-blue);
	background: var(--gallery-blue);
	color: #ffffff;
	transform: translateY(-2px);
}

.cigale-gallery__counter {
	min-width: 42px;
	margin: 0 2px;
	color: var(--gallery-muted);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

.cigale-gallery--single .cigale-gallery__controls {
	display: none;
}

@media (max-width: 600px) {
	.cigale-gallery__slide {
		aspect-ratio: 4 / 3;
	}

	.cigale-gallery__controls {
		margin-top: 10px;
	}
}
