* {
  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,
.nav button {
  font-size: .9rem;
}

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

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

.contact-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

.nav a, .nav button {
  opacity: .8;
}

.nav a:hover, .nav button: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;
}

.section-header h3,
.about-content h3,
.contact-section h3 {
  font-family: "CormorantGaramond", serif;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  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,
.contact-section {
  text-align: center;
}

.about-content{
  text-align: left;
}

.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;
}

/* AUCTION LINK */

.auction1 {
  display: inline-block;
  margin-top: .5rem;
  color: white;
  text-decoration: none;
  font-size: .9rem;
  opacity: .9;
}

.auction1:hover {
  text-decoration: underline;
  opacity: 1;
}

/* VIEW EXHIBIT LINK */

.view-exhibit {
  display: inline-block;
  margin-top: .25rem;
  color: white;
  text-decoration: none;
  font-size: .9rem;
  opacity: .7;
}

.view-exhibit:hover {
  opacity: 1;
}

/* SERVICE ENTRY */
/* SERVICES GRID */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 150px;
  background: #111;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: background .3s ease;
}

.service-item:hover {
  background: #181818;
}

.service-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  transition: transform .6s ease;
}

.service-item:hover img {
  transform: scale(1.06);
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.service-content h3 {
  font-family: "CormorantGaramond", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.service-content p {
  font-size: .95rem;
  line-height: 1.5;
  opacity: .75;
  margin-bottom: .75rem;
}

.service-link {
  color: white;
  font-size: .85rem;
  text-decoration: none;
  opacity: .7;
  transition: opacity .3s ease;
}

.service-link:hover {
  opacity: 1;
  text-decoration: underline;
}


/* RESPONSIVE SERVICES */

@media (max-width: 900px) {

  .services-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 500px) {

  .service-item {
    grid-template-columns: 110px 1fr;
  }

  .service-item img {
    width: 110px;
    height: 110px;
  }

  .service-content {
    padding: 1rem;
  }

  .service-content h3 {
    font-size: 1.6rem;
  }

  .service-content p {
    font-size: .85rem;
  }

}

/* 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;
  }

}