/* The Modal (background) */
.modal, .modalB {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-thumbnail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 390px;
  height: 390px;
  border-radius: 5px;
  object-fit: cover;
}

.modal-thumbnail img{
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.modal-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 60px;
    z-index: 1;
    cursor: pointer;
    border: 1px solid var(--white);
    background: var(--radial);
    color: var(--navy);
    padding: 10px;
    border-radius: 3px;
    font-weight: bold;
}

.modal-btn:hover {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
}

/* Modal Content */
.modal-content {
  position: relative;
  background-image: url(../img/background-modal.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--accentlight);
  margin: auto;
  padding: 0;
  width: 80%;
  height: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  position: absolute;
  right: 0;
  z-index: 20;
  color: var(--black);
  float: right;
  font-size: 28px;
  font-weight: bold;
  padding-right: 5px;
}

.close:hover,
.close:focus {
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
}

.closeB {
  position: absolute;
  right: 0;
  z-index: 20;
  color: var(--black);
  float: right;
  font-size: 28px;
  font-weight: bold;
  padding-right: 5px;
}

.closeB:hover,
.closeB:focus {
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 650px) { 

  .modal-thumbnail {
    width: 260px;
    height: 260px;
  }

  .modal-content {
    width: 260px;
    height: 50%;
  }

  .modal-btn {
    width: 100px;
    height: 40px;
}

}
