body {
  font-family: sans-serif;
  background-color: #fafafa;
  margin: 0;
  padding: 20px;
  text-align: center;
}

h1 {
  margin-bottom: 20px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;     /* Center thumbnails horizontally */
  align-items: center;         /* Align them vertically in case of row height differences */
  gap: 10px;                   /* Space between thumbnails */
  padding: 20px;
}

.gallery img {
  max-width: 200px;
  height: auto;
  cursor: pointer;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  border-color: #999;
}


.lightbox {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
  overflow: hidden;
  touch-action: none;
}

.lightbox img {
  max-width: none;
  max-height: none;
  transform-origin: center center;
  transition: transform 0.05s ease;
  cursor: grab;
}


.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.nav-btn {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  transform: translateY(-50%);
}

.nav-btn:hover {
  background: rgba(255,255,255,0.2);
}

#prev {
  left: 20px;
}

#next {
  right: 20px;
}

.hidden {
  display: none;
}

.btn-etsy {
    display: inline-block;
    background: #f45800;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 0.5rem;
}

.btn-etsy:hover {
    background: #d34c00;
}