* {
  box-sizing: border-box;
}

.vista-grid-img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
  cursor: pointer;

}

.vista-grid-img:hover {
  -ms-transform: scale(1.05); /* IE 9 */
  -webkit-transform: scale(1.05); /* Safari 3-8 */
  transform: scale(1.05); 
}

/* Main CSS */
.grid-wrapper > div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-wrapper > div > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.grid-wrapper {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  height: 500px;
  overflow: hidden;
}

.grid-wrapper .wide {
  grid-column: span 2;
}

.grid-wrapper .tall {
  grid-row: span 2;
}

.grid-wrapper .big {
  grid-column: span 2;
  grid-row: span 2;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  top: 100px;
  height:60%;
  width: 60%;
  max-width: 1200px;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 75px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  z-index:1000;
}

/* Mobile Responiveness for Grid Classes */
@media only screen and (max-width: 600px) {
  .modal-content {
    height: auto;
    width:90%;
  }

  .close{
    top:25px;
  }

  .vista-grid-prev,
  .vista-grid-next {
    top:50%;
  }
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Next & previous buttons */
div .vista-slideshow-container .vista-grid-prev, 
div .vista-slideshow-container .vista-grid-next {
  cursor: pointer;
  position: absolute;
  top: 60%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  user-select: none;
  -webkit-user-select: none;
  background-color: rgba(0, 0, 0, 0.8);
}

div .vista-slideshow-container .vista-grid-prev {
  border-radius: 0 3px 3px 0;
}

div .vista-slideshow-container .vista-grid-next {
  border-radius: 3px 0px 0px 3px;
}

/* Position the "next button" to the right */
.vista-grid-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.vista-grid-prev:hover,
.vista-grid-next:hover {
  background-color: rgba(0, 0, 0, 1);
}

.vista-slide-item {
  display: none;
}

.cursor {
  cursor: pointer;
}

#vista-scroller-container {
  width: 100%;
  height:150px;
  z-index:150 !important;
  overflow: visible;
}
 
/*photobanner*/
.vista-scroller-photobanner {
  height: 150px;
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  white-space: nowrap;
  z-index:150 !important;
}

.vista-scroller-photobanner:hover img{}

.zoom {
  margin: 0 auto;
  z-index:150 !important;
  transition: transform .2s; /* Animation */
}

.zoom:hover {
  z-index:150 !important;
  -ms-transform: scale(1.5); /* IE 9 */
  -webkit-transform: scale(1.5); /* Safari 3-8 */
  transform: scale(1.5); 
}

.zoom-main {
  transition: transform .2s; /* Animation */
}

.zoom-main:hover {
  z-index:100 !important;
  transform: scale(1.1); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  width: auto;
  padding: 16px;
  margin-top: -100px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index:1500;
  background-color: rgba(0,0,0,0.8);
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,1);
}

/* Slideshow container */
.vista-slideshow-container {
  max-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  margin: auto;
  font-family: Verdana, sans-serif;
}

.vista-slideshow-container * {box-sizing: border-box}
.vista-slideshow-container .vista-display-default-slide {display: none}
.vista-slideshow-container img {
  vertical-align: middle; 
  height: auto;
  width: 100%;
}

/* Fading animation */
.vista-slideshow-container .vista-display-fade {
  -webkit-animation-name: vista-slideshow-fade;
  -webkit-animation-duration: 1.5s;
  animation-name: vista-slideshow-fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes vista-slideshow-fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes vista-slideshow-fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .vista-slideshow-container :is(.prev, .next) {font-size: 11px}
}

.grid-container {
  padding: 10px;
  display: grid;
}

.grid-row {
  display: grid;
  grid-template-columns: 50% 50%;

}

.grid-item {
  padding: 20px;
  font-size: 30px;
  text-align: left;
}

.thumbnails-carousel {
  height:150px !important;
  width:16.6%;
  display: inline-block;
  object-fit: cover;
}

.slides-masonry {
  width:100%;
}

#vista-grid-load-btn {
  width:100%;
}

/* slide count element */
#vista-slide-number {
  top: 50px;
  z-index: 1;
  position: relative;
  float: right;
  padding: 8px;
  width: 40px;
  background:#000;
  color:#fff;
  text-align:center;
  margin-top: -50px;
  font-size: 9px;
  border-radius: 0px 0px 0px 3px;
  opacity: 0.6;
}
