/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 3000; /* Sit on top */
    padding-top: 150px; /* 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.85); /* Black w/ opacity */
}

/* Modal Button/Link */
.myBtn {
    cursor: pointer;
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    border-top: none;
    width: 1000px;
    max-width: 95%;
    max-height: 600px;
    max-height: 70vh;
    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;
    overflow: scroll;
    overflow-x: hidden;
}

/* 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;
    top: -2px;
    right: 0;
    color: #000;
    /*float: right;*/
    font-size: 40px;
    font-weight: bold;
    margin-right: 10px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    background-color: #fff;
    color: #0260a6;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 1000px;
    max-width: 95%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.modal-header h2 {
    position: relative;
    margin: 0;
    padding: 5px 10px;
}

.modal-body {padding: 20px;}
.modal-body .wp-post-image {
    width: 100%;
}

.no-scroll {
    overflow: hidden;
}

/* Galleries */
.gallery-modal {
    overflow: hidden;
    padding-top: 70px;
}
.gallery-modal .modal-content {
    height: auto;
    max-height: 100%;
    width: 1000px;
    max-width: 95%;
    overflow: hidden;
}
.gallery-modal .modal-header {
    width: 1000px;
    max-width: 95%;
}
.gallery-modal .modal-body {
    padding: 0;
}
.lightbox-gallery-container {
  max-height: 100%;
  background-color: black;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.lightbox-gallery-container div:first-child {
  display: inline-block;
}
.lightbox-gallery-container div {
  background-color: #fff;
  width: 100%;
  display: inline-block;
  display: none;
}
.lightbox-gallery-container img {
  width: 100%;
  height: auto;
}

.lightbox-gallery-button {
  position: absolute;
  z-index: 110;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 50px;
  border-radius: 50%;
  line-height: 0.8;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  padding: 0;
  height: 50px;
  width: 50px;
  cursor: pointer;
}
.lightbox-gallery-button:hover, .lightbox-gallery-button:focus, .lightbox-gallery-button:active {
  background-color: #0260a6;
  color: #fff;
}

.lightbox-gallery-next {
  right: 5px;
}

.lightbox-gallery-prev {
  left: 5px;
}

.lightbox-gallery-count {
  position: absolute;
  bottom: 0;
  background-color: #000;
  color: #fff;
  text-align: center;
  left: 0;
  right: 0;
  margin: auto;
  padding: 10px;
}

/* Media Queries */
@media only screen and (max-width: 1023px) {
    .gallery-modal .modal-content,
    .gallery-modal .modal-header {
        /* width: 60%; */
    }
}
@media only screen and (max-width: 860px) {
    .modal-content,
    .modal-header {
        width: 90%;
    }
    .gallery-modal .modal-content,
    .gallery-modal .modal-header {
        width: 90%;
    }
    .modal-header h2 {
        font-size: 18px;
    }
    .close {
        font-size: 32px;
        top: -4px;
    }
    .lightbox-gallery-button {
        font-size: 40px;
        height: 40px;
        width: 40px;
    }
}