.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 0;
}

.photo-item {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  border: none;
  background: #0a0a0a;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
}

.photo-item:hover img {
  transform: scale(1.1);
}

.photo-item.featured {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  position: relative;
}

.photo-item.featured img {
  display: block;
  height: auto;
  object-fit: contain;
}

.featured-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 900px);
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 2vw, 28px);
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.featured-scroll {
  display: block;
  margin-top: 10px;
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Lightbox modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: min(95vw, 1600px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s;
  z-index: 10001;
}

.lightbox-close:hover {
  opacity: 0.7;
}
