/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Verdana', sans-serif;
  background-color: #f1f8f6;
  color: #333;
  line-height: 1.6;
}

/* Banners */
.banner {
  background: #81c784;
  color: white;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  padding: 1rem;
}
.sub-banner {
  background: #a5d6a7;
  color: #004d40;
  text-align: center;
  font-size: 1rem;
  padding: 0.5rem;
  font-family: 'Playfair Display', serif;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  background: #51c472;
  padding: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
}
nav a:hover {
  color: #004d40;
}

/* DESKTOP BASE LAYOUT */
.layout {
  display: grid;
  grid-template-columns: 250px 400px 250px; /* left - center - right */
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ensure video-feed uses the middle column width and doesn't overflow */
.layout .video-feed {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.layout .photo {
    width: 100%;
    Max-width: 100%;
    Box-sizing: border-box;
    overflow: visible;
    
}

/* ============================================================
   CAPTION
   ============================================================ */
.photo-caption {
  padding: 12px 14px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* MOBILE RULES */
@media (max-width: 900px) {

  /* collapse to one column */
  .layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 10px 14px;
  }

  /* hide both sidebars on mobile */
  .layout > .left-sidebar,
  .layout > .right-sidebar {
    display: none;
  }

  /* content spans full width */
  .layout > .content {
    grid-column: 1;
  }

  /* small adjustments for reels/video overlay */
  #reels-feed { 
    max-width: 95%; 
    padding: 12px; 
  }

  .video-overlay { 
    top: 8px; 
    right: 8px;
  }
}

/* --INSTAGRAM REELS FEED-- */

#reels-feed {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: #f8fff8;
  border-radius: 12px;
  font-family: system-ui, -apple-system, sans-serif;
}

#reels-feed h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #2a4d2f;
  font-family: 'Playfair Display', serif;
}

/* Mobile adjustment */
@media (max-width: 900px) {
  #reels-feed {
    max-width: 99%;
        padding: 10px;
  }
}

/*--fOOTER--*/
            
footer {
  text-align: center;
  padding: 1rem;
  background: #e8f5e9;
  color: #333;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ============================================================
   VIDEO CARDS – UNCHANGED FROM YOUR VERSION
   ============================================================ */
/* ============================================================
   VIDEO CARD – BASE
   ============================================================ */
.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 4px solid #f0f6f0;
  position: relative;
}

/* ============================================================
   VIDEO CARD – ACTIVE STATE
   ============================================================ */
.video-card.playing {
  border-color: #388e3c;
  box-shadow: 0 10px 22px rgba(56,142,60,0.08);
}

/* ============================================================
   VIDEO CONTENT
   ============================================================ */
.video-card a {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.insta-video {
  width: 100%;
  height: auto;
  background: #000;
  display: block;
}

/* ============================================================
   VIDEO CONTROLS (Overlay, Buttons)
   ============================================================ */
.video-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.unmute-btn {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  font-size: 1rem;
}

/* ============================================================
   CAPTION
   ============================================================ */
.video-caption {
  padding: 12px 14px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ============================================================
   THUMBNAILS & FALLBACK IMAGES
   ============================================================ */
.video-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
}

.video-thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  background: #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.video-thumb.hidden {
  display: none;
}
