:root {
  --primary: rgb(29, 21, 10);
  --secondary: #F4A300;
  --accent: #C0392B;
  --bg-light: #f8f9fa;
  --text-dark: #1C1C1C;
  --hover: #145A32;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  padding-top: 70px;
  background-color: var(--bg-light);
  color: var(--text-dark);
  text-align: center;
  overflow-x: hidden;
}

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;
}

.section-heading {
  color: var(--primary);
  font-weight: 700;
}

/* --- NEW GALLERY STYLES --- */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.gallery-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item-v2 {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-v2:hover {
    transform: translateY(-5px) scale(1.03); /* Added scale transform */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 10; /* Ensures the hovered item is on top */
}

.gallery-image-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.gallery-img-v2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item-v2:hover .gallery-img-v2 {
    transform: scale(1.05); /* Reduced scale for a more subtle effect */
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.overlay-text h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.overlay-text span {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- 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 .modal-body {
    padding: 0;
}

#imageModal .modal-image {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
}
