body:has(.modal.is-active) {
	overflow: hidden;
}

.modal {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	opacity: 0;
	pointer-events: none;
	transition: 0.15s;
	z-index: 1000;
}
.modal.is-active {
	opacity: 1;
	pointer-events: auto;
}
.close-wrap {
	/* width: 40%; */
	width: 90%;
	margin-inline: auto;
}
@media screen and (max-width: 767px) {
	.close-wrap {
		width: 80%;
	}
}
.modal .close {
	position: relative;
	z-index: 1;
	border: none;
	display: block;
	margin-left: auto;
	background-color: transparent;
	color: #c9c9c9;
	cursor: pointer;
	margin-right: 20px;
}
@media screen and (max-width: 767px) {
	.modal .close {
		margin-right: 0;
	}
}
.modal .close::before {
	content: '×';
	font-size: 3rem;
}
.modal .background {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	border: none;
	background-color: #000;
	opacity: 0.7;
	cursor: pointer;
}
.modal-body {
	width: 100%;
	height: auto;
}
@media screen and (max-width: 767px) {
	.modal-body {
		padding: 20px;
	}
}

.modal-body .splide {
	width: 100%;
	margin-inline: auto;
	/* height: 100%; */
}

.modal-body .splide__track {
	/* width: 100%; */
	width: 40%;
	/* height: 100%; */
	margin-inline: auto;
	/* background-color: #fff; */
}
@media screen and (max-width: 767px) {
	.modal-body .splide__track {
		width: 80%;
	}
}
.modal-body .splide__slide {
	display: flex;
	align-items: center;
}
.modal-body .splide__slide > div {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr;
	max-height: 80vh;
	padding: 20px;
	margin-inline: auto;
	background-color: #fff;
	border-radius: 8px;
	overflow-y: auto;
}
.modal-body .splide__slide > div img {
	grid-column: 1 / 3;
	width: 100%;
	height: auto;
	justify-self: center;
	display: block;
}
.modal-body .splide__slide > div h2 {
	grid-column: 1 / 3;
	/* grid-column: 1 / 2; */
	text-align: left;
	font-size: 2rem;
	font-weight: bold;
	margin-top: 10px;
}
@media screen and (max-width: 767px) {
	.modal-body .splide__slide > div h2 {
		font-size: 1.8rem;
	}

}
.modal-body .splide__slide > div p {
	grid-column: 2 / 3;
}
.modal-body .splide__arrow {
	border-radius: 0;
	background-color: transparent;
}
.modal-body .splide__arrow::after{
	content: "";
	display: block;
	width: 0;
	height: 0;
	border: medium inset transparent;
}
.modal-body .splide__arrow::after {
	border-top-width: 13px;
	border-bottom-width: 13px;
	top: 8px;
}
.modal-body .splide__arrow--next::after {
	border-left: 17px solid #FFF;
}
.modal-body .splide__arrow::before {
	border-top-width: 13px;
	border-bottom-width: 13px;
	top: 8px;
}
.modal-body .splide__arrow--prev::after {
	border-right: 17px solid #FFF;
}
@media screen and (max-width: 767px) {
	.splide__arrow--prev {
		left: 0;
	}
	.splide__arrow--next {
		right: 0;
	}
}

.pagination {
	grid-column: 1 / 3;
	margin-top: 10px;
	text-align: right;
}
