/* ── GALLERY ── */
.gallery-header {
  padding: 5rem 3rem 3rem;
  text-align: center;
}

.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 3rem 3rem;
  list-style: none;
}

.gallery-filter li {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.gallery-filter li:hover,
.gallery-filter li.active {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  padding: 0 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.gallery-item .art-placeholder {
  width: 100%;
  transition: transform 0.5s ease;
}

.gallery-item:hover .art-placeholder {
  transform: scale(1.04);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 40, 37, 0);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: background 0.3s;
}

.gallery-item:hover .overlay {
  background: rgba(42, 40, 37, 0.45);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay-text {
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .overlay-text {
  opacity: 1;
}

.overlay-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  display: block;
  font-weight: 600;
}

.overlay-info {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: inherit;
  font-weight: 600;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 15, 0.96);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}



.lightbox-info {
  color: var(--white);
  max-width: 260px;
}

.lightbox-info h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.lightbox-info p {
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  font-family: var(--sans);
  font-weight: 300;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 20;
  transition: 0.2s;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,0.15);
}

.lightbox-arrow.left {
  left: -4rem;
}

.lightbox-arrow.right {
  right: -4rem;
}

 @media (max-width: 768px) {

  .lightbox {
    overflow-y: auto;
    padding: 2rem 0;
  }

  .lightbox-inner {
    flex-direction: column;
    max-width: 95vw;
    max-height: none;
    gap: 1rem;
    margin: auto;
  }

  .lightbox-art {
    width: 100%;
  }

  .lightbox-image {
    max-height: 55vh;
  }

  .lightbox-info {
    max-width: 100%;
    text-align: center;
  }

  .lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 999;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-arrow.left {
    left: 0.5rem;
  }

  .lightbox-arrow.right {
    right: 0.5rem;
  }

}