/* ============================
   photos.css — Travel Photos Page
   ============================ */

/* ---- Hero ---- */
.photos-hero {
  position: relative;
  height: 45vh; min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  background: url('https://images.unsplash.com/photo-1508804185872-d7badad00f7d?w=1600') center/cover no-repeat;
  overflow: hidden;
}
.photos-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,16,46,0.82), rgba(10,20,60,0.88));
}
.photos-hero-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  padding: 0 20px;
}
.photos-breadcrumb {
  font-size: 0.85rem; opacity: 0.85; margin-bottom: 16px;
}
.photos-breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.photos-breadcrumb a:hover { color: #FFD700; }
.photos-breadcrumb i { margin: 0 8px; font-size: 0.7rem; }
.photos-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  margin-bottom: 12px;
}
.photos-hero-content p {
  font-size: 1.05rem; opacity: 0.9;
}

/* ---- Photos Grid ---- */
.photos-section { padding: 80px 0; background: #f7f8fa; }
.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.photo-item {
  position: relative; border-radius: 12px; overflow: hidden;
  cursor: pointer;
}
.photo-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.photo-item:hover img { transform: scale(1.08); }
.photo-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff; padding: 28px 16px 14px;
  opacity: 0; transition: opacity 0.35s ease;
  font-size: 0.9rem; font-weight: 600;
}
.photo-item:hover .photo-overlay { opacity: 1; }

/* grid spans */
.photo-item.wide { grid-column: span 2; }
.photo-item.tall { grid-row: span 2; }

/* ---- Lightbox (simple) ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 90vh;
  border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  color: #fff; font-size: 2rem; cursor: pointer;
  background: none; border: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .photos-hero { height: 35vh; min-height: 240px; }
  .photos-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .photo-item.wide { grid-column: span 1; }
}
