/* Gallery page specific styles */

.gallery-header {
  padding: 80px 20px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, rgba(0,0,0,0.02) 100%);
}

.gallery-header h1 {
  margin: 0 0 16px 0;
  font-size: clamp(32px, 6vw, 56px);
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

.gallery-header p {
  margin: 0;
  font-size: 18px;
  color: var(--ink-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.gallery-container {
  padding: 60px 20px;
}

.gallery-hint {
  text-align: center;
  font-size: 16px;
  color: var(--ink-secondary);
  margin-bottom: 40px;
  font-style: italic;
}

.gallery-nav {
  padding: 40px 20px;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.gallery-nav p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #666;
}

.gallery-nav-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-nav-buttons a {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d8cfc1;
  background: transparent;
  color: #4a4540;
  font-size: 13px;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.gallery-nav-buttons a:hover {
  border-color: #1a1816;
  color: #1a1816;
}

.gallery-nav-buttons a.active {
  background: #c9683e;
  color: #faf7f2;
  border-color: #c9683e;
}

/* Gallery grid layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }
}

.gal-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  width: 100%;
  min-width: 150px;
}

.gal-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: scale(1.02);
}

.gal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gal-img.loaded {
  opacity: 1;
}

