/* ============================
   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; }

/* ---- Photo Modal with Info Panel ---- */
.photo-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.photo-modal-overlay.active { display: flex !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.photo-modal-close {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 2rem; cursor: pointer; z-index: 10000;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.photo-modal-close:hover { background: rgba(255,255,255,0.3); }

.photo-modal-body {
  display: flex; width: 100%; max-width: 1200px;
  height: 80vh; background: #000; border-radius: 12px; overflow: hidden;
}

/* Left: image */
.photo-modal-image-wrap {
  flex: 1 1 65%; min-width: 0;
  background: #111; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.photo-modal-image-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}

/* Right: info panel */
.photo-info-panel {
  flex: 0 0 35%; padding: 32px 28px; overflow-y: auto;
  background: #111; border-left: 1px solid #222;
}
.photo-panel-title { color: #fff; font-size: 1.35rem; font-weight: 700; margin: 0 0 14px 0; line-height: 1.4; }
.photo-panel-meta { color: #aaa; font-size: 0.88rem; margin-bottom: 18px; }
.photo-panel-meta i { color: #C8102E; margin-right: 6px; }
.photo-panel-desc { color: #ccc; font-size: 0.92rem; line-height: 1.7; white-space: pre-wrap; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-modal-body { flex-direction: column; height: 90vh; }
  .photo-modal-image-wrap { flex: 0 0 60%; }
  .photo-info-panel { flex: 0 0 40%; border-left: none; border-top: 1px solid #222; }
}

@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; }
  
  /* Photo modal mobile - force vertical stack */
  .photo-modal-overlay { 
    padding: 0; 
    align-items: flex-start;
    overflow-y: auto;
  }
  .photo-modal-body { 
    flex-direction: column;
    height: auto; 
    min-height: 100vh;
    width: 100vw;
    border-radius: 0;
  }
  .photo-modal-image-wrap { 
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    min-height: 200px;
  }
  .photo-modal-image-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .photo-info-panel { 
    flex: none;
    width: 100%;
    padding: 20px 16px;
  }
}

/* ---- Footer ---- */
.footer {
  background: #0a0a0a; color: #999; padding: 60px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.footer-logo span { font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer-about { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #999; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #C8102E; }
.footer-bottom {
  border-top: 1px solid #222; padding-top: 24px;
  text-align: center; font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
