

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

html {
  scroll-behavior: smooth;
}

body {
  background: #0b0b0b;
  color: #f3f3f3;
  font-family: "EncodeSansSemi", sans-serif;
  line-height: 1.6;
}

/* HERO */

.hero {
  min-height: 100vh;

  background:
    linear-gradient(
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.75)
    ),
    url("/images/ui/home.jpeg");

  background-size: cover;
  background-position: center;

  display: flex;
  flex-direction: column;
}

/* NAVIGATION */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
}

.logo,
.nav a {
  font-size: .9rem;
}

.logo,
.subtitle {
  letter-spacing: .25rem;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav a,
.button {
  color: white;
  text-decoration: none;
  transition: .3s;
}

.nav a {
  opacity: .8;
}

.nav a:hover {
  opacity: 1;
}

/* HERO CONTENT */

.hero-content {
  margin: auto;
  max-width: 850px;
  padding: 2rem;
  text-align: center;
}

.subtitle {
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 1rem;
}

.hero h1,
.section-header h2,
.about-content h2,
.contact-section h2 {
  font-family: "CormorantGaramond", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.description {
  max-width: 650px;
  margin: auto;
  opacity: .85;
  font-size: 1.1rem;
}

/* BUTTON */

.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(255,255,255,.3);
}

.button:hover {
  background: white;
  color: black;
}

/* SECTIONS */

.exhibit-section,
.about-section,
.contact-section {
  padding: 6rem 6vw;
}

.section-header,
.about-content,
.contact-section {
  text-align: center;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header p,
.overlay span {
  opacity: .7;
}

/* EXHIBIT GRID */

.exhibit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 260px;
  gap: 1.5rem;
}

.exhibit-item {
  position: relative;
  overflow: hidden;
  display: block;
  background: #111;
}

.exhibit-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.exhibit-item:hover img {
  transform: scale(1.08);
}

.exhibit-item.tall {
  grid-row: span 2;
}

.exhibit-item.wide {
  grid-column: span 2;
}

/* OVERLAY */

.overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 2rem;

  color: white;
  font-family: "EncodeSansSemiBold", sans-serif;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.85),
      transparent
    );
}

.overlay h3 {
  font-family: "CormorantGaramond", serif;
  font-size: 2rem;
  font-weight: 500;
}

/* ABOUT */

.about-section {
  background: #121212;
}

.about-content {
  max-width: 800px;
  margin: auto;
}

/* FOOTER */

.footer {
  padding: 2rem;
  text-align: center;
  opacity: .5;
  font-size: .9rem;
}

/* RESPONSIVE */

@media (max-width: 768px) {

  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
  }

  .exhibit-item.wide {
    grid-column: span 1;
  }

}