:root {
  --primary: rgb(29, 21, 10);
  --secondary: #F4A300;
  --accent: #C0392B;
  --bg-light: #f8f9fa;
  --text-dark: #1C1C1C;
  --hover: #145A32;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Segoe UI', sans-serif;
  padding-top: 70px;
  background-color: var(--bg-light);
  color: var(--text-dark);
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; /* Prevents horizontal scroll */
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

.navbar {
  background-color: var(--primary) !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar-brand {
  font-weight: 700;
  color: var(--secondary) !important;
}

.nav-link {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--secondary) !important;
}

.section-heading {
  color: var(--primary);
  font-weight: 700;
}

.section {
  padding: 60px 15px;
}

.btn-success {
  background-color: var(--primary);
  border: none;
  color: #fff;
  transition: background-color 0.3s ease;
}

.btn-success:hover {
  background-color: var(--hover);
  color: #fff;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: .5rem;
}

footer {
  background-color: var(--primary);
  color: #fff;
  padding: 20px 0;
  margin-top: auto;
}

footer a:hover {
  color: var(--secondary);
}

.hero-banner {
  color: #000000;
  padding: 60px 0;
}

.hero-banner h1 {
  color: var(--secondary);
}

.fade-slideshow {
  position: relative;
  width: 100%;
  height: 400px; /* Fixed height for consistency */
}

.fade-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.fade-slideshow img.active {
  opacity: 1;
  position: relative;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22' /%3e%3c/svg%3e");
}

/* --- NEW GALLERY STYLES --- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.gallery-item-new {
  width: 100%;
  text-align: left;
}

.gallery-image-link {
  display: block;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease;
}

.gallery-image-link:hover {
    box-shadow: var(--card-hover-shadow);
}

.gallery-img-new {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-image-link:hover .gallery-img-new {
  transform: scale(1.05);
}

.gallery-item-caption {
  padding: 1rem 0.5rem;
}

.gallery-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.gallery-text {
  color: #6c757d;
  font-size: 0.95rem;
}


/* Responsive columns for gallery */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* --- MODAL STYLES --- */
#imageModal .modal-dialog {
    max-width: 90vw;
    width: auto;
}

#imageModal .modal-content {
  background-color: transparent;
  border: none;
}

#imageModal .modal-header {
  border-bottom: none;
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 10;
}
 #imageModal .btn-close {
    background-color: white;
    border-radius: 50%;
    padding: 0.5em;
    opacity: 0.8;
}
#imageModal .btn-close:hover {
    opacity: 1;
}

#imageModal .modal-body {
    padding: 0;
}

#imageModal .modal-image {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
}
