:root {
  --color-bg: #262626;
  --color-primary: #6b8e23;
  --color-primary-dark: #556b2f;
  --color-text: #3b3b3b;
  --carousel-height: 80vh;
  --gap: 16px;
  --transition: 400ms ease;
}

/* Base reset */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  overflow-x: hidden;
}

/* Navbar */
.navbar-custom { background: var(--color-primary); }
.navbar-custom .navbar-brand,
.navbar-custom .nav-link { color: #fff; }
.navbar-custom .nav-link:hover { color: #f3f3f3; text-decoration: underline; }

/* =========================================================
   DESKTOP CAROUSEL (Original Look Restored)
   ========================================================= */
.carousel {
  width: 100%;
  height: var(--carousel-height);
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  background: var(--color-bg);
  display: flex;
  justify-content: center; /* ✅ back to centered layout */
  align-items: center;     /* ✅ vertically center */
}

.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center; /* ✅ center slides on desktop */
  gap: var(--gap);
  height: 100%;
}

.carousel-track a {
  flex: 0 0 18%;
  height: 100%;
  text-decoration: none;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  opacity: 0.45;
  transform: scale(0.9);
  transition: all var(--transition);
}

.carousel-track img.active {
  transform: scale(1.1);
  opacity: 1;
  border: 3px solid var(--color-primary);
  z-index: 2;
}

.carousel-track.dim-others img:not(.active) {
  opacity: 0.25;
  transform: scale(0.85);
}

/* Caption */
.photo-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.photo-container:hover .photo-caption,
.photo-container img.active + .photo-caption {
  background: rgba(0, 0, 0, 0.65);
}

/* =========================================================
   MOBILE OVERRIDES (Keep working mobile version)
   ========================================================= */
@media (max-width: 768px) {
  .carousel {
    justify-content: flex-start; /* ✅ do not center slides */
    align-items: stretch;
  }

  .carousel-track {
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
  }

  .carousel-track a {
    flex: 0 0 100%;
    max-width: 100%;
    height: 100%;
  }

  .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    z-index: 10;
  }

  .carousel-button.prev { left: 10px; }
  .carousel-button.next { right: 10px; }
  .carousel-button:disabled { opacity: 0.4; }

  /* Simplify image look for mobile */
  .carousel-track img { transform: none; opacity: 1; border: none; }
  .carousel-track.dim-others img:not(.active) { opacity: 1; transform: none; }
}

/* Show the line break only on mobile */
.mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .mobile-break {
    display: inline;
  }
}
