.gallery-page {
  display: grid;
  gap: 2rem;
}

.gallery-header {
  border-bottom: 1px solid var(--lc-border);
  padding-bottom: 0.75rem;
}

.gallery-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
}

.gallery-zone {
  display: grid;
  gap: 1rem;
}

.gallery-zone-title {
  margin: 0;
  font-size: 1.4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--lc-border);
  background: #ffffff;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-zoom-btn {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
}

.gallery-modal-dialog {
  width: 86vw;
  max-width: 86vw;
}

.gallery-img-modal {
  width: 100%;
  height: 70vh;
  object-fit: contain;
  background: #111111;
  border-radius: 8px;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  overflow-x: auto;
}

.gallery-thumb-btn {
  border: 1px solid var(--lc-border);
  background: #ffffff;
  padding: 2px;
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb-btn.active,
.gallery-thumb-btn:focus,
.gallery-thumb-btn:hover {
  opacity: 1;
  border-color: var(--lc-terracotta);
}

.gallery-thumb-btn img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

@media (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-modal-dialog {
    width: 96vw;
    max-width: 96vw;
  }
}
