
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #080707;
  color: #d8d0ca;
  font-family: "Crimson Text", Georgia, serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6vw;
  border-bottom: 1px solid rgba(180,160,150,.15);
  color: #a39a95;
  font: 10px "Cinzel", serif;
  letter-spacing: .18em;
}

.page-header a,
.page-footer a {
  transition: color .25s;
}

.page-header a:hover,
.page-footer a:hover {
  color: #c65b62;
}

/* PAGE */

.page {
  width: min(1500px, 90vw);
  margin: auto;
  padding: clamp(55px, 8vw, 105px) 0 100px;
}

/* INTRO */

.intro {
  margin-bottom: clamp(50px, 7vw, 85px);
}

.eyebrow {
  margin: 0 0 14px;
  color: #a34a50;
  font: 10px "Cinzel", serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  color: #eee7e1;
  font: 500 clamp(42px, 7vw, 76px)/1.05 "Cinzel", serif;
  text-transform: uppercase;
}

.intro > p:last-child {
  margin: 20px 0 0;
  color: #8f8580;
  font-size: 18px;
}

/* GALLERY GRID */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 2px solid #76202a;
  background: #151111;
  cursor: pointer;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  transition:
    transform .7s ease,
    opacity .4s ease,
    filter .4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.045);
  opacity: 1;
  filter: brightness(1.12);
}

.gallery-item:focus-visible {
  outline: 1px solid #b44e56;
  outline-offset: 5px;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 55px;
  background: rgba(0,0,0,.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 15px 70px rgba(0,0,0,.7);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  border: 0;
  background: transparent;
  color: #d8d0ca;
  font: 40px "Crimson Text", serif;
  cursor: pointer;
  transition: color .25s;
}

.lightbox-close:hover {
  color: #c65b62;
}

/* FOOTER */

.page-footer {
  display: flex;
  justify-content: space-between;
  padding: 35px 6vw;
  border-top: 1px solid rgba(180,160,150,.15);
  color: #746a65;
  font: 9px "Cinzel", serif;
  letter-spacing: .18em;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .page-header {
    padding: 22px 5vw;
    font-size: 8px;
  }

  .page {
    width: 90vw;
    padding-top: 48px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox-close {
    top: 12px;
    right: 20px;
  }

  .page-footer {
    gap: 15px;
    font-size: 7px;
  }
}
