/* Goethe51 Gallery — frontend */

.wp-block-gallery.goethe51-gallery-carousel {
	display: block !important;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: visible;
}

.wp-block-gallery.goethe51-gallery-carousel .goethe51-gallery__viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.wp-block-gallery.goethe51-gallery-carousel .goethe51-gallery__track {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.wp-block-gallery.goethe51-gallery-carousel .goethe51-gallery__slide {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transition:
		opacity .65s ease,
		visibility 0s linear .65s;
}

.wp-block-gallery.goethe51-gallery-carousel .goethe51-gallery__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;

	transition:
		opacity .65s ease,
		visibility 0s linear 0s;
}

.wp-block-gallery.goethe51-gallery-carousel .goethe51-gallery__slide img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto;
	margin: 0 !important;
	object-fit: cover;
	border-radius: 7px;
}

.wp-block-gallery.goethe51-gallery-carousel figcaption {
	display: none !important;
}

/* Minimal controls, intentionally aligned to the left. */
.wp-block-gallery.goethe51-gallery-carousel .goethe51-gallery__controls {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin-top: 12px;
}

.wp-block-gallery.goethe51-gallery-carousel .goethe51-gallery__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 28px;
	height: 28px;
	padding: 0;

	border: 0;
	border-radius: 0;
	background: transparent;
	color: #17325B;

	font-family: inherit;
	font-size: 24px;
	font-weight: 300;
	line-height: 1;

	cursor: pointer;

	transition:
		opacity .25s ease,
		transform .25s ease;
}

.wp-block-gallery.goethe51-gallery-carousel .goethe51-gallery__button:hover {
	opacity: .65;
	transform: translateX(2px);
}

.wp-block-gallery.goethe51-gallery-carousel .goethe51-gallery__button--prev:hover {
	transform: translateX(-2px);
}

.wp-block-gallery.goethe51-gallery-carousel .goethe51-gallery__button:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.wp-block-gallery.goethe51-gallery-carousel .goethe51-gallery__controls {
		margin-top: 8px;
		gap: 6px;
	}

	.wp-block-gallery.goethe51-gallery-carousel .goethe51-gallery__button {
		width: 28px;
		height: 26px;
		font-size: 23px;
	}
}
