/* =========================================================
   FUEL-S GALLERY PAGE
========================================================= */


/* =========================================================
   ACTIVE NAVIGATION LINK
========================================================= */





/* =========================================================
   HERO
========================================================= */

.gallery-hero {

    position: relative;

    min-height: 460px;

    display: flex;

    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 6rem 2rem 4rem;


    background:

        linear-gradient(
            rgba(0, 45, 85, 0.68),
            rgba(0, 100, 82, 0.76)
        ),

        url("image_1.jpeg");


    background-size: cover;

    background-position: center;

    color: white;

    overflow: hidden;

}



.gallery-hero::after {

    content: "";

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.08),
            rgba(0, 50, 40, 0.18)
        );

}



.gallery-hero-content {

    position: relative;

    z-index: 2;

    max-width: 850px;

}



.gallery-label {

    display: inline-block;

    margin-bottom: 1rem;

    font-family: "Tektur", sans-serif;

    font-size: 0.9rem;

    font-weight: 600;

    letter-spacing: 5px;

}



.gallery-hero h1 {

    font-family: "Tektur", sans-serif;

    font-size:

        clamp(
            3rem,
            7vw,
            6rem
        );

    font-weight: 600;

    line-height: 1;

    margin-bottom: 1.5rem;

}



.gallery-hero p {

    max-width: 720px;

    margin: auto;

    font-size: 1.1rem;

    line-height: 1.8;

    color:

        rgba(
            255,
            255,
            255,
            0.9
        );

}



/* =========================================================
   MAIN GALLERY SECTION
========================================================= */

.gallery-section {

    max-width: 1500px;

    margin: auto;

    padding: 5rem 4%;

}



.gallery-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 2rem;

    margin-bottom: 2.5rem;

}



.gallery-heading-left span {

    display: block;

    margin-bottom: 0.6rem;

    color: #1b6ca8;

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 3px;

}



.gallery-heading-left h2 {

    font-family:
        "Tektur",
        sans-serif;

    font-size:

        clamp(
            2rem,
            4vw,
            3rem
        );

    color: #222;

}



.gallery-count {

    color: #777;

    font-size: 0.95rem;

}



/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {

    display: grid;

    grid-template-columns:

        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 18px;

}



/* =========================================================
   IMAGE CARD
========================================================= */

.gallery-card {

    position: relative;

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #e6e6e6;

    border-radius: 14px;

    cursor: pointer;

    box-shadow:

        0 5px 16px

        rgba(
            0,
            0,
            0,
            0.08
        );

    transition:

        transform 0.35s ease,

        box-shadow 0.35s ease;

}



.gallery-card:hover {

    transform:

        translateY(-6px);

    box-shadow:

        0 17px 35px

        rgba(
            0,
            0,
            0,
            0.18
        );

}



/* =========================================================
   CARD IMAGE
========================================================= */

.gallery-card img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:

        transform 0.55s ease,

        filter 0.35s ease;

}



.gallery-card:hover img {

    transform:

        scale(1.07);

    filter:

        brightness(0.72);

}



/* =========================================================
   IMAGE OVERLAY
========================================================= */

.gallery-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    padding: 1.3rem;

    background:

        linear-gradient(
            transparent 40%,
            rgba(0, 0, 0, 0.75)
        );

    opacity: 0;

    transition:

        opacity 0.35s ease;

}



.gallery-card:hover
.gallery-overlay {

    opacity: 1;

}



.gallery-overlay span {

    color: white;

    font-size: 0.9rem;

    font-weight: 600;

}



.gallery-view-icon {

    width: 36px;

    height: 36px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 50%;

    background:

        rgba(
            255,
            255,
            255,
            0.2
        );

    color: white;

    font-size: 1.2rem;

}



/* =========================================================
   LOAD MORE
========================================================= */

.gallery-load-more {

    display: flex;

    justify-content: center;

    margin-top: 3.5rem;

}



#loadMoreButton {

    border: none;

    padding:

        0.95rem
        2.4rem;

    border-radius: 9px;

    background:

        linear-gradient(
            135deg,
            #1b6ca8,
            #009688
        );

    color: white;

    font-family:
        "Poppins",
        sans-serif;

    font-size: 0.95rem;

    font-weight: 600;

    cursor: pointer;

    box-shadow:

        0 6px 16px

        rgba(
            0,
            0,
            0,
            0.16
        );

    transition:

        transform 0.3s ease,

        box-shadow 0.3s ease;

}



#loadMoreButton:hover {

    transform:

        translateY(-3px);

    box-shadow:

        0 10px 24px

        rgba(
            0,
            0,
            0,
            0.22
        );

}



/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {

    position: fixed;

    inset: 0;

    z-index: 5000;

    display: none;

    justify-content: center;

    align-items: center;

    padding: 2rem;

    background:

        rgba(
            0,
            0,
            0,
            0.95
        );

}



.gallery-lightbox.active {

    display: flex;

}



.gallery-lightbox img {

    max-width: 90vw;

    max-height: 85vh;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:

        0 15px 50px

        rgba(
            0,
            0,
            0,
            0.6
        );

    animation:

        galleryZoom
        0.3s
        ease;

}



@keyframes galleryZoom {

    from {

        opacity: 0;

        transform:

            scale(0.94);

    }


    to {

        opacity: 1;

        transform:

            scale(1);

    }

}



/* =========================================================
   CLOSE BUTTON
========================================================= */

.lightbox-close {

    position: absolute;

    top: 22px;

    right: 35px;

    width: 50px;

    height: 50px;

    border: none;

    background: transparent;

    color: white;

    font-size: 45px;

    line-height: 1;

    cursor: pointer;

    opacity: 0.8;

    transition:

        opacity 0.25s ease,

        transform 0.25s ease;

}



.lightbox-close:hover {

    opacity: 1;

    transform:

        rotate(90deg);

}
.nav-links a.gallery-active {

    color: red;

    border-bottom:
        2px solid
        rgb(160, 0, 0);

}



.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: blue;
  font-weight: bold;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: red;
  border-bottom: 2px solid rgb(160, 0, 0);
  transform: scale(1.1);
}


/* =========================================================
   LIGHTBOX NAVIGATION
========================================================= */

.lightbox-arrow {

    position: absolute;

    top: 50%;

    transform:

        translateY(-50%);

    width: 55px;

    height: 55px;

    border: none;

    border-radius: 50%;

    background:

        rgba(
            255,
            255,
            255,
            0.15
        );

    color: white;

    font-size: 27px;

    cursor: pointer;

    transition:

        background
        0.3s ease;

}



.lightbox-arrow:hover {

    background:

        rgba(
            255,
            255,
            255,
            0.30
        );

}



.lightbox-prev {

    left: 30px;

}



.lightbox-next {

    right: 30px;

}



/* =========================================================
   LIGHTBOX COUNTER
========================================================= */

.lightbox-counter {

    position: absolute;

    bottom: 20px;

    left: 50%;

    transform:

        translateX(-50%);

    color:

        rgba(
            255,
            255,
            255,
            0.85
        );

    font-size: 0.9rem;

}



/* =========================================================
   FOOTER
========================================================= */

.gallery-footer {

    padding:

        3.5rem
        2rem;

    text-align: center;

    color: white;

    background:

        linear-gradient(
            135deg,
            #063655,
            #087668
        );

}



.gallery-footer img {

    width: 70px;

    margin-bottom: 1rem;

}



.gallery-footer h3 {

    font-family:

        "Tektur",
        sans-serif;

    margin-bottom: 0.8rem;

    font-size: 1.3rem;

}



.gallery-footer p {

    line-height: 1.8;

    color:

        rgba(
            255,
            255,
            255,
            0.8
        );

}



/* =========================================================
   TABLET
========================================================= */

@media
(max-width: 1100px) {

    .gallery-grid {

        grid-template-columns:

            repeat(
                3,
                minmax(0, 1fr)
            );

    }

}



/* =========================================================
   MOBILE / TABLET
========================================================= */

@media
(max-width: 768px) {


    .gallery-hero {

        min-height: 360px;

        padding-top: 5rem;

    }



    .gallery-heading {

        flex-direction: column;

        align-items: flex-start;

    }



    .gallery-grid {

        grid-template-columns:

            repeat(
                2,
                minmax(0, 1fr)
            );

    }



    .gallery-section {

        padding:

            3.5rem
            4%;

    }



    .lightbox-arrow {

        width: 45px;

        height: 45px;

        font-size: 22px;

    }



    .lightbox-prev {

        left: 10px;

    }



    .lightbox-next {

        right: 10px;

    }

}



/* =========================================================
   SMALL MOBILE
========================================================= */

@media
(max-width: 500px) {


    .gallery-grid {

        grid-template-columns:
            1fr;

    }



    .gallery-hero h1 {

        font-size:
            2.7rem;

    }



    .gallery-hero p {

        font-size:
            0.95rem;

    }



    .gallery-card {

        aspect-ratio:
            4 / 3;

    }

}
