/* ===== GRID ===== */
.grid-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.photo-container {
  position: relative;
  height: 160px;
  overflow: hidden;
  cursor: pointer;
}

.photo {
  width: 100%;
  height: 100%;
  display: block;
}

.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  border-radius: 15px;
}

.photo-container:hover img {
  transform: scale(1.05);
}

/* Hover overlay */
.photo-hover {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  color: white;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}

.photo-container:hover .photo-hover {
  opacity: 1;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

/* nav */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.nav-prev { left: -60px; }
.nav-next { right: -60px; }

.close {
  position: absolute;
  top: -35px;
  right: 0;
  font-size: 60px;
  color: white;
  cursor: pointer;
}

/* thumbnails */
.thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 90%;
  margin-top: 20px;
  padding-bottom: 10px;
}

.thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  opacity: 0.5;
  cursor: pointer;
  border-radius: 4px;
}

.thumbnails img.active {
  opacity: 1;
  outline: 2px solid white;
}