/* =========================================================
   GALLERY PAGE
========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #16324f;
}


/* =========================================================
   NAVIGATION
========================================================= */

.gallery-header {
    width: 100%;
    background: #ffffff;
    position: relative;
    z-index: 1000;
}

.gallery-navigation {
    min-height: 64px;
    height: 64px;
    padding: 5px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}


/* LOGO */

.gallery-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #123b61;
    white-space: nowrap;
}

.gallery-nav-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.gallery-nav-logo .logo-text h1 {
    margin: 0;
    font-size: 18px;
    line-height: 20px;
    font-weight: 700;
    color: #123d66;
}

.gallery-nav-logo .logo-text span {
    display: block;
    margin-top: 1px;
    font-size: 10px;
    color: #607d8b;
    line-height: 13px;
}


/* NAV LINKS */

.gallery-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    text-decoration: none;
    color: #37474f;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.25s ease;
    white-space: nowrap;
}

.gallery-nav-links a:hover,
.gallery-nav-links a.active {
    color: #0878bd;
    background: #eef7fc;
}

.gallery-nav-links a.active {
    color: #0878bd;
}

.gallery-nav-links .btn-contact {
    background: #123d66;
    color: #ffffff;
    margin-left: 3px;
}

.gallery-nav-links .btn-contact:hover {
    background: #0b2d4d;
    color: #ffffff;
}


/* MOBILE BUTTON */

.gallery-menu-button {
    display: none;
    border: none;
    background: #123b61;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-icon span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    display: block;
}


/* =========================================================
   HERO
========================================================= */

.gallery-hero {
    min-height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(5, 39, 68, 0.88),
            rgba(0, 104, 163, 0.72)
        ),
        url("../images/gallary/gallery-banner.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 35px 20px;
    color: #ffffff;
}

.gallery-hero-small {
    display: block;
    margin-bottom: 8px;
    color: #f9b76d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.gallery-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 1px;
    font-weight: 700;
}

.gallery-hero p {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   GALLERY MAIN
========================================================= */

.gallery-main {
    width: 100%;
    padding: 36px 25px 55px;
    background: #f5f7fa;
}

.gallery-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}


/* =========================================================
   IMAGE GRID
========================================================= */

.gallery-grid {
    width: 100%;
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   GALLERY CARD
========================================================= */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;

    aspect-ratio: 4 / 3;

    box-shadow:
        0 4px 15px rgba(0,0,0,0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.15);
}


/* IMAGE */

.gallery-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.gallery-item-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(0,0,0,0);

    transition:
        background 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    background:
        rgba(0,0,0,0.25);
}

.gallery-item-overlay i {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.92);
    color: #123b61;

    opacity: 0;
    transform: scale(0.7);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.gallery-item:hover .gallery-item-overlay i {
    opacity: 1;
    transform: scale(1);
}


/* =========================================================
   LOADING
========================================================= */

.gallery-loading {
    padding: 45px 20px;
    text-align: center;
    color: #536779;
    font-size: 16px;
}

.gallery-loading i {
    margin-right: 8px;
    color: #f47721;
}


/* =========================================================
   EMPTY
========================================================= */

.gallery-empty {
    display: none;
    padding: 60px 20px;
    text-align: center;
    color: #667788;
}

.gallery-empty i {
    display: block;
    margin-bottom: 12px;
    font-size: 45px;
    color: #aab4bd;
}

.gallery-empty p {
    margin: 0;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        rgba(0,0,0,0.92);
}

.gallery-lightbox.show {
    display: flex;
}

.lightbox-content {
    width: 100%;
    height: 100%;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* LIGHTBOX IMAGE */

.lightbox-image-container {
    width: min(90vw, 1200px);
    height: min(88vh, 800px);

    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 5px;

    box-shadow:
        0 15px 50px rgba(0,0,0,0.5);
}


/* =========================================================
   LIGHTBOX BUTTONS
========================================================= */

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.92);
    color: #173b5c;

    cursor: pointer;

    font-size: 18px;

    z-index: 10;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #ffffff;
    transform: scale(1.08);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
}


/* =========================================================
   FOOTER
========================================================= */

.gallery-footer {
    background: #102d46;
    color: #ffffff;
}

.gallery-footer-container {
    max-width: 1250px;
    margin: auto;

    padding: 45px 25px;

    display: grid;
    grid-template-columns:
        1.5fr 1fr 1.3fr;

    gap: 45px;
}

.gallery-footer h3,
.gallery-footer h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.gallery-footer h3 {
    font-size: 20px;
}

.gallery-footer h4 {
    font-size: 16px;
}

.gallery-footer p {
    margin: 0 0 10px;
    color: #d4dde5;
    line-height: 1.7;
    font-size: 14px;
}

.gallery-footer a {
    display: block;
    margin-bottom: 8px;

    color: #d4dde5;
    text-decoration: none;

    font-size: 14px;
}

.gallery-footer a:hover {
    color: #ff8a3d;
}

.footer-contact i {
    width: 20px;
    color: #ff8a3d;
}

.copyright {
    padding: 16px 20px;
    text-align: center;

    border-top: 1px solid rgba(255,255,255,0.12);

    color: #bfcbd5;
    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .gallery-nav-links {
        gap: 0;
    }

    .gallery-nav-links a {
        padding: 8px 7px;
        font-size: 13px;
    }

    .gallery-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .gallery-navigation {
        min-height: 58px;
        padding: 5px 18px;
    }

    .gallery-nav-logo img {
        width: 42px;
        height: 42px;
    }

    .gallery-nav-logo span {
        font-size: 16px;
    }

    .gallery-nav-links {
        display: none;
    }

    .gallery-menu-button {
        display: flex;
    }


    .gallery-hero {
        min-height: 250px;
    }

    .gallery-hero h1 {
        font-size: 42px;
    }

    .gallery-hero p {
        font-size: 14px;
    }


    .gallery-main {
        padding:
            28px 15px 40px;
    }


    .gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .gallery-footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 35px 20px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .gallery-nav-logo span {
        font-size: 14px;
    }

    .gallery-menu-button {
        padding: 7px 9px;
        font-size: 13px;
    }

    .gallery-hero h1 {
        font-size: 34px;
    }

    .gallery-hero-small {
        font-size: 11px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        aspect-ratio: 16 / 11;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

}