.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0; /* inset: 0; */
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  overflow-y: auto;
  padding: 35px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
/*   padding: 35px; */
}
.popup-content {
  position: relative;
  margin: auto;
  background: #fff;
/*   padding: 2em; */
  border-radius: 10px;
  max-width: 850px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
    animation: fadeInUp 0.3s ease-out;
  
}
.popup-block + .popup-block { margin-top: 1em; }
.popup-text h3 { margin: 0; font-size: 1.5em; }
.popup-caption { font-size: 0.9em; color: #666; }
.popup-button {
  background: #0073e6;
  color: #fff;
  padding: 0.8em 1.5em;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

body.modal-open {
  overflow: hidden;           /* estää taustan skrollin */
  height: 100%; 
  touch-action: none;
}

.imagecard {
	padding: 0;
	margin: 0;
	object-fit: contain;
	object-position: center;
	
}
 .formcard {
	padding: 35px;
}

#popup1  {
	padding: 0;
	
}

#popup1 .uk-container {
	padding-right: 0;
}


#popup1 img {
	width: 100%;
	margin: 0;
	padding: 0;
}

.imagebox {
	height: 100%;
	width: 100%;
	overflow: hidden;
}
.boximage {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;	
}
 .formcard {
	padding: 35px;
}

@media only screen and (max-width: 768px) {

	.popup-overlay {
		align-items: flex-start; 
	}
	.popupmodal {
		margin: 48px auto;
	}
	.formcard {
		padding: 15px;
		font-size: 13px;
	}
	.formcard .uk-button {
		padding: 0.5rem 10px;
	}
	#popup1 {
		max-width: 95%;
	}
	
}

.popupmodal {
	position: relative;
}

#popup-closes {
	background-color: #fff;
	color: #000;	
	width: 60px;
	height: 60px;
	border-radius: 50%;
	position: absolute;
	top:-30px;
	right: -30px;
	z-index: 100;
	object-position: center;
}

#Inputfield_tekstia label {
	display: none;
} 

.x {
	position: absolute;
	right: -15px;
	top: -15px;
	width: 33px;
	height: 33px;
	border: 2px solid #eef5df;
	border: 2px solid #020202;
	background-color: #ff5248;
	background-color: #fdfcfa;
	border-radius: 50%;
	}
.x::before, .x::after {
	position: absolute;
	top: 15px;
	left: 10px;
	width: 13px;
	height: 3px;
	content: "";
	background-color: #eef5df;
	background-color: #020202;
	display: none;
	}
.x::before {
	-ms-transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
	}
.x::after {
	-ms-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	}
.x:hover { cursor: pointer; }
.x:hover::before, .x:hover::after { display: block; }






