* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #991A02;
  color: white;
}

/* ================= NAVBAR ================= */
.navbar {
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  /* Pushes Logo Left, Buttons Right */
  align-items: center;
  padding: 0 2rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}



.navbar.scrolled {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-img {
  height: 80px;
  transition: height 0.3s ease;
}

.navbar.scrolled .logo-img {
  height: 70px;
}

.nav-buttons {
  display: flex;
  gap: 20px;
  margin-left: auto;
  /* Force-pins buttons to the right */
}

.nav-btn {
  text-decoration: none;
  color: #991A02;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar.scrolled .nav-btn {
  color: #991A02;
}

/* Hover effect on the default Red Background */
.nav-btn:hover {
  background-color: rgba(52, 50, 50, 0.2);
  color: #991A02;
}

.nav-btn.active {
  background-color: #991A02;
  color: white;
}

.navbar.scrolled .nav-btn.active {
  background-color: #991A02;
  color: white;
}


/* ================= MOBILE ================= */
/* ================= MOBILE MENU STYLES ================= */
.hamburger {
  display: none;
  /* Hidden on desktop */
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 3000;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #991A02;
  transition: 0.3s;
}

/* Transitions hamburger to 'X' when active */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 80vw;
  backdrop-filter: blur(20px);
  max-width: 320px;
  background-color: rgb(48, 47, 47, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  padding-left: 2rem;
  transform: translateX(-100%);
  /* Start hidden off-screen */
  transition: transform 0.5s ease;
  z-index: 2500;
}

.mobile-menu.open {
  transform: translateX(0);
  /* Slide in */
}

.mobile-menu a {
  color: white;
  font-size: 1.4rem;
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-buttons {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ================= GALLERY WRAPPER ================= */
.gallery-wrapper {
  margin-top: 100px;
  /* Space for fixed navbar */
  padding: 2rem 5%;
  background-color: #f9f9f9;
  min-height: 100vh;
}

.gallery-title {
  text-align: center;
  color: #991A02;
  /* Brand Red */
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ================= MASONRY GRID LAYOUT ================= */
.masonry-grid {
  /* The Magic: Creates columns that items flow into */
  column-count: 4;
  column-gap: 20px;
}

/* RESPONSIVE COLUMNS */
@media (max-width: 1200px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media (max-width: 800px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* ================= GALLERY ITEM CARD ================= */
.masonry-item {
  position: relative;
  margin-bottom: 20px;
  /* Vertical gap */
  break-inside: avoid;
  /* Prevents image from being cut in half */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  background-color: white;
  /* Frame */
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  /* Removes bottom gap */
  transition: transform 0.5s ease;
}

/* HOVER EFFECT: Zoom Image */
.masonry-item:hover img {
  transform: scale(1.1);
}

/* ================= OVERLAY (Text on Hover) ================= */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(153, 26, 2, 0.85);
  /* Brand Red with transparency */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  /* Hidden by default */
  transition: opacity 0.3s ease;
}

.masonry-item:hover .overlay {
  opacity: 1;
  /* Show on hover */
}

.overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.overlay p {
  font-size: 1rem;
  font-weight: 300;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
  /* Slight delay */
}

/* Slide text up animation */
.masonry-item:hover .overlay h3,
.masonry-item:hover .overlay p {
  transform: translateY(0);
}

/* ================= LIGHTBOX (Keep existing styles) ================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  flex-direction: column;
  /* Changed to column to support text */
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border: 2px solid white;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
  color: #f1f1f1;
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: 300;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  color: #991A02;
}