/* -----------------------------
   CAROUSEL — Cleaned & Working
   ----------------------------- */

/* Container */
.carousel-container {
  position: relative;
  width: 100%;
  height: 50vh;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;

  /* native swipe + snapping */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  /* make horizontal swipes reliable in nested layouts */
  touch-action: pan-x;
  overscroll-behavior-x: contain;

  /* hide scrollbars (optional) */
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* IE/Edge legacy */
}
.carousel-container::-webkit-scrollbar { display: none; }

/* Slides sit side-by-side; JS uses clientWidth * index */
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  /* snap to left so scrollLeft math is exact */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Background image fills slide */
.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;

  /* avoid image drag/ghosting */
  pointer-events: none;
}

/* Content overlay */
.carousel-overlay {
  color: #fff;
  padding: 2rem;
  border-radius: 10rem;
  text-align: center;
  max-width: 90vw;
  text-shadow: 0 0 12px #00000080,0 0 8px #00000080;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.carousel-dot {
  width: 14px;
  height: 14px;
  border-radius: 5000px;
  border: none;
  background: #d0e6d0;
  cursor: pointer;
  outline: 0;
  transition: background .5s, transform .5s, width .5s;
}
.carousel-dot.active {
  background: var(--petfood-green);
  width: 28px;
}

/* Controls (if you use arrow buttons) */
.carousel-controls{
  position: absolute;
  inset: 0;               /* cover the carousel area */
  width: 100%;
  display: flex;          /* <-- fixed missing semicolon */
  align-items: center;
  justify-content: space-between;
  pointer-events: none;   /* container ignores clicks */
  z-index: 10;
}
.carousel-btn {
  background: rgba(0, 0, 0, .25);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: .5rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;   /* buttons stay clickable */
  transition: background .2s;
}
.carousel-btn:hover { background: rgba(0, 0, 0, .45); }

/* Disable text/tap highlights for smoother swipes */
.carousel-container,
.carousel-container * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* -----------------------------
   Responsive tweaks
   ----------------------------- */
@media (max-width:880px) {
  .carousel-overlay {
    padding: 1.5rem 1rem;
    border-radius: 5rem;
    max-width: 95vw;
  }
  .carousel-overlay h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  .carousel-overlay p {
    font-size: 1rem;
    line-height: 1.4;
  }
  .carousel-btn {
    font-size: 1.5rem;
    padding: .4rem .8rem;
  }
}

@media (max-width:720px) {
  .carousel-overlay {
    padding: 1rem .5rem;
    border-radius: 3rem;
  }
  .carousel-overlay h1 { font-size: 1.2rem; }
  .carousel-overlay p { font-size: .9rem; }
  .carousel-btn { padding: .3rem .6rem; }
}

/*Closable bar at top*/
.close-bar {
  width: 100vw;
  background-color: var(--petfood-green-dark);
  position: relative;
  transition: all .3s ease;
  max-height: 200px;
  overflow: hidden;
}
.close-bar.closed {
  max-height: 0;
  padding: 0;
}
.close-bar p {
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-size: 1rem;
}
.close-bar button {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}







/* Container for the scrollable section */
.image-card-section {
  display: flex;
  padding: 0 1rem;
  align-items: center;
  justify-content: center;
}

/* Scrollable row with snapping */
.image-cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 1rem;
}

/* Wrapper for each card and title */
.image-card-wrapper {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: center;
  transition: transform 0.3s ease;
}
.image-card-wrapper:hover {
  transform: translateY(-5px);
}
/* Image styling */
.image-card-wrapper img {
  border-radius: 30px;
  max-width: 275px;
  height: auto;
}


/* Title styling */
.image-card-wrapper h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: var(--petfood-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon styling */
.image-card-wrapper h3 svg {
  fill: var(--petfood-green-dark) !important;
  margin-left: 0.5rem;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* space between images */
  justify-content: center;
  margin-bottom: 10px;
  max-width: 100vw !important;
}

.gallery img {
  height: auto;
  max-width: 20vw;
  object-fit: cover;
  border-radius: 8px;
}












/*Fix bc of closable bar at top*/
@media (max-width:625px) {
  #navbarNav.navbar-dropdown {
    top: 100px !important;
    height: calc(100vh - 100px) !important;
    max-height: calc(100vh - 100px) !important;
  }
}