
:root {
  --gallery-maroon: #63111c;
  --gallery-dark-maroon: #480b13;
  --gallery-deep-maroon: #35070d;
  --gallery-gold: #d4af37;
  --gallery-light-gold: #e6c65c;
  --gallery-cream: #f8f3e7;
  --gallery-dark: #17211f;
  --gallery-muted: #66716e;
}
/* =========================================================
   HERO
========================================================= */
.gallery-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    /* linear-gradient(
      90deg,
      rgba(53, 7, 13, 0.96) 0%,
      rgba(72, 11, 19, 0.88) 45%,
      rgba(99, 17, 28, 0.55) 100%
    ), */
     linear-gradient(90deg, rgba(6, 43, 37, 0.94) 0%, rgba(8,50,43,.72) 48%, rgba(24, 128, 110, 0.2) 100%),
    url("../image/Home.jpeg")
      center/cover;

  color: #fff;
  overflow: hidden;
}
/* Decorative circle */
.gallery-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 50%;
  right: -140px;
  top: -120px;
}
/* Decorative circle */
.gallery-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 50%;
  right: 70px;
  bottom: -160px;
}
/* Hero content */
.gallery-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 100px 0 70px;
}
/* Eyebrow */
.gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gallery-light-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.gallery-eyebrow i {
  font-size: 16px;
}
/* Hero heading */
.gallery-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(50px, 7vw, 82px);
  line-height: 1.05;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
}
.gallery-hero h1 span {
  color: var(--gallery-gold);
  font-style: italic;
}
/* Hero paragraph */
.gallery-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}
/* Breadcrumb */
.gallery-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 35px;
  font-size: 14px;
}
.gallery-breadcrumb a {
  color: var(--gallery-light-gold);
  font-weight: 600;
}
.gallery-breadcrumb a:hover {
  color: #fff;
}
.gallery-breadcrumb i {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}
.gallery-breadcrumb span {
  color: rgba(255, 255, 255, 0.7);
}
/* =========================================================
   GALLERY SECTION
========================================================= */
.gallery-section {
  background: #fff;
}
/* Heading */
.gallery-heading {
  max-width: 780px;
  margin: 0 auto 45px;
}
.gallery-heading .section-title {
  margin-bottom: 18px;
}
.gallery-heading p {
  color: var(--gallery-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
}
/* =========================================================
   FILTERS
========================================================= */
.gallery-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
}
.gallery-filter {
  border: 1px solid #dedede;
  background: #fff;
  color: #444;
  padding: 10px 23px;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-filter:hover {
  border-color: var(--gallery-gold);
  color: var(--gallery-maroon);
  transform: translateY(-2px);
}
.gallery-filter.active {
  background: var(--gallery-maroon);
  border-color: var(--gallery-maroon);
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 17, 28, 0.18);
}
/* =========================================================
   GALLERY GRID
========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 24px;
}
/* Gallery item */
.gallery-item {
  position: relative;
  height: 340px;
  overflow: hidden;
  border-radius: 18px;
  background: #eee;
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.gallery-item:hover {
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.14);
}
/* Image */
.gallery-item > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.6s ease;
}
.gallery-item:hover > img {
  transform: scale(1.08);
}
/* =========================================================
   OVERLAY
========================================================= */
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  background:
    linear-gradient(
      to top,
      rgba(53, 7, 13, 0.95) 0%,
      rgba(53, 7, 13, 0.55) 35%,
      rgba(53, 7, 13, 0.02) 75%
    );

  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay-content {
  width: 100%;
  transform: translateY(18px);
  transition:
    transform 0.35s ease;
}
.gallery-item:hover
.gallery-overlay-content {
  transform: translateY(0);
}
.gallery-overlay-content > span {
  color: var(--gallery-light-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
.gallery-overlay-content h3 {
  margin: 8px 0 18px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.2;
}
/* Fullscreen button */
.gallery-view {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-view:hover {
  background: var(--gallery-gold);
  border-color: var(--gallery-gold);
  color: var(--gallery-dark);
}
/* =========================================================
   FILTER ANIMATION
========================================================= */

.gallery-item.hide {
  display: none;
}
.gallery-item.show {
  animation: galleryFadeIn 0.4s ease;
}

.gallery-grid.hide,
.videos-grid.hide {
  display: none;
}

/* =========================================================
   VIDEOS GRID
========================================================= */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  animation: galleryFadeIn 0.4s ease;
}

.video-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(17, 48, 42, 0.1);
  border: 1px solid #ece7dc;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  background: #111;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  padding: 22px 18px 24px;
  text-align: center;
  background: #fff;
}

.video-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #17211f;
  line-height: 1.45;
  letter-spacing: 0.2px;
}


@keyframes galleryFadeIn {

  from {
    opacity: 0;

    transform: scale(0.96);
  }

  to {
    opacity: 1;

    transform: scale(1);
  }
}
/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background:
    rgba(20, 4, 7, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.gallery-lightbox.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Lightbox content */
.lightbox-content {
  width: min(1100px, 90vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5);
}
/* Lightbox information */
.lightbox-info {
  width: 100%;
  text-align: center;
  margin-top: 18px;
}
.lightbox-info span {
  color: var(--gallery-light-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
.lightbox-info h3 {
  margin: 6px 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}
/* Close */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
}
.lightbox-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  right: 25px;
  top: 25px;
  font-size: 20px;
}
.lightbox-prev,
.lightbox-next {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
}
.lightbox-prev {
  left: 25px;
}
.lightbox-next {
  right: 25px;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gallery-gold);
  color: var(--gallery-dark);
}
/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

  .gallery-hero {
    min-height: 500px;
  }
  .gallery-hero-content {
    padding: 90px 0 60px;
  }
  .gallery-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .gallery-item {
    height: 300px;
  }
  .gallery-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================================================
   TABLET
========================================================= */

@media (max-width: 767px) {

  .gallery-hero {
    min-height: 480px;
  }
  .gallery-hero h1 {
    font-size: 50px;
  }
  .gallery-hero p {
    font-size: 16px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .videos-grid {
    grid-template-columns: 1fr;
  }
  .video-embed {
    max-height: 520px;
  }
  .gallery-item {
    height: 330px;
  }
  /*
     Mobile par overlay always visible
     kyunki hover available nahi hota
  */
  .gallery-overlay {
    opacity: 1;
  }
  .gallery-overlay-content {
    transform: translateY(0);
  }
  .gallery-cta {
    padding: 65px 0;
  }
  .gallery-cta h2 {
    font-size: 38px;
  }
  .gallery-lightbox {
    padding: 20px;
  }
  .lightbox-content {
    width: 100%;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-close {
    right: 15px;
    top: 15px;
    width: 42px;
    height: 42px;
  }
}
/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

  .gallery-hero-content {
    padding: 90px 0 50px;
  }
  .gallery-hero h1 {
    font-size: 42px;
  }
  .gallery-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .gallery-breadcrumb {
    margin-top: 25px;
  }
  .gallery-heading {
    margin-bottom: 35px;
  }
  .gallery-heading .section-title {
    font-size: 38px;
  }
  .gallery-filters {
    gap: 8px;
    margin-bottom: 30px;
  }
  .gallery-filter {
    padding: 8px 16px;
    font-size: 12px;
  }
  .gallery-item {
    height: 280px;
    border-radius: 15px;
  }
  .gallery-overlay {
    padding: 22px;
  }
  .gallery-overlay-content h3 {
    font-size: 23px;
  }
  .gallery-cta h2 {
    font-size: 34px;
  }
  .gallery-cta-btn {
    width: 100%;
    text-align: center;
  }
  .lightbox-content img {
    max-height: 65vh;
    border-radius: 7px;
  }
  .lightbox-info h3 {
    font-size: 20px;
  }
}




/* =====================================
   BACK TO TOP
===================================== */

#backToTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 45px;
  height: 45px;
  display: none;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: #63111c;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.3s ease;
}

#backToTop:hover {
  background: #d9a441;
  color: #63111c;
}
