body, h1,h2,h3,h4,h5,h6 {font-family: "Montserrat", sans-serif}
.w3-row-padding img {margin-bottom: 12px}
.bgimg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url('./images/left.jpg');
  min-height: 100%;
}
a, a:hover {
  text-decoration: none;
}

#page {
  padding: 12px 24px;
}

/* Portfolio Images */
.container {
  position: relative;
  width: 100%;
  padding: 0;
}

.image {
  opacity: 1;
  display: block;
  width: 100%;
  max-height: 700px;
  transition: .5s ease;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.container:hover .image {
  opacity: 0.6;
}

.container:hover .middle {
  opacity: 1;
}

.text {
  background-color: #000000;
  color: white;
  font-size: 16px;
  padding: 16px 32px;
  opacity: 0.7;
}

/* Gallery Grid */
.gallery-grid-container {
  display: none;
}

.gallery-grid {
display: block;
}

/* Gallery */
* {box-sizing:border-box}

.gallery {
  background-color: red;
  position: absolute;
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
/* Slideshow container */

.slideshow-container {
  width: 100%;
  height: 100%;
  position: absolute;
  margin: auto;
  display: none;
}

/* Hide the images by default */
.mySlides {
  display: none;
  margin: 0;
}

.mySlide {
  max-width: 1200px;
  max-height: 800px;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  margin-left: 22px;
  margin-right: 22px;
  padding: 16px;
  color: darkgrey;
  font-weight: bold;
  font-size: 36px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* 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,0.8);
  color: white;
}

.active {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 15s;
}

.background-grey {
  background-color: lightgrey;
}

.margin-gallery {
  margin-left: 15px;
  margin-right: 15px;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Image slides */
/* min desktop */
@media all and (max-width: 1800px) {
  .mySlide {
    max-width: 1200px;
    max-height: 700px;
  }
}

/* tablet */
@media all and (max-width: 1200px) {
  .mySlide {
    max-width: 1000px;
    max-height: 650px;
  }
}
/* 
@media all and (max-width: 1200px) {
  .mySlide img {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
} */

/* mobile */
@media all and (max-width: 1000px) {
  .mySlide {
    max-width: 100%;
    max-height: 100%;
  }

  .prev, .next {
    color: white;
    background-color: rgba(0,0,0,0.1);
    margin-left: 10px;
    margin-right: 10px;
  }

  .margin-gallery h2 {
    text-align: center;
  }
}