* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  font-size: 62.5%;
}

body {
  font-family: sans-serif;
  margin: 0;
}

.container {
  width: 90vw;
  max-width: 120rem;
  margin: 0 auto;
}
.container-nav {
  width: 90vw;
  max-width: 120rem;
  margin: 0 auto;
}

section {
  background-color: #e6e6e6;
  padding: 2rem 2rem 6rem;
  margin-top: 2rem;
}

.text-center {
  text-align: center;
}

.bg--color {
  background-color: #eeeeee;
}

.mt-4 {
  padding-top: 4rem;
}
.mt-6 {
  padding-top: 6rem;
}

.mt-2 {
  padding-top: 2rem;
}

.pb-2 {
  padding-bottom: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.heading-primary {
  font-size: 2rem;
}

.heading-secondary {
  font-size: 1.6rem;
}

.heading-normal {
  font-size: 1.2rem;
}

.text-decoration-none {
  text-decoration: none;
}
.link {
  background-color: #0000ff;
  color: #fff;
  padding: 1rem;
}

.link:hover {
  color: #00c3ff;
  text-decoration: underline;
}

header {
  color: #fff;
  background-color: #0000ff;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}
.nav-title {
  color: #fff;
}
.nav-title:hover {
  color: #e6e6e6;
}

nav ul li {
  font-size: 1.4rem;
  list-style: none;
  display: inline-block;
  margin-right: 1rem;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
}

nav ul li a:hover {
  text-decoration: underline;
  color: #00ffff;
}

/* You define the style of our previews here, you are using flex to display the images 
     "responsively". */

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  row-gap: 6rem;
  column-gap: 3rem;
}

/* .img {
    height: 300px;
} */

.img--wrapper {
  height: 300px;
  margin-top: 1.5rem;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.preview {
  max-width: auto;
  height: 100%;
  object-fit: cover;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding: 10px 62px 0px 62px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  padding: 0 0 0 0;
  width: 100vh;
  max-width: 800px;
}

/* Same with your slides, you set the display to none, because you want to choose which 
     one is shown at a time. */

.slide {
  display: none;
}

.image-slide {
  width: 100%;
}

.modal-preview {
  width: 80vw;
}

.dots {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* You want the previews a little transparent to show that they are "inactive". 
     You then add an .active or :hover class to animate the selections for your user when
     they interact with your controls and clickable content.
   */

img.preview,
img.modal-preview {
  cursor: pointer;
}

img.active,
.preview:hover,
.modal-preview:hover {
  opacity: 0.6;
  color: #0000ff;
}

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);
}

.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;
}

.previous,
.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;
}

.previous {
  left: -100px;
  border-radius: 3px 0 0 3px;
}
.next {
  right: -100px;
  border-radius: 3px 0 0 3px;
}

.previous:hover,
.next:hover {
  background-color: rgba(156, 152, 152, 0.8);
}

footer {
  margin-top: 4rem;
  background-color: #0000ff;
  padding: 1.5rem 0;
}

footer p {
  color: #fff;
  text-align: center;
  font-size: 1.4rem;
}
