#service-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 9999;
}

#service-modal-overlay.active {
    opacity: 1;
}

.service-modal::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
	pointer-events: none;
	z-index: 0;
}


.service-modal {
	display: flex;
	background: #fff;
	max-width: 600px;
	width: calc(100% - 40px);
	border-radius: 12px;
	overflow: hidden;
	transform: translateY(30px) scale(.95);
	transition: transform .4s ease;
	position: relative;
	flex-direction: column;
	align-items: center;
}
.service-modal {
    transition: transform .4s ease;
    transform-origin: center;
}


.service-modal h2 {
    font-size: 1.6rem;
    margin-top: 10px;
	width: calc(100% - 20px);
}
.service-modal p {
    width: calc(100% - 20px);
	white-space: break-spaces;
	line-height: 1.6;
	font-size: 15px;
	color: #262626;
}

#service-modal-overlay.active .service-modal {
    transform: translateY(0) scale(1);
}

.service-modal img {
	width: 100%;
	height: 340px;
    object-fit: cover;
}

.service-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
}

.service-modal-close svg {
    width: 30px;
	height: 30px;
    stroke: white;
    stroke-width: 2;
    fill: none;
    z-index: 2;
}