.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
}

.gallery-item {
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden; /* important to crop overflow */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* fills container, crops image */
    border-radius: 8px;
}
/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  /* Make sure this is relative for the button to position absolutely */
  position: fixed;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 15px #fff;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10000;
  font-weight: bold;
  line-height: 1;
  user-select: none;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #ff4444;
}