/* ==========================================================================
   Gallery Pages
   ========================================================================== */

.gallery,
.lego-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gallery img,
.lego-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--accent-soft);
  background: rgba(0, 0, 0, .3);
  padding: 12px;
  transition: .2s ease;
  cursor: pointer;
}

.gallery img:hover,
.lego-gallery img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 22px rgba(179, 18, 75, .35);
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  inset: 0;
  background-color: rgba(0, 0, 0, .82);
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.modal-content {
  width: 90vw;
  height: 90vh;
  object-fit: contain;
  border-radius: 18px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 11;
}

.close:hover,
.close:focus {
  color: #bbb;
}
