* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: #F4F4F4;
  color: #55403e;
  overflow-x: hidden;
}

h1 {
  font-weight: 400;
  text-align: center;
  line-height: 0.85;
  margin: 0;
  padding: 1.5em 0 0.3em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 span {
  display: inline-block;
  white-space: nowrap;
  transform-origin: center top;
}

h1 .first {
  font-family: 'Qwitcher Grypen', cursive;
  font-weight: 700;
  font-size: 4rem;
}

h1 .last {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 2rem;
  margin-top: 0.15em;
}

.pagenav {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin: 0.5em 0 1.2em;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pagenav a {
  color: #a3867f;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pagenav a:hover,
.pagenav a:focus-visible {
  color: #55403e;
}

.pagenav a.active {
  color: #55403e;
  border-bottom-color: #55403e;
}

.gallery {
  column-count: 2;
  column-gap: 4px;
  padding: 4px;
}

@media (min-width: 600px) {
  .gallery { column-count: 3; }
}

@media (min-width: 900px) {
  .gallery { column-count: 4; }
}

@media (min-width: 1300px) {
  .gallery { column-count: 5; }
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 4px;
  break-inside: avoid;
  object-fit: cover;
  cursor: zoom-in;
}

.contact {
  display: flex;
  justify-content: center;
  gap: 1.1em;
  margin: 0 0 1.2em;
}

.contact a {
  color: #a3867f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.contact a:hover,
.contact a:focus-visible {
  color: #55403e;
}

.contact svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 13, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 3em 1em;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: #F4F4F4;
  cursor: pointer;
  padding: 0.5em;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 0.75em;
  right: 0.75em;
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 28px;
  height: 28px;
  display: block;
}

.lightbox-prev {
  left: 0.5em;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { display: none; }
}
