/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, 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: #66bb6a;
  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;
}
/* Layout grid */
.layout {
  display: grid;
  grid-template-columns: 250px 1fr 250px; /* left - center - right */
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}


/* Sidebar: grid-managed, non-sticky (recommended) */
.sidebar {
  position: relative;    /* normal flow inside the grid column */
  background: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  min-width: 0;          /* prevents overflow in narrow layouts */
}

.sidebar h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #2c3e50;
}

.sidebar h4 {
  margin-top: 15px;
  font-size: 1rem;
  color: #555;
}

.ad-box {
  background: #eaeaea;
  border: 1px dashed #bbb;
  text-align: center;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #444;
}

/* Main content */
.content {
  min-width: 0; /* prevents overflow */
}

/* Instagram Reels Feed – Clean Final Version */
#reels-feed {
  max-width: 600px;        /* final chosen width */
  margin: 40px auto;       /* center on the page */
  padding: 20px;
  background: #f8fff8;     /* soft green background */
  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;
}

/* Reels Feed: Responsive */
@media (max-width: 880px) {
  #reels-feed {
    max-width: 95%;
    padding: 12px;
  }
}

/* Responsive: collapse sidebars on mobile */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar.left, .sidebar.right {
    display: none; /* hide sidebars on small screens */
  }
  
  }
  
/* =======================================================
   PHOTOGRAPHS PAGE — Clean Standalone Gallery Styles
   ======================================================= */

.photographs-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: system-ui, sans-serif;
}

.photographs-page h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-family: 'Playfair Display', serif;
}

/* Grid of photos */
.photo-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  padding-bottom: 2rem;
}

/* Individual images */
.photo-grid img {
  width: 100%;
  border-radius: 12px;
  border: 4px solid #c8e6c9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  object-fit: cover;
}

/* Highlight effect if needed later */
.photo-grid .highlight {
  border-color: #388e3c;
  box-shadow: 0 0 15px rgba(56,142,60,0.65);
}

/* Back to Top */
 #backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #66bb6a;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
#backToTop:hover {
  background: #388e3c;
}


.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.playing { border-color: #388e3c; box-shadow: 0 10px 22px rgba(56,142,60,0.08); }

.video-card a { display:block; width:100%; text-decoration:none; color:inherit; }
.insta-video { width: 100%; height: auto; display:block; background: #000; }

.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;
}
.video-caption {
  padding: 12px 14px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* responsive */
@media (max-width: 880px) {
  #reels-feed { padding: 12px; }
  .video-overlay { top: 8px; right: 8px; }
}
.video-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}


/* Fallback Thumbnail Styling */
.video-thumb {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  background: #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Hide the thumbnail if video is working */
.video-thumb.hidden {
  display: none;
}
/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #e8f5e9;
  color: #333;
  font-size: 0.9rem;
  margin-top: 2rem;
}
