.gallery-page #wrapper {
  background: #242629;
}

.gallery-page #main.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10.5rem;
  padding: 20rem 12.5rem 3rem 12rem;
}

.gallery-page .thumb {
  background: #2a2f35;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.gallery-page .thumb .image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-page .thumb .image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-page .thumb:hover .image img {
  transform: scale(1.05);
}

.gallery-page .thumb h2 {
  margin: 1rem 1rem 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.gallery-page .thumb p {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #d7d7d7;
}

.poptrox-overlay {
  background: rgba(0, 0, 0, 0.9);
}

.poptrox-popup {
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.poptrox-popup .caption {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.poptrox-popup .closer,
.poptrox-popup .nav-next,
.poptrox-popup .nav-previous {
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
}

@media screen and (max-width: 736px) {
  .gallery-page #main.gallery-grid {
    grid-template-columns: 1fr;
    padding: 1.25rem 0 2rem;
  }
}
