/* =========================================================
   GALLERY PAGE
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.gallery-hero {
    position: relative;

    min-height: 500px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(8, 43, 78, 0.90),
            rgba(8, 43, 78, 0.58),
            rgba(8, 43, 78, 0.15)
        ),
        url("../images/gallery-hero.jpg")
        center / cover no-repeat;
}

.gallery-hero-content {
    max-width: 750px;

    padding: 90px 0;
}

.gallery-hero-tag {
    display: inline-block;

    margin-bottom: 22px;

    padding: 8px 15px;

    border: 1px solid rgba(255,255,255,0.3);

    border-radius: 30px;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.gallery-hero h1 {
    margin: 0 0 22px;

    color: #ffffff;

    font-family: "Playfair Display", serif;

    font-size: clamp(44px, 6vw, 68px);

    line-height: 1.08;
}

.gallery-hero p {
    max-width: 620px;

    margin: 0;

    color: rgba(255,255,255,0.9);

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   INTRO
   ========================================================= */

.gallery-intro {
    background: #ffffff;
}

.gallery-intro-grid {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 100px;

    align-items: center;
}

.gallery-intro-grid p {
    margin: 0 0 18px;

    color: #687b90;

    font-size: 15px;

    line-height: 1.85;
}

.gallery-intro-grid p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   PHOTO / NEWS SECTION
   ========================================================= */

.photo-gallery-section {
    padding: 30px 0 110px;

    background: #f6f9fc;
}


/* =========================================================
   CAROUSEL
   ========================================================= */

.gallery-carousel {
    position: relative;

    width: 100%;

    height: 430px;

    margin-bottom: 75px;

    overflow: hidden;

    border-radius: 22px;

    background: #dfe8ef;

    box-shadow:
        0 15px 40px rgba(20,55,90,0.08);
}

.carousel-track {
    width: 100%;
    height: 100%;

    position: relative;
}

.carousel-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;

    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.carousel-slide::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            transparent 40%,
            rgba(8,27,48,0.88)
        );
}

.carousel-caption {
    position: absolute;

    left: 35px;
    right: 35px;
    bottom: 35px;

    z-index: 2;
}

.carousel-caption span {
    display: block;

    margin-bottom: 7px;

    color: #f4b03d;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.carousel-caption h3 {
    margin: 0;

    color: #ffffff;

    font-family: "Playfair Display", serif;

    font-size: clamp(25px, 3vw, 38px);

    line-height: 1.2;
}


/* CAROUSEL ARROWS */

.carousel-arrow {
    position: absolute;

    top: 50%;

    z-index: 5;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: none;

    border-radius: 50%;

    background: rgba(8,43,78,0.72);

    color: #ffffff;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.carousel-arrow:hover {
    background: #1763ad;

    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 25px;
}

.carousel-next {
    right: 25px;
}


/* CAROUSEL DOTS */

.carousel-dots {
    position: absolute;

    left: 50%;
    bottom: 22px;

    z-index: 5;

    display: flex;

    gap: 7px;

    transform: translateX(-50%);
}

.carousel-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,0.55);

    cursor: pointer;

    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.carousel-dot.active {
    width: 22px;

    border-radius: 10px;

    background: #f4b03d;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.gallery-section-heading {
    margin-bottom: 25px;
}

.gallery-section-heading .section-title {
    margin: 7px 0 8px;
}

.gallery-section-heading p {
    margin: 0;

    color: #718196;

    font-size: 14px;

    line-height: 1.7;
}

.news-heading {
    margin-top: 95px;
}


/* =========================================================
   FILTER
   ========================================================= */

.gallery-filter {
    display: flex;

    justify-content: flex-start;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 35px;
}

.gallery-filter-btn {
    padding: 10px 21px;

    border: 1px solid #dce5ed;

    border-radius: 30px;

    background: #ffffff;

    color: #617388;

    font-family: "DM Sans", sans-serif;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.gallery-filter-btn:hover {
    border-color: #1763ad;

    color: #1763ad;
}

.gallery-filter-btn.active {
    border-color: #1763ad;

    background: #1763ad;

    color: #ffffff;
}


/* =========================================================
   GALLERY GRID
   ========================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item,
.gallery-item.gallery-large,
.gallery-item.gallery-tall,
.gallery-item.gallery-wide {
    position: relative;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5edf4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

/* =========================================================
   PHOTO GALLERY — IMAGE ONLY HOVER
   ========================================================= */

/* Hide all text overlays */
.gallery-overlay {
    display: none !important;
}

/* Keep the image hover effect */
.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    transition: transform 0.35s ease;
}

/* Slightly enlarge image on hover */


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-intro-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .gallery-carousel {
        height: 390px;
    }

}


@media (max-width: 800px) {

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-carousel {
        height: 350px;

        margin-bottom: 55px;
    }

    .carousel-caption {
        left: 25px;
        right: 25px;
        bottom: 25px;
    }

    .carousel-arrow {
        width: 42px;
        height: 42px;
    }

    .carousel-prev {
        left: 15px;
    }

    .carousel-next {
        right: 15px;
    }

    .video-heading {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-section {
        padding: 75px 0;
    }

}


@media (max-width: 600px) {

    .gallery-hero {
        min-height: 430px;
    }

    .gallery-hero-content {
        padding: 65px 0;
    }

    .gallery-hero h1 {
        font-size: 40px;
    }

    .gallery-hero p {
        font-size: 15px;
    }

    .gallery-carousel {
        height: 300px;

        border-radius: 16px;

        margin-bottom: 50px;
    }

    .carousel-caption h3 {
        font-size: 23px;
    }

    .carousel-caption span {
        font-size: 9px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    

    .gallery-filter {
        justify-content: flex-start;
    }

    .gallery-filter-btn {
        padding: 9px 15px;
    }

    .gallery-overlay {
        opacity: 1;
    }

    .gallery-cta {
        padding: 70px 0;
    }

    .gallery-lightbox {
        padding: 20px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

}




/* =========================================================
   GALLERY HERO TITLE — SINGLE LINE
   ========================================================= */

.gallery-hero h1 {
    white-space: nowrap;
}

@media (max-width: 800px) {
    .gallery-hero h1 {
        white-space: normal;
    }
}


/* =========================================================
   GALLERY INTRO HEADING
   KEEP "THROUGH THEIR MOMENTS" ON ONE LINE
   ========================================================= */

.gallery-heading-line {
    white-space: nowrap;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .gallery-heading-line {
        white-space: normal;
    }

}

/* TITLE COLOR CONSISTENCY */
.gallery-section-heading .section-title {
    color: #214f8f !important;
}
