.modal {
  position:fixed;
  left:0;top:0;
  display:none;
  width:100%;height:100%;
  background-color:rgb(0,0,0);background-color:rgba(0,0,0,0.9);
  justify-content:center;
  align-items:center;
  text-align: center;
  resize:both;
  overflow:auto;
  z-index:1000;
}

#modal-kontener {position:relative;width:auto;height:auto}

.modal-content { 
  display:block;
  margin:auto;
  max-height:100%;
  max-width:100%;
  vertical-align:middle;
  resize:both;
  overflow:hidden;
  animation-name:zoom;
  animation-duration:1s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

#modal-close {
  position:absolute;
  top:25px;right:25px;
  display:none;
  width:30px;height:30px;
  color:#eee;
  font-size:40px;
  font-weight:bold;
  background:#000;
  line-height:32px;
  border-radius:20px;
  border:2px solid #ccc;
  transition:0.3s;
  z-index:1001;
}

#modal-close:hover,#modal-close:focus {color:#ccc;text-decoration:none;cursor:pointer}

#PrevLink,#NextLink {
  position:absolute;
  top:calc(50% - 80px);
  width:60px;
  height:93px;
  display:none;
  cursor:pointer;
  padding:23px 0 0 0;
  text-indent:-15px;
  color:#eee;
  background:#000;
  font-weight:bold;
  font-size:50px;
  border-radius:0 80px 80px 0;
  outline:none;
  user-select:none;
  -webkit-user-select:none;
  -moz-opacity:0.2;opacity:0.2;filter:alpha(opacity=20);
  z-index:1001;
}

#NextLink {right:0;text-indent:12px;border-radius:80px 0 0 80px}

#PrevLink:hover,#NextLink:hover {-moz-opacity:0.7;opacity:0.7;filter:alpha(opacity=70)}

#kep_sorszam,#magantanar_kereso  {
  position:absolute;
  bottom:0;
  display:none;
  text-align:left;
  padding:5px 10px 5px 10px;
  font-size:16px;
  line-height:30px;
  background-color:rgb(0,0,0);background:rgba(0,0,0,0.7);
  color:#eee;
}

#kep_sorszam {left:0;float:left}

#magantanar_kereso {right:0;float:right}

@media only screen and (max-width: 400px) {
  #modal-close {top:15px;right:15px}
  #PrevLink,#NextLink {
    top:calc(50% - 68px);
    width:50px;
    height:73px;
    padding:23px 0 0 0;
    text-indent:-10px;
    font-size:35px;
    border-radius:0 60px 60px 0;
  }
  #NextLink {text-indent:6px;border-radius:60px 0 0 60px}
}

boxsizing {box-sizing: border-box}