 :root {
  --paper: #e8dcc4;
  --paper-light: #f5efe6;
  --brown: #4a3728;
  --header: #9a6600;
  --accent: #AF4747;
  --shadow: 0 4px 12px rgba(0,0,0,.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--brown);
  background: url("images/paper-texture.jpg") repeat, var(--paper);
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1rem;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(86, 70, 50, .40);
  backdrop-filter: blur(3px);
  color: #f5efe6;
}

.brand {
  font-size: 1.3rem;
  font-weight: bold;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.brand a:hover {
  text-decoration: none;
}

.menu {
  position: relative;
}

summary {
  cursor: pointer;
  font-weight: bold;
  list-style: none;
  font-size: 1.3rem;
}

summary::-webkit-details-marker {
  display: none;
}

.menu nav {
  display: none;
  position: absolute;
  top: 90%;
  right: 0;
  min-width: 0;
  width: max-content;
  background: var(--paper-light);
  box-shadow: var(--shadow);
  border-radius: 10px;
  overflow: hidden;
}

.menu[open] nav {
  display: block;
}

.menu nav a {
  display: block;
  padding: 12px;
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
}

.menu nav a:hover {
  background: var(--accent);
  color: #f5efe6;
}

.hero {
  margin-top: -2.4rem;
  width: 100%;
  height: 65vh;
  min-height: 420px;
  background: url("images/hero/panorama.jpg") center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
}

.overlay {
  position: relative;
  text-align: center;
  color: #f5efe6;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.overlay h1 {
  font-size: 4rem;
  margin: 0;
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

section {
  background: rgba(255,250,242,.88);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

h2 {
  color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.gallery figure {
  margin: 0;
  background: rgba(245,239,230,.92);
  padding: .8rem;
  border-radius: 12px;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  filter: sepia(20%);
  transition: transform .2s ease;
}

.gallery img:hover {
  transform: scale(1.02);
}

figcaption {
  text-align: center;
  padding: .6rem 0;
}

footer {
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(86, 70, 50, .40);
  color: #f2e9de;
}

footer p {
  margin: 0;
}

footer a {
  color: #f2e9de;
  text-decoration: none;
}

.lightbox {
  touch-action: none;
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.92);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #f5efe6;
}

.lightbox,
.lightbox * {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
}

.lightbox img {
  max-width: 92%;
  max-height: 85%;
  display: block;
  position: relative;
  z-index: 2200;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform;
}

.close {
  position: absolute;
  top: 40px;
  right: 40px;
  color: #f5efe6;
  cursor: pointer;
  font-size: 3rem;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #f5efe6;
  cursor: pointer;
  user-select: none;
  padding: 20px;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover,
.next:hover,
.close:hover {
  opacity: .7;
}

.close,
.prev,
.next {
  z-index: 9999;
}

@media (max-width: 768px) {
  header {
    padding: 0.2rem 1rem;
  }

  .hero {
    height: 50vh;
    min-height: 320px;
    margin-top: -2.3rem;
  }

  .overlay h1 {
    font-size: 2.5rem;
  }

  main {
    padding: 1rem;
  }

  section {
    padding: 1.25rem;
  }

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