/* ============================
   videos.css — Travel Videos Page (Mobile Fix v20260512i)
   ============================ */

/* ---- 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-1547981609-4b6bfe67ca0b?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-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; }

/* ---- Videos Grid ---- */
.videos-section { padding: 80px 0; background: #0a0a0a; }
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card {
  background: #1a1a1a; border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(200,16,46,0.25);
}
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #111; }
.video-thumb img { width:100%; height:100%; object-fit: cover; transition: transform 0.45s ease; }
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.35s ease;
}
.video-card:hover .play-btn-overlay { opacity: 1; }
.play-btn-overlay i { font-size: 3rem; color: #fff; }
.video-info { padding: 16px 18px; }
.video-info h3 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.video-info p { color: #999; font-size: 0.82rem; }

/* ---- Video Modal ---- */
.video-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;
}
.video-modal-overlay.active { display: flex !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.video-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; line-height: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.video-modal-close:hover { background: rgba(255,255,255,0.3); }

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

/* Left: video player */
.video-player-wrap {
  flex: 1 1 65%; min-width: 0;
  background: #000; display: flex; align-items: center; justify-content: center;
}
.video-player-wrap video { width: 100%; height: 100%; object-fit: contain; }

/* Right: info panel */
.video-info-panel {
  flex: 0 0 35%; padding: 32px 28px; overflow-y: auto;
  background: #111; border-left: 1px solid #222;
}
.video-panel-title { color: #fff; font-size: 1.35rem; font-weight: 700; margin: 0 0 14px 0; line-height: 1.4; }
.video-panel-meta { color: #aaa; font-size: 0.88rem; margin-bottom: 18px; }
.video-panel-meta i { color: #C8102E; margin-right: 6px; }
.video-panel-desc { color: #ccc; font-size: 0.92rem; line-height: 1.7; margin-bottom: 22px; white-space: pre-wrap; }
.video-panel-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.video-tag {
  display: inline-block; background: rgba(200,16,46,0.18); color: #ff6b6b;
  font-size: 0.78rem; padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(200,16,46,0.35);
}

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

/* ---- Mobile: Force vertical stack ---- */
@media (max-width: 640px), (max-device-width: 640px) {
  .photos-hero { height: 35vh; min-height: 240px; }
  .videos-grid { grid-template-columns: 1fr !important; }
  
  /* Modal fullscreen on mobile */
  .video-modal-overlay { 
    padding: 0 !important; 
    align-items: flex-start !important;
    overflow-y: auto !important;
  }
  
  /* Force column layout */
  .video-modal-body { 
    flex-direction: column !important;
    height: auto !important; 
    min-height: 100vh !important;
    width: 100vw !important;
    border-radius: 0 !important;
    display: flex !important;
  }
  
  /* Video on top */
  .video-player-wrap { 
    flex: none !important;
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    height: auto !important;
    min-height: auto !important;
    position: relative !important;
    background: #000;
  }
  
  .video-player-wrap video {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  
  /* Info panel below */
  .video-info-panel { 
    flex: none !important;
    width: 100% !important;
    padding: 20px 16px !important; 
    border-left: none !important; 
    border-top: 1px solid #222 !important;
    overflow-y: visible !important;
  }
  
  /* Close button */
  .video-modal-close {
    top: 8px !important;
    right: 12px !important;
    background: rgba(0,0,0,0.6) !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 1.6rem !important;
    z-index: 99999 !important;
  }
  
  /* Info panel text */
  .video-panel-title { font-size: 1.1rem !important; }
  .video-panel-desc { font-size: 0.85rem !important; }
}
