/* the ourWork section wrapper */

#ourWork_section {
  margin-top: 5rem;
  background-color: #f1f1f1;
  /* height: 40rem; */
  padding: 1rem 0;
}

#galleryContainer {
    width: 80%;
    max-width: 80rem;
}
#galleryContainer > div {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  color: #9f9f9f;
}

#galleryContainer > div > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid black;
}

/* Grid */
#galleryContainer {
  display: grid;
  grid-gap: 5px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-auto-rows: 125px;
  grid-auto-flow: dense; /* Fill all spaces with fitted images */
}

.horizontal {
  grid-column: span 2;
}

.vertical {
  grid-row: span 2;
}

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

/* .galleryImg {
    width: 100%;
    display: block;
    margin: .5rem;
} */











/* title of section */

.ourWorkTitle {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  width: 100%;
}

/* image container */

.imgWrapper {
  width: 100%;
  max-width: 70rem;
  background-color: #303030;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 2rem 1rem;
  border-radius: 3px;
  margin: 0 1rem;
}

/* Slideshow container */

.slideshow-container {
  width: 100%;
  max-width: 60rem;
  height: 100%;
  min-height: 24rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* wrapper surrounding each image and content */

.mySlides {
  display: none;
}

/* image in the slides */

.slideImg {
  position: absolute;
  width: 100%;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

/* Next & previous buttons */

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s 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 {
  color: black;
  background-color: #00b9aa;
}

/* Number text (1/3 etc) */

.numbertext {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem;
  z-index: 1;
  position: absolute;
  top: 0;
}

/* Fading animation */

.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 2s;
  animation-name: fade;
  animation-duration: 2s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* the surrounding element around the images beneath the carousel */

.images {
  margin-top: 1rem;
}

/* image viewer */

/* Style the Image Used to Trigger the Modal */

.smWorkImg {
  border-radius: 5px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  width: 100%;
  max-width: 12rem;
  height: 10rem;
  margin: 1rem;
}

/* The Modal (background) */

#image-viewer {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  display: block;
  width: 100%;
  max-width: 30rem;
  animation-name: zoom;
  animation-duration: 0.6s;
  margin: 12rem auto 0 auto;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

#image-viewer .close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

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

/* see more button  */

.seeMoreBtn {
  font-weight: 500;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.05rem;
  display: inline-block;
  padding: 0.3rem 0;
  position: relative;
  text-align: center;
  cursor: pointer;
  color: white;
}

.seeMoreBtn:after {
  background: none repeat scroll 0 0 transparent;
  bottom: 0;
  content: "";
  display: block;
  height: 2px;
  left: 50%;
  position: absolute;
  background: #00b9aa;
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
  width: 0;
}

.seeMoreBtn:hover:after {
  width: 100%;
  left: 0;
}

/* the wrapper around all of the modal inner content */

#renderImgs {
  overflow-x: hidden;
  overflow-y: auto;
  height: 31rem;
  padding: 0 1rem;
  background-color: white;
}

/* gallery date */

.galleryDate {
  margin: 0.5rem 0;
  font-size: 1.5rem;
}

/* gallery divider line */

.galleryDivider {
  width: 100%;
  border: 2px solid black;
  margin: 0;
}

/* wrapper surround all the images for each date section */

.galleryImgsWrap {
  margin-top: 1rem;
  -webkit-column-count: 4;
  -moz-column-count: 4;
  column-count: 4;
  -webkit-column-gap: 1em;
  -moz-column-gap: 1em;
  column-gap: 1em;
  margin: 1.5em;
  padding: 0;
  -moz-column-gap: 1.5em;
  -webkit-column-gap: 1.5em;
  column-gap: 1.5em;
  font-size: 0.85em;
}

/* each gallery image */

.galleryImg {
  /* display: inline-block;
    margin: 0 0 1.5em;
    width: 100%;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 3px; */
}

/* the see more image modal */

/* gallery image modal styles */

.modal-window {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.575);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.modal-window:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-window > div {
  width: 90%;
  max-width: 80rem;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background: #303030;
  border-radius: 3px;
}

/* header for modal */

#modalHeader {
  background-color: #303030;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem;
}

.modal-close {
  color: #00b9aa;
  font-size: 2rem;
  text-align: center;
  /* width: 70px; */
  text-decoration: none;
}

.modal-close:hover {
  color: black;
}

/* ! MEDIA QUERIES */

@media only screen and (max-width: 1366px) {
  .carousel .controls {
    opacity: 1;
  }
}

@media only screen and (max-width: 991px) {
  #ourWork_section {
    margin-top: 1rem;
  }
}

@media only screen and (max-width: 959px) {
  /* the ourWork section wrapper */
  #ourWork_section {
    height: auto;
  }
  .smWorkImg:nth-last-child(1) {
    display: none;
  }
  /* wrapper surround all the images for each date section */
  .galleryImgsWrap {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
  }
}

@media only screen and (max-width: 735px) {
  .smWorkImg:nth-last-child(2) {
    display: none;
  }
  /* wrapper surround all the images for each date section */
  .galleryImgsWrap {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
  }
}

@media only screen and (max-width: 516px) {
  .slideshow-container {
    height: 19rem;
  }
  /* wrapper surround all the images for each date section */
  .galleryImgsWrap {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
  }
}

@media only screen and (max-width: 474px) {
  .slideshow-container {
    height: 17rem;
  }
}

@media only screen and (max-width: 414px) {
  .slideshow-container {
    height: 15rem;
  }
}
