/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

.domestyl-gallery {
	position: relative;
	width: 100%;
	margin: 0 auto;
}

.domestyl-gallery__figure {
	margin: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
	max-width: min(100%, 920px);
	padding: 0;
}

.domestyl-gallery__image-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.domestyl-gallery__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	box-shadow: none;
}

.domestyl-gallery__caption {
	margin-top: 8px;
	font-size: 0.8rem;
	color: rgba(31, 41, 55, 0.75);
	text-align: center;
}

.domestyl-gallery--slider {
	position: relative;
}

.domestyl-gallery--slider .splide__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: clamp(26px, 4vw, 36px);
	height: clamp(26px, 4vw, 36px);
	background: var(--primary);
	color: #fff;
	border-radius: 0;
	box-shadow: none;
	border: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	z-index: 10;
}

.domestyl-gallery--slider .splide__arrow:hover {
	transform: translateY(-50%) scale(1.05);
	box-shadow: none;
}

.domestyl-gallery--slider .splide__arrow:disabled {
	opacity: 0;
	visibility: hidden;
}

.domestyl-gallery--slider .splide__arrow svg {
	fill: currentColor;
	width: 12px;
	height: 12px;
	transform: none;
}

.domestyl-gallery--slider .splide__arrow--prev {
	left: clamp(8px, 2vw, 16px);
}

.domestyl-gallery--slider .splide__arrow--prev svg {
	transform: scaleX(-1);
}

.domestyl-gallery--slider .splide__arrow--next {
	right: clamp(8px, 2vw, 16px);
}

.domestyl-gallery--slider .splide__pagination {
	position: absolute;
	bottom: clamp(12px, 3vw, 20px);
	left: 50%;
	transform: translateX(-50%);
	gap: 10px;
	z-index: 10;
}

.domestyl-gallery--slider .splide__pagination__page {
	width: 12px;
	height: 2px;
	background: rgba(17, 24, 39, 0.2);
	border-radius: 0;
	opacity: 1;
	transition: transform 0.2s ease, background 0.2s ease;
}

.domestyl-gallery--slider .splide__pagination__page.is-active {
	transform: scaleX(1.6);
	background: var(--primary);
}

@media (max-width: 768px) {
	.domestyl-gallery__figure {
		padding: 0;
	}
}