body {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  background: url('images/bg-texture.jpg') repeat;
  background-color: #fdf8f3;
  color: #2e2a26;
}

header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #d3c4b3;
  z-index: 10;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #9b7d59;
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #7a6651;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #a8845c;
}

.hero {
  text-align: center;
  padding: 5rem 2rem;
  background-color: rgba(255, 255, 255, 0.8);
}

h1, h2 {
  color: #7d5b38;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 2rem;
}

.art-piece {
  position: relative;
  width: 240px;
  transform: rotateZ(calc(var(--r, 0) * 1deg));
  margin: 1rem;
  z-index: 1;
  animation: shuffleIn 0.6s ease-out both;
  animation-delay: calc(var(--index) * 10ms);
}

.art-piece::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: rgba(255,255,255,0.3);
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  z-index: -1;
  transform: rotate(-2deg);
}

.art-piece img {
  width: 100%;
  height: auto;
  border: 1px solid #d3c4b3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.art-piece img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.caption {
  font-size: 0.9rem;
  color: #5a4c3a;
  text-align: center;
  margin-top: 0.3rem;
  font-style: italic;
}

.tack {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #705d46 30%, #2e2a26 90%);
  border-radius: 50%;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.tack.tl { top: -10px; left: -10px; }
.tack.tr { top: -10px; right: -10px; }
.tack.bl { bottom: -10px; left: -10px; }
.tack.br { bottom: -10px; right: -10px; }

@keyframes shuffleIn {
  from { opacity: 0; transform: scale(0.9) rotate(-5deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

section {
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.6);
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid #d3c4b3;
}

a {
  color: #7a6651;
}

#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  border: 2px solid #fff;
  border-radius: 6px;
  transition: all 0.3s;
  object-fit: contain;
}