

* {
  box-sizing: border-box;
}


.gallery {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: 1fr;
grid-column-gap: 1px;
grid-row-gap: 15px;
margin-inline:10%;
}

.gallery img {
  max-height:100px;
  max-width:100px;
  border:  5px #e01b56 ridge;
  border-radius: 10px;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 20px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.596);
}

/* Modal Content */
.modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  max-width: 710px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.modal-bg {
  position:fixed;
  width:100%;
  height:100%;
}
/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.mySlides {
  display: none;
}

.mySlides img {
  width:50%;
}
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top:200px;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}


.prev {
  left: 5vw;
  border-radius: 3px 0 0 3px;
}

/* Position the "next button" to the right */

.next {
  right: 5vw;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  color:#999;
}

img {
  margin-bottom: -4px;
}

.caption-container {
  text-align: center;
  background-color: rgba(0, 0, 0, 0);
  padding: 2px 16px;
  color: white;
}

.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}