/* =========================================
   AG AGAPE TRUST
   GALLERY
========================================= */

:root {
    --maroon: #741b2a;
    --dark-maroon: #56131f;
    --gold: #c99a3b;
    --cream: #f7f3ed;
    --light-cream: #fbf9f6;
    --white: #ffffff;
    --text: #333333;
    --muted: #777777;
    --border: #e5ded5;
}


/* =========================================
   GLOBAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

button {
    font-family: inherit;
}


/* =========================================
   HERO
========================================= */

.gallery-hero {
    position: relative;

    min-height: 560px;

    display: flex;
    align-items: center;

    background-image: url("../images/gallery/gallery-hero.jpg");
    background-size: cover;
    background-position: center;

    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(86, 19, 31, 0.92),
            rgba(86, 19, 31, 0.65),
            rgba(86, 19, 31, 0.20)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(1200px, 90%);
    margin: 0 auto;

    color: var(--white);
}

.hero-label {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--gold);

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
}

.hero-content h1 {
    max-width: 750px;

    margin-bottom: 25px;

    font-family: "Playfair Display", serif;
    font-size: clamp(44px, 5vw, 70px);
    font-weight: 600;
    line-height: 1.1;
     color: rgba(255, 255, 255, 0.9);
}

.hero-content h1 span {
    display: block;
}

.hero-content p {
    max-width: 650px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
}


/* =========================================
   GALLERY SECTION
========================================= */

.gallery-section {
    padding: 100px 20px;

    background: var(--light-cream);
}

.gallery-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}


/* =========================================
   HEADING
========================================= */

.gallery-heading {
    max-width: 700px;

    margin: 0 auto 45px;

    text-align: center;
}

.section-label {
    display: block;

    margin-bottom: 12px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
}

.gallery-heading h2 {
    margin-bottom: 15px;

    color: var(--dark-maroon);

    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 600;
}

.gallery-heading p {
    color: var(--muted);

    font-size: 15px;
    line-height: 1.9;
}


/* =========================================
   FILTERS
========================================= */

.gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 45px;
}

.filter-btn {
    padding: 10px 20px;

    border: 1px solid var(--border);

    background: var(--white);
    color: var(--text);

    font-size: 12px;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--maroon);

    color: var(--maroon);
}

.filter-btn.active {
    border-color: var(--maroon);

    background: var(--maroon);
    color: var(--white);
}


/* =========================================
   GALLERY GRID
========================================= */

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    grid-auto-rows: 300px;

    gap: 18px;
}


/* =========================================
   GALLERY ITEM
========================================= */

.gallery-item {
    position: relative;

    min-height: 300px;

    overflow: hidden;

    background: var(--cream);

    cursor: pointer;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.gallery-item.gallery-tall {
    grid-row: span 2;
}

.gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.6s ease,
        filter 0.5s ease;
}


/* =========================================
   IMAGE OVERLAY
========================================= */

.gallery-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    padding: 25px;

    background:
        linear-gradient(
            to top,
            rgba(40, 10, 17, 0.88),
            rgba(40, 10, 17, 0.20),
            transparent
        );

    opacity: 0;

    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: saturate(1.05);
}


/* =========================================
   IMAGE INFORMATION
========================================= */

.gallery-info {
    max-width: 75%;

    color: var(--white);
}

.gallery-info span {
    display: block;

    margin-bottom: 5px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.gallery-info h3 {
    font-family: "Playfair Display", serif;

    font-size: 21px;
    font-weight: 500;
    line-height: 1.3;
}


/* =========================================
   VIEW BUTTON
========================================= */

.view-image {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border: 1px solid rgba(255, 255, 255, 0.6);

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    color: var(--white);

    font-size: 25px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    backdrop-filter: blur(5px);

    transition: all 0.25s ease;
}

.view-image:hover {
    background: var(--white);
    color: var(--maroon);

    transform: rotate(90deg);
}


/* =========================================
   LIGHTBOX
========================================= */

.lightbox {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(25, 8, 13, 0.96);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;

    width: min(1000px, 85vw);

    max-height: 90vh;

    display: flex;
    flex-direction: column;

    align-items: center;
}

.lightbox-content img {
    display: block;

    max-width: 100%;
    max-height: 70vh;

    object-fit: contain;

    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}


/* =========================================
   LIGHTBOX CAPTION
========================================= */

.lightbox-caption {
    width: 100%;

    padding: 20px 5px 0;

    text-align: center;

    color: var(--white);
}

.lightbox-caption span {
    color: var(--gold);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;

    text-transform: uppercase;
}

.lightbox-caption h3 {
    margin: 4px 0;

    font-family: "Playfair Display", serif;

    font-size: 24px;
    font-weight: 500;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.65);

    font-size: 13px;
}


/* =========================================
   LIGHTBOX BUTTONS
========================================= */

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;

    border: none;

    background: transparent;

    color: var(--white);

    cursor: pointer;

    z-index: 3;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.lightbox-close {
    top: 25px;
    right: 35px;

    font-size: 42px;
    font-weight: 200;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;

    width: 55px;
    height: 55px;

    margin-top: -27px;

    border: 1px solid rgba(255, 255, 255, 0.3);

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);

    font-size: 38px;
    font-weight: 200;

    backdrop-filter: blur(5px);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-close:hover {
    color: var(--gold);

    transform: rotate(90deg);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--white);
    color: var(--maroon);
}


.site-footer {
  background: linear-gradient(180deg, #5A0F0F 0%, #3D0808 100%); /* AUR DARK KIYA */
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding: 50px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ========== TOP SECTION ========== */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* IMPORTANT: upar se align */
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* LEFT SIDE */
.footer-brand {
  flex: 2;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.brand-header img {
  width: 110px; /* LOGO BARA */
  height: 110px;
  object-fit: contain;
  flex-shrink: 0; /* logo squeeze na ho */
}

.brand-title h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
   color: rgba(255, 255, 255, 0.9);
}

.brand-title span {
  font-size: 13px;
  color: #FFD700;
  font-weight: 500;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.9;
  text-align: left;
   color: rgba(255, 255, 255, 0.9);
}

/* RIGHT SIDE - YEHI THEEK KARNA THA */
.footer-connect {
  flex: 1;
  display: flex;
  flex-direction: column; /* social upar newsletter neeche */
  gap: 35px;
  text-align: left;
  min-width: 300px; /* taake squeeze na ho */
}

.social-area h3,
.newsletter h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.social-icons {
  display: flex; /* ROW ME RAHE */
  flex-direction: row; /* IMPORTANT */
  justify-content: flex-start;
  gap: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  background: #fff;
  color: #5A0F0F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s;
  flex-shrink: 0;
}

.social-icons a:hover {
  background: #FFD700;
  transform: translateY(-3px);
}

.newsletter p {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 15px;
}

.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.newsletter input {
  width: 100%;
  max-width: 280px;
  padding: 11px 16px;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
}

.newsletter button {
  padding: 11px 28px;
  border-radius: 25px;
  border: none;
  background: #FFD700;
  color: #5A0F0F;
  font-weight: 700;
  cursor: pointer;
}

/* ========== MIDDLE ========== */
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 40px 0;
  text-align: left;
}

.footer-links h4 {
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 600;
  color: #FFD700;
}

.contact-list li {
  display: flex;
  gap: 10px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ========== BOTTOM ========== */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
  .brand-header {
    justify-content: center;
  }
  .footer-connect {
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
  .newsletter form {
    align-items: center;
  }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.gallery-tall {
        grid-row: span 1;
    }

    .gallery-item {
        min-height: 280px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .gallery-hero {
        min-height: 470px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .gallery-section {
        padding: 70px 15px;
    }

    .gallery-heading {
        margin-bottom: 35px;
    }

    .gallery-filters {
        justify-content: flex-start;

        overflow-x: auto;
        flex-wrap: nowrap;

        padding-bottom: 8px;

        scrollbar-width: none;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: 330px;

        gap: 12px;
    }

    .gallery-item {
        min-height: 330px;
    }

    .gallery-overlay {
        opacity: 1;

        padding: 20px;
    }

    .gallery-info h3 {
        font-size: 19px;
    }

    .lightbox {
        padding: 20px;
    }

    .lightbox-content {
        width: 100%;
    }

    .lightbox-content img {
        max-height: 60vh;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 90px;

        width: 45px;
        height: 45px;

        font-size: 30px;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
    }

    .footer-container {
        flex-direction: column;

        text-align: center;
    }
}