/**
 * Gallery Slider Styles
 */

.wp-block-gallery.is-splide-gallery {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.wp-block-gallery .gallery-splide {
	flex: 1;
	min-width: 0;
	width: 100%;
}

.wp-block-gallery .splide__slide {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-block-gallery .splide__slide .wp-block-image {
	width: 100%;
	height: 100%;
	margin: 0;
}

.wp-block-gallery .splide__slide .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	filter: grayscale(1);
	transition: filter 0.4s ease;
}

/* Blue tint overlay */
.wp-block-gallery .splide__slide .wp-block-image {
	position: relative;
	overflow: hidden;
}

.wp-block-gallery .splide__slide .wp-block-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background-color: #DCD8BE;
	mix-blend-mode: color;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

/* Hover: remove grayscale and tint */
.wp-block-gallery .splide__slide .wp-block-image:hover img {
	filter: grayscale(0);
}

.wp-block-gallery .splide__slide .wp-block-image:hover::after {
	opacity: 0;
}


.wp-block-gallery .splide__arrow {
	background: none;
	border: none;
	color: var(--wp--preset--color--contrast, #111);
	width: 50px;
	height: 54px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 0.2s ease;
	flex-shrink: 0;
	align-self: center;
}

.wp-block-gallery .splide__arrow:hover {
	opacity: 0.6;
}

.wp-block-gallery .splide__arrow:disabled {
	opacity: 0.2;
	cursor: not-allowed;
}

.wp-block-gallery .splide__arrow svg {
	display: none;
}

.wp-block-gallery .splide__arrow::after {
	content: '';
	width: 100%;
	height: 100%;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='49' height='53' fill='none' viewBox='0 0 49 53'%3E%3Cpath fill='%23000' d='M20.206 2.055c-3.902 4.27-3.163 9.375-.107 13.335 1.9 2.5 4.745 4.27 7.172 6.145 1.479 1.146 3.27 2.084 5.063 3.23-.632 0-.843.106-1.053 0C28.75 24.557 2.53 22.082 0 21.56v9.853c1.267-.416 32.652-3.423 32.652-3.423-2.742 1.981-5.38 3.751-7.912 5.624-1.478 1.251-3.27 2.393-4.323 3.96-1.9 2.707-2.953 5.83-2.003 9.268.739 2.916 2.424 5.106 5.484 5.832 2.742.832 5.17 0 7.172-1.978 1.371-1.354 1.9-3.021 2.217-4.894.211-1.875.529-3.751.95-5.521.314-1.978.95-3.96 1.371-5.938.318-1.978 1.582-3.332 3.27-4.27 1.582-.832 3.27-1.145 5.063-1.145 1.689 0 3.374-.31 5.063-.416-.211-1.668-.422-3.022-.529-4.376-2.32-.106-4.323 0-6.33-.31-2.217-.314-4.323-.832-5.905-2.916-1.16-1.562-1.371-3.332-1.9-4.898-.95-2.813-1.16-5.729-1.478-8.645-.42-3.124-1.688-5.521-4.852-6.77-2.53-1.145-5.908-.624-7.804 1.46z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='49' height='53' fill='none' viewBox='0 0 49 53'%3E%3Cpath fill='%23000' d='M20.206 2.055c-3.902 4.27-3.163 9.375-.107 13.335 1.9 2.5 4.745 4.27 7.172 6.145 1.479 1.146 3.27 2.084 5.063 3.23-.632 0-.843.106-1.053 0C28.75 24.557 2.53 22.082 0 21.56v9.853c1.267-.416 32.652-3.423 32.652-3.423-2.742 1.981-5.38 3.751-7.912 5.624-1.478 1.251-3.27 2.393-4.323 3.96-1.9 2.707-2.953 5.83-2.003 9.268.739 2.916 2.424 5.106 5.484 5.832 2.742.832 5.17 0 7.172-1.978 1.371-1.354 1.9-3.021 2.217-4.894.211-1.875.529-3.751.95-5.521.314-1.978.95-3.96 1.371-5.938.318-1.978 1.582-3.332 3.27-4.27 1.582-.832 3.27-1.145 5.063-1.145 1.689 0 3.374-.31 5.063-.416-.211-1.668-.422-3.022-.529-4.376-2.32-.106-4.323 0-6.33-.31-2.217-.314-4.323-.832-5.905-2.916-1.16-1.562-1.371-3.332-1.9-4.898-.95-2.813-1.16-5.729-1.478-8.645-.42-3.124-1.688-5.521-4.852-6.77-2.53-1.145-5.908-.624-7.804 1.46z'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.wp-block-gallery .splide__arrow--prev {
	order: -1;
}

.wp-block-gallery .splide__arrow--prev::after {
	transform: scaleX(-1);
}

.wp-block-gallery .splide__arrow--next {
	order: 1;
}

/* Hide default gallery grid styles when using slider */
.wp-block-gallery.is-splide-gallery > .blocks-gallery-grid,
.wp-block-gallery.is-splide-gallery > .wp-block-image {
	display: none;
}
