* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: url('gallery/wedding13.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* or 0.2 for lighter darkening */
  z-index: -1;
}


/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
 background-color: rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 10;
}

/* Logo */
.logo {
  font-size: 1.3rem;
  font-weight: bold;
}

/* Hamburger */
.hamburger {
  display: block;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

#menu-toggle {
  display: none;
}

/* Slide-in Nav */
nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 180px;
  background-color: #000;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  padding-top: 4rem;
  z-index: 1000;
}

/* Show nav when toggled */

#menu-toggle:checked + .hamburger + nav {
  transform: translateX(0%);
}

/* Nav Links */

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  list-style: none;
}

.nav-links li {
  text-align: left;
}

.nav-links li a i {
  margin-right: 10px;
  width: 20px;
}

.nav-links li a {
  display: inline-block;
  transition: transform 0.2s ease, background 0.3s ease;
  padding: 0.5rem 0.3rem;
text-decoration: none;
}

.nav-links li a:hover {
  transform: scaleX(1.2);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.nav-links li a,
.nav-links li a:visited,
.nav-links li a:active {
  color: white !important;
}


/* Labels as links for auto-close */
.nav-links li label {
  cursor: pointer;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}

#menu-toggle:checked + .hamburger + nav + .menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  background-image: url('https://images.unsplash.com/photo-1532375810709-75d3d1900b34?auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay {
  background: none;
  padding: 2rem;
}

.tagline {
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.title {
  font-size: 3rem;
  font-family: 'Brush Script MT', cursive;
  margin: 0.5rem 0;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid white;
  text-decoration: none;
  color: white;
  transition: background 0.3s;
}

.btn:hover {
  background-color: white;
  color: #000;
}

/* Footer */
footer {
   background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .social a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}

footer .social a:hover {
  color: #ccc;
}


/* Tagline fade animation */
.tagline-centered span {
  display: inline-block;
  opacity: 0;
  animation: fadeIn 3s ease forwards;
  cursor: default;
  transition: transform 0.2s ease-in-out;
}

.tagline-centered span:hover {
  transform: scale(1.2);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}




/* Keyframes for fade-in */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* for book button */

.tagline-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

/* Book Now Button */
.book-now-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background-color: transparent;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid white;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s;
  border-radius: 0;

  opacity: 0;
  animation: fadeIn 3s ease forwards;
transition: transform 0.2s ease-in-out;
  animation-delay: 0.3s; /* adjust to appear after tagline */
}
.book-now-btn:hover {
  background-color: rgba(255, 255, 255, 0.4); /* 40% opacity */
  color: black;
}



/* Gallery */
.gallery-section {
  padding: 60px 10px 40px;
  text-align: center;
  background-color: #fff;
}

.gallery-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: bold;
}

.filter-buttons {
  margin-bottom: 20px;
  text-align: center;
}

.filter-buttons button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  background: #444;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-buttons button.active {
  background: #e91e63;
}

.masonry-gallery {
  width: 90%;
  margin: 0 auto;
  column-count: 4;
  column-gap: 10px;
}

.masonry-gallery a {
  position: relative;
  display: block;
  margin-bottom: 10px;
  break-inside: avoid;
  overflow: hidden;
}

.masonry-gallery img {
  width: 100%;
  display: block;
  transform: scale(1.3);
  opacity: 0;
  animation: fadeZoomIn 0.8s ease-out forwards;
}

.masonry-gallery a::before {
  content: attr(data-caption); /* Uses caption from HTML attribute */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.masonry-gallery a:hover::before {
  opacity: 1;
}

/* GLightbox Enhancements */
.glightbox-clean .gclose,
.glightbox-container .gclose {
  display: block !important;
  z-index: 99999 !important;
  color: white !important;
  opacity: 1 !important;
}

.glightbox-watermark {
  position: absolute !important;
  bottom: 10px !important;
  right: 10px !important;
  z-index: 99998 !important;
  pointer-events: none;
}

.glightbox-watermark img {
  max-width: 100px;
  opacity: 0.5;
}

@keyframes fadeZoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1200px) {
  .masonry-gallery {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .masonry-gallery {
    column-count: 1;
  }
}

.hidden {
  display: none !important;
}

/* Hover effect on images */
.masonry-gallery a:hover img {
  transform: scale(1.05);
  filter: brightness(60%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Reset transform on non-hover */
.masonry-gallery img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.masonry-gallery .overlay-text {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* 50% black */
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.masonry-gallery a:hover .overlay-text {
  opacity: 1;
}



/* Videos Page */
.video-section {
  padding: 2rem 1rem;
  text-align: center;
  background: #fff;
}

.main-video iframe {
  width: 100%;
  max-width: 960px;
  height: 540px;
  border: none;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

.video-carousel {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  margin-top: 1rem;
  padding: 10px 0;
}

.video-thumb {
  flex: 0 0 auto;
  width: 160px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-thumb img {
  width: 100%;
  border-radius: 6px;
  border: 2px solid transparent;
}

.video-thumb:hover {
  transform: scale(1.05);
}

.video-thumb:hover img {
  border-color: #e91e63;
}

/* Messenger button */

.messenger-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0000;
  color: white;
  border-radius: 50%;
  padding: 15px;
  font-size: 30px;
  z-index: 999;
}



/* Mobile Improvements Without Changing Existing CSS */
@media (max-width: 768px) {

  header {
    flex-direction: row;
    padding: 1rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .hero .title {
    font-size: 2rem;
  }

  .nav-links {
    padding: 1rem;
    gap: 1rem;
  }

  .tagline {
    font-size: 0.9rem;
    text-align: center;
    padding: 0 1rem;
  }

  .book-now-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .masonry-gallery {
    column-count: 1;
    width: 95%;
  }

  .video-section {
    padding: 1rem;
  }

  .main-video iframe {
    height: 300px;
  }

  .video-thumb {
    width: 120px;
  }

  .messenger-float {
    padding: 12px;
    font-size: 24px;
  }

}
