* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: default;

  --dark-brown: hsl(24, 51%, 24%);
  --light-brown: hsl(23, 71%, 58%);
  --hw-gradient: linear-gradient(hsl(24, 51%, 24%), hsl(23, 71%, 58%));
  --white: hsl(0, 0%, 95%);
  --dark-gray: hsl(240, 3%, 11%);
  --light-gray: hsl(240, 24%, 96%);
  --light-gray-2: hsl(240, 6%, 83%);

  scroll-behavior: smooth;
}

section#portfolio {
  padding-top: 0;
}

.button {
  display: inline-block;
  padding: 0.5em 1.5em;
  background: hsl(0, 0%, 100%) !important;
  font-family: "Bahnschrift", sans-serif;
  color: var(--dark-gray) !important;
  font-size: 1rem;
  cursor: pointer;
  border: solid 2px var(--dark-brown) !important;
  margin: 1rem;
  -webkit-transition: background 0.3s;
  -moz-transition: background 0.3s;
  transition: background 0.5s;
  transition: 0.5s cubic-bezier(0.5, 0.82, 0.165, 1);
}

.button:hover {
  border: solid 2px var(--light-brown) !important;
  background-color: var(--light-gray);
  letter-spacing: 8px;
}

.button:active,
.button.is-checked {
  border: solid 2px var(--light-brown) !important;
  color: var(--light-brown) !important;
  outline: none;
  transition: 0.5s cubic-bezier(0.5, 0.82, 0.165, 1);
}

.button-group {
  margin: 1vw 0;
  text-align: center;
}

.button-group:after {
  content: "";
  display: block;
  clear: both;
}

img {
  vertical-align: middle;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.grid article {
  background-color: #ffffff;
  display: block;
  float: left;
  margin: 1vw;
  width: 23%;
}

@media (max-width: 1024px) {
  .grid article {
    width: 31.3%;
  }
}

@media (max-width: 700px) {
  section#portfolio {
    padding-top: 8vw;
  }
  .grid article {
    width: 48%;
  }
  .modal-content {
    margin: auto;
    width: 100%;
    max-width: 1200px;
  }
  .close {
    top: 10vh !important;
    right: 5vw;
    font-size: 35px;
    font-weight: bold;
  }
  #grid-container {
    max-height: 1000vw;
    padding-bottom: 2vw;
  }
  .button {
    padding: 2vw 2%;
    background: #ffffff;
    font-family: "Bahnschrift", sans-serif;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    margin: 0.5vw;
  }
  .modal-content {
    top: 20vh;
    width: 95% !important;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: none;
  margin: auto;
  padding: 0;
  width: 50%;
  max-width: 1200px;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10vw;
  right: 3.5vw;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.mySlides {
  display: none;
}

.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-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);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

.demo {
  opacity: 0.3;
}

.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);
}

.row > .column {
  padding: 0 0.5rem;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.column {
  float: left;
  width: 6%;
}

section#portfolio h1 {
  padding: 7vw 0 0 10vw;
}

section#portfolio {
  min-height: 50vw;
}

#grid-container {
  max-height: 1000vw;
  padding-bottom: 1vw;
}
