/* ------------------------------------------------------------- */
/* -- My CSS                                                  -- */
/* ------------------------------------------------------------- */

    * { margin:0; padding:0; box-sizing:border-box; }
    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        background: #222;
        overflow-x: hidden;
        padding: 40px 0;
        padding-bottom: 0px; margin-bottom: 0px;
    }

    .greenmatter-header {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .greenmatter-lettering {
        width: 98%;
        max-width: 394px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .sig {
        width: 98%;
        max-width: 450px;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 12px;
        margin-top: 40px;
        
    }

    .is2 {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        padding-top: 60px;
        padding-bottom: 40px;
        /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;*/
        text-transform: uppercase;
        font-weight: 600;
        color: #AAA;
        text-align:center;
    }
  
   
    .figtree-1U {
      font-family: "Figtree", sans-serif;
      font-optical-sizing: auto;
      font-weight: 100;
      font-style: light;
      text-transform: uppercase;
      font-size: 16px;
    }

    .figtree-1 {
      font-family: "Figtree", sans-serif;
      font-optical-sizing: auto;
      font-weight: 100;
      font-style: light;
      font-size: 12px;

    }

    .figtree-4 {
      font-family: "Figtree", sans-serif;
      font-optical-sizing: auto;
      font-weight: 300;
      font-style: light;
      font-size: 36px;

    }


    /* Base styles (Mobile: Stacked) */
    .site-footer {
      display: flex;
      flex-direction: column; /* Stacks items vertically */
      gap: 20px;
      padding: 20px;
      max-width: 1200px;
      color: #AAA;
      /*background: #f4f4f4; */
    }


    /* Desktop Styles (768px and up) */
    @media (min-width: 768px) {
    .site-footer {
      flex-direction: row; /* Aligns items side-by-side */
      justify-content: space-between; /* Spreads columns evenly */
      align-items: flex-start;
      margin: 0 auto;
      color: #AAA;
    }


  .footer-column {
    flex: 1; /* Ensures each column takes up equal space */
    color: #AAA;
  }
}

/* ------------------------------------------------------------- */
/* -- Machine CSS                                             -- */
/* ------------------------------------------------------------- */

:root {
  --max-gallery-height: 360px;
  --thumb-height: 280px; /* Leaves room for dots and padding */
  --radius: 12px;
  --gap: 12px;
}

/* Container limits */
.gallery-wrapper {
  max-width: 1200px;
  max-height: var(--max-gallery-height);
  margin: 20px auto;
  padding: 10px;
  position: relative;
  overflow: hidden; /* Ensures nothing spills out */
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: var(--gap);
  padding-bottom: 10px;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.carousel-track::-webkit-scrollbar { display: none; }

.thumbnail {
  height: var(--thumb-height);
  width: auto; /* Width adapts to keep aspect ratio */
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Mobile: Shrink height so thumbnails stay visible in the viewport width */
@media (max-width: 768px) {
  :root {
    --thumb-height: 180px; /* Smaller height for mobile viewports */
  }
  .gallery-wrapper {
    padding: 5px;
  }
}

/* Hover Arrows */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: #111;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s, background 0.2s;
  z-index: 10;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-container:hover .nav-btn {
  opacity: 1; /* Visible on hover */
}

.nav-btn:hover { background: #fff; }
.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }

/* Pagination Dots */
.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  height: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.dot.active {
  background: #555;
  transform: scale(1.2);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.close-lightbox {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.close-lightbox:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 50px;
  cursor: pointer;
  padding: 30px;
  user-select: none;
}

.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }


/* Added to take care of video in the collections */
#lightbox-container {
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox-container img, 
#lightbox-container video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 4px;
}