* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: 1.3rem;
  font-family: "Oswald", sans-serif;
  background: #f9f9f9;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: auto;
  padding: 0 2rem;
}
.header-nav {
  height: 35vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.5rem;
  line-height: 1.2rem;
}
.page-title a {
  color: #b50d10;
  font-size: 3rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 0 0.6rem;
}
.nav-item a {
  color: grey;
}
.nav-item {
  flex: 1 0 10%;
  text-align: center;
}
.page-title a,
.nav-item a {
  text-decoration: none;
  letter-spacing: 0.2rem;
  padding: 0.8rem;
  font-size: 1.8rem;
  display: block;
}
.main-nav a:hover {
  color: #cd5c5c;
}

section {
  display: flex;
  min-height: 100%;
}
.grid-card1 img {
  position: relative;
  width: 100%;
}

.grid-card1,
.grid-card2
{
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;
  margin-bottom: 3rem;
  position: relative;
}
.grid-card1 img {
  width: 100%;
  height: auto;
  cursor: pointer;
}
.grid-card2 img {
  width: 100%;
  height: auto;
  cursor: pointer;
}
.grid-card8 {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;
  margin-bottom: 3rem;
}
.grid-card8 img {
  width: 300px;
  height: 300px;
  cursor: pointer;
}

.grid-card4 {
  display: grid;
  grid-template-columns: repeat(2, 460px);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;
  margin-bottom: 3rem;
}
.grid-card4 img {
  width: 460px;
  height: 300px;
  cursor: pointer;
}

.grid-card5 {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;
  margin-bottom: 3rem;
}
.grid-card5 img {
  width: 300px;
  height: 300px;
  cursor: pointer;
}

.grid-card6 {
  row-gap: 20px;
  gap: 30px;
  background-color: #f9f9f9;
  margin-bottom: 3rem;
  text-align: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 400px 150px;
  grid-template-rows: 400px 238px;
}

.grid-card6 img {
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  overflow: hidden;
}
.grid-card6 img:first-child {
  grid-column-start: 1;
  grid-column-end: 2;
}
.grid-card6 img:nth-child(2) {
  grid-column-start: 3;
  grid-column-end: 4;
}
.grid-card6 img:nth-child(3) {
  grid-column: span 4;
}

.grid-card7 {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;
  margin-bottom: 3rem;
}
.grid-card7 img {
  width: 300px;
  height: 300px;
  cursor: pointer;
}

@media screen and (max-width: 600px) {
  .header-nav {
    height: 20vh;
    margin-bottom: 0.5rem;
    line-height: 1.2rem;
  }
  .page-title a {
    font-size: 1.6rem;
  }
  .nav-item {
    flex: 1 0 10%;
  }
  .page-title a,
  .nav-item a {
    letter-spacing: 0.2rem;
    padding: 0.4rem;
    font-size: 1rem;
  }
  .grid-card1,
  .grid-card2
   {
    display: grid;
    grid-template-columns: auto;
    gap: 12px;
    margin-bottom: 1rem;
  }
  .grid-card1 img {
    width: 100%;
  }
  .grid-card2 img {
    width: 100%;
  }
  .grid-card8 {
    display: block;
    width: 100%;
  }
  .grid-card8 img {
    padding: 15px;
    width: 100%;
  }
  .grid-card4 {
    display: grid;
    grid-template-columns: repeat(2, 200px);
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 3rem;
  }
  .grid-card4 img {
    width: 200px;
    height: 100px;
    cursor: pointer;
  }
  .grid-card5 {
    display: block;
    width: 100%;
  }
  .grid-card5 img {
    display: block;
    padding: 15px;
    width: 100%;
  }
  .grid-card6 {
    display: block;
    width: 100%;
  }
  .grid-card6 img {
    display: block;
    padding: 15px;
    width: 100%;
  }
  .grid-card7 {
    display: block;
    width: 100%;
  }
  .grid-card7 img {
    display: block;
    padding: 15px;
    width: 100%;
  }
}
