body {
  background-color: #dfdad1;
  font-family: "Open Sans Condensed", arial;
  margin: 0 20px;
}

.body-wrapper {
  display: grid;
  grid-template-columns: 263px 1fr;
  grid-template-rows: min-content 1fr auto;
  grid-template-areas:
    "nav main"
    "footer main"
    "thumbnails thumbnails";
  max-width: 830px;
  margin: 0 auto;
}
.nav-wrapper {
  grid-area: nav;
}
.sidebar-nav {
  margin-top: 100px;
  width: 263px;
}
.main {
  grid-area: main;
}
.footer-wrapper {
  grid-area: footer;
  align-self: start;
}

.hero-menu {
  display: flex;
  flex-direction: column;
  margin-top: 70px;
  padding: 0;
}
.hero-menu,
.hero-menu .submenu {
  list-style: none;
}
.menu-item > a {
  display: block;
  color: #696262;
  text-decoration: none;
  font-size: 17px;
  margin-bottom: 10px;
}
.menu-item a:hover {
  color: #3f8bb0;
}

.menu-item.has-submenu {
  position: relative;
}
.submenu {
  display: none;
  position: absolute;
  left: 30%;
  top: 0;
  white-space: nowrap;
}
.menu-item.has-submenu:hover .submenu,
.menu-item.has-submenu:focus .submenu {
  display: block;
}
.menu-item.has-submenu.active .submenu {
  display: block;
}

.submenu a.current {
  color: #844545;
}
.submenu a {
  color: #3f8bb0;
  text-decoration: none;
  font-size: 17px;
}
.submenu li {
  margin-bottom: 10px;
}

.submenu a:hover {
  color: #844545;
}
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.home {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.sign {
  margin-top: 80px;
}

.slideshow {
  position: relative;
  width: 517px;
  height: 362px;
  margin-top: 146px;
  overflow: hidden;
}
.slideshow img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.footerlinks {
  margin-top: 95px;
  color: #948080;
  font-size: 13px;
}
.footerlinks a {
  text-decoration: none;
}
.languages a {
  color: #696262;
}
.designed a,
.photographer a {
  color: #948080;
  margin-top: 5px;
}
.designed a:hover,
.photographer a:hover {
  color: #696262;
}

.about {
  position: relative;
  margin-top: 190px;
  max-width: 517px;
}
.bio h1 {
  border-bottom: 1px dotted #948080;
  padding-bottom: 10px;
  color: #948080;
  letter-spacing: 1px;
  font-size: 15px;
  font-weight: normal;
  padding-top: 20px;
}
.bio p {
  color: #696262;
  font-size: 15px;
  text-align: justify;
  margin: 0;
  margin-bottom: 10px;
}

.gallery {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}

.main-image {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  height: 579px;
  margin: 0;
}
.main-image img {
  max-height: 100%;
  object-fit: cover;
  margin-bottom: 10px;
}
.caption {
  font-size: 12px;
  color: #696262;
  margin-bottom: 20px;
}

.thumbnails {
  grid-area: thumbnails;
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  max-width: 830px;
}
.thumbnails.overlap {
  justify-content: flex-start;
  overflow-x: auto;
  gap: 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

.thumbnails img {
  margin: 0 0 3px 3px;
  width: 73px;
  height: 67px;
  object-fit: cover;
  cursor: pointer;
}

.thumbnails.overlap img {
  flex: 0 0 auto;
  margin: 0 0 2px 2px;
  width: 66px;
  height: 58px;
  object-fit: cover;
}
.thumbnails.overlap::-webkit-scrollbar {
  height: 6px;
}

.thumbnails.overlap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.thumbnails.overlap::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.thumbnails.overlap::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

.exhibitions {
  position: relative;
  margin-top: 210px;
  width: 517px;
}
.exhibitions h1,
.partnerships h1 {
  font-size: 15px;
  border-bottom: 1px dotted #948080;
  padding-bottom: 10px;
  color: #948080;
  letter-spacing: 1px;
  font-weight: normal;
}

.exhibitions h2,
.partnerships h2 {
  color: #948080;
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: normal;
  margin-top: 30px;
  margin-bottom: 0;
}
.exhibitions ul,
.partnerships ul {
  padding: 0 0 0 20px;
  margin: 0;
}

.exhibitions li,
.partnerships li {
  color: #696262;
  font-size: 15px;
  text-align: justify;
  margin: 0;
  margin-bottom: 5px;
}

.partnerships {
  width: 530px;
  margin-top: 190px;
}
.partnerships img {
  width: 530px;
  margin-bottom: 40px;
}

.publications {
  width: 517px;
  margin-top: 190px;
}

.pub-links dt a {
  text-decoration: none;
  color: #948080;
  letter-spacing: 1px;
  font-size: 16px;
}
.pub-links dd {
  color: #696262;
  margin: 0 0 10px 0;
  font-size: 13px;
}

.pub-article,
.public {
  border-top: 1px dotted #948080;
  margin-top: 25px;
  padding-top: 20px;
}
.pub-article h2 {
  color: #948080;
  letter-spacing: 1px;
  font-size: 15px;
  font-weight: normal;
  margin-bottom: 0;
}
.pub-article p {
  color: #696262;
  font-size: 15px;
  text-align: justify;
  margin: 0 0 10px 0;
}
.pub-article .author {
  font-size: 14px;
  margin: 0;
}
.public {
  width: 517px;
}
.public h1 {
  color: #948080;
  letter-spacing: 1px;
  font-size: 15px;
  font-weight: normal;
  margin-top: 0;
}
.public h2 {
  color: #696262;
  font-size: 15px;
  text-align: justify;
  margin: 20px 0 10px 0;

  font-weight: normal;
}
.public ul {
  margin: 0;
  padding-left: 20px;
}
.public li {
  color: #696262;
  font-size: 15px;
  text-align: justify;
  margin: 0;
  margin-bottom: 5px;
}
.public a {
  color: #948080;
  text-decoration: none;
}

.contact {
  margin-top: 210px;
  width: 517px;
}
.contact a {
  color: #3f8bb0;
  text-decoration: none;
}
.contact p {
  font-size: 15px;
  margin: 0;
}
.contact h1 {
  font-size: 15px;
  border-bottom: 1px dotted #948080;
  padding-bottom: 10px;
  margin: 0;
  color: #948080;
  letter-spacing: 1px;
  font-weight: normal;
}

@media (max-width: 830px) {
  body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #dfdad1;
    z-index: 998;
  }
  .body-wrapper {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "nav"
      "main"
      "thumbnails"
      "footer";
    min-height: 100vh;
  }

  .nav-wrapper {
    grid-area: nav;
  }
  .sidebar-nav {
    position: relative;
    z-index: 999;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-top: 40px;
  }
  .nav-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .main {
    grid-area: main;
  }

  .hero-menu {
    display: none;
    flex-direction: column;
    margin-top: 80px;
  }

  .hamburger {
    display: block;
    color: #696262;
  }

  .hero-menu.show {
    display: flex;
  }

  .submenu {
    position: static;
    left: auto;
    top: auto;
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out;
    padding: 0;
  }

  .menu-item.has-submenu.active > .submenu {
    max-height: 500px;
  }

  .menu-item.has-submenu > a {
    cursor: pointer;
  }
  .menu-item.has-submenu > a::after {
    content: "";
    position: absolute;
    right: 0;
    transform: rotate(0deg);
    width: 13px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2213%22%20height%3D%228%22%20viewBox%3D%220%200%2013%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0.353516%200.353546L6.35352%206.35355L12.3535%200.353546%22%20stroke%3D%22%23696262%22/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.25s ease;
  }
  .menu-item.has-submenu.active > a::after {
    transform: rotate(180deg);
  }
  .menu-item.has-submenu.active > a {
    border-bottom: 1px dotted #696262;
  }

  .footer-wrapper {
    grid-area: footer;
    margin-bottom: 20px;
    align-self: end;
    z-index: 999;
  }

  .slideshow {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: auto;
    aspect-ratio: 517 / 362;
    overflow: hidden;
    margin-top: 20px;
  }

  .slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  .sign {
    margin-top: 20px;
  }
  .sign img {
    width: 80px;
  }
  .gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 20px;
  }

  .main-image {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 400px;
    margin: 60px 0 0 0;
    width: calc(100vw - 40px);
  }
  .main-image img {
    height: auto;
    width: 100%;
    object-fit: cover;
    margin-bottom: 10px;
  }
  .caption {
    font-size: 12px;
    color: #696262;
    margin-bottom: 20px;
  }

  .thumbnails {
    display: flex;
    justify-content: flex-start;
    grid-area: thumbnails;
    flex-wrap: wrap;
  }
  .about {
    position: relative;
    margin-top: 20px;
  }
  .exhibitions {
    margin-top: 20px;
    width: auto;
  }
  .partnerships {
    width: auto;
    margin-top: 20px;
  }
  .partnerships img {
    width: 100%;
    max-width: 100vw;
    margin-bottom: 40px;
  }
  .publications {
    width: auto;
    margin-top: 20px;
  }
  .public {
    width: auto;
  }
  .publications img {
    width: 100%;
    max-width: 100vw;
  }
  .contact {
    width: 100%;
  }
}
