.wp-block-glaskogen-gallery-carousel {
	position: relative;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.glaskogen-gallery-carousel__swiper {
	width: 100%;
}

.glaskogen-gallery-carousel__slide {
	aspect-ratio: var(--glaskogen-gallery-carousel-aspect-ratio, 4/3);
	height: auto;
	margin: 0;
	position: relative;
}

.glaskogen-gallery-carousel.is-fixed-height .glaskogen-gallery-carousel__slide {
	aspect-ratio: auto;
	height: var(--glaskogen-gallery-carousel-height, 400px);
}

.glaskogen-gallery-carousel__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.glaskogen-gallery-carousel__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: .75rem 1rem;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: .875rem;
}

.glaskogen-gallery-carousel__controls {
	pointer-events: none;
	position: absolute;
	z-index: 2;
	top: 50%;
	right: .75rem;
	left: .75rem;
	display: flex;
	justify-content: space-between;
	transform: translateY(-50%);
}

.glaskogen-gallery-carousel__button {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .9);
	color: #111;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.glaskogen-gallery-carousel__button:disabled {
	cursor: default;
	opacity: .35;
}

.glaskogen-gallery-carousel__button.swiper-button-lock {
	display: none;
}

.glaskogen-gallery-carousel__icon {
	display: block;
	width: 24px;
	height: 24px;
}

@media screen and (max-width: 767px) {
	.wp-block-glaskogen-gallery-carousel {
		--glaskogen-gallery-carousel-columns: 1 !important;
	}
}

@media screen and (min-width: 768px) {
	.wp-block-glaskogen-gallery-carousel {
		margin-top: 3rem;
		margin-bottom: 3rem;
	}
}
