@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Minion Pro";
  src: url("assets/fonts/MinionPro-It.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: #fafafa;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.page {
  width: min(100%, 1440px);
  margin: 0 auto;
  overflow: hidden;
  background: #fafafa;
}

.hero {
  position: relative;
  height: 445px;
}

.hero > img {
  height: 100%;
}

.hero-copy {
  position: absolute;
  top: 188px;
  right: 0;
  left: 0;
  text-align: center;
}

.hero h1,
.hero p,
.footer p,
.story p {
  margin: 0;
}

.hero h1 {
  color: #000;
  font: 700 33px/1.2 "Montserrat", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero p {
  margin-top: 3px;
  color: #fff;
  font: italic 27px/1.2 "Minion Pro", serif;
}

.gallery {
  display: flex;
  width: 880px;
  margin: 70px 0 0 calc((100% - 880px) / 2 + 10px);
  flex-direction: column;
  gap: 25px;
}

.duo {
  display: grid;
  height: 513px;
  grid-template-columns: 416px 440px;
  gap: 24px;
}

.duo--reverse {
  grid-template-columns: 440px 416px;
}

.stack {
  display: grid;
  grid-template-rows: 244px 244px;
  gap: 25px;
}

.portrait {
  height: 513px;
}

.landscape,
.story {
  height: 244px;
}

.story {
  display: flex;
  padding: 0 31px;
  align-items: center;
  background: #fff;
}

.story p {
  color: #5a5a5a;
  font: italic 17px/25px "Minion Pro", serif;
}

.three {
  display: grid;
  height: 279px;
  grid-template-columns: 279px 278px 279px;
  gap: 22px;
}

.three img {
  height: 279px;
}

.gallery img[role="button"] {
  cursor: zoom-in;
}

.gallery img[role="button"]:focus-visible {
  outline: 3px solid #000;
  outline-offset: 4px;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.94);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.94);
}

.lightbox img {
  width: auto;
  max-width: calc(100vw - 160px);
  height: auto;
  max-height: calc(100dvh - 80px);
  object-fit: contain;
}

.lightbox button {
  position: fixed;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font: 400 42px/1 sans-serif;
  cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background: #fff;
  color: #000;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-previous,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-previous {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: 700 16px/1 sans-serif;
  cursor: pointer;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  background: #000;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.details {
  width: 880px;
  margin: 70px auto 0;
}

.details-copy {
  display: grid;
  padding: 42px;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
}

.details h2 {
  margin: 0 0 12px;
  font: 700 18px/1.3 "Montserrat", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.details p {
  margin: 0;
  color: #5a5a5a;
  font: italic 17px/25px "Minion Pro", serif;
}

.details a {
  color: inherit;
}

.details a:hover,
.details a:focus-visible {
  color: #000;
}

.location-map {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.footer {
  height: 219px;
  margin-top: 50px;
  border-top: 1px solid #e2e2e2;
}

.footer-inner {
  display: grid;
  width: 1080px;
  margin: 0 auto;
  padding-top: 78px;
  grid-template-columns: 456px 392px 232px;
}

.footer p {
  color: #000;
  font: 700 15px/22px "Montserrat", sans-serif;
  letter-spacing: 0.05em;
}

.footer-inner a {
  color: black;
  text-decoration: none;
}

.footer-inner a:hover {
  color: #7F7F72;
}

@media (max-width: 919px) {
  .hero {
    height: auto;
    aspect-ratio: 2587 / 740;
  }

  .hero-copy {
    top: 44%;
    left: 28%;
  }

  .hero h1 {
    font-size: clamp(12px, 3.3vw, 30px);
  }

  .hero p {
    font-size: clamp(11px, 2.7vw, 24px);
  }

  .gallery {
    width: calc(100% - 40px);
    margin: 40px auto 0;
    gap: 20px;
  }

  .duo,
  .duo--reverse,
  .three {
    height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stack {
    grid-template-rows: auto;
    gap: 20px;
  }

  .portrait,
  .landscape,
  .three img {
    height: auto;
  }

  .portrait {
    aspect-ratio: 416 / 513;
  }

  .landscape {
    aspect-ratio: 440 / 244;
  }

  .three img {
    aspect-ratio: 1;
  }

  .story {
    height: auto;
    min-height: 244px;
    padding: 45px 31px;
  }

  .details {
    width: calc(100% - 40px);
    margin-top: 40px;
  }

  .details-copy {
    padding: 31px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .location-map {
    height: 320px;
  }

  .footer {
    height: auto;
    margin-top: 40px;
  }

  .footer-inner {
    width: calc(100% - 40px);
    padding: 60px 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lightbox img {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 120px);
  }

  .lightbox button {
    width: 44px;
    height: 44px;
    font-size: 34px;
  }

  .lightbox-previous {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}
