/* =====================================
   GENERAL STYLES
===================================== */

.gallery-page {
    margin: 0;
    padding: 0;

    font-family: 'Poppins', sans-serif;

    background: #ffffff;
    color: #222222;

    overflow-x: hidden;
}

.gallery-page * {
    box-sizing: border-box;
}

.gallery-page main {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* =====================================
   FIXED HEADER
===================================== */

.gallery-page #mainHeader {
    position: fixed !important;

    top: 12px;
    left: 50%;

    transform: translateX(-50%);

    width: calc(100% - 40px);
    max-width: 1600px;

    margin: 0;

    background: #ffffff;

    border-radius: 50px;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.10);

    z-index: 1050;

    transition: box-shadow 0.3s ease;
}

.gallery-page #mainHeader.scrolled {
    background: #ffffff;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}


/* =====================================
   DESIGN GALLERY BANNER
===================================== */

.gallery-banner {
    position: relative;

    width: 100%;
    height: 275px;

    margin: 0;
    padding: 90px 30px 0;

    display: flex;
    align-items: center;

    background: #f0f0f2;

    overflow: hidden;
}

.gallery-banner-container {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* =====================================
   BREADCRUMB
===================================== */

.gallery-breadcrumb {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 15px;

    font-size: 14px;
    font-weight: 400;

    color: #111111;

    animation: galleryFadeRight 0.9s ease both;
}

.gallery-breadcrumb a {
    color: #111111;

    text-decoration: none;

    transition: color 0.3s ease;
}

.gallery-breadcrumb a:hover {
    color: #b88a00;
}

.gallery-breadcrumb i {
    font-size: 13px;
    color: #111111;
}

.gallery-breadcrumb span {
    color: #111111;
}


/* =====================================
   BANNER TITLE
===================================== */

.gallery-banner-title {
    margin: 0;
    padding: 0;

    font-size: 32px;
    font-weight: 600;

    line-height: 1.4;

    color: #000000;

    text-align: right;

    animation: galleryFadeLeft 0.9s ease both;
}


/* =====================================
   GALLERY MAIN SECTION
===================================== */

.gallery-main-section {
    width: 100%;

    margin: 0;
    padding: 40px 40px 80px;

    background: #ffffff;
}

.gallery-main-container {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;
}


/* =====================================
   GALLERY CATEGORY
===================================== */

.gallery-category {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 10px 10px 40px;
}


/* GRAY BACKGROUND */

.gallery-gray {
    background: #eeeeee;
}


/* WHITE BACKGROUND */

.gallery-white {
    background: #ffffff;
}


/* =====================================
   CATEGORY TITLE
===================================== */

.gallery-category-title {
    margin: 0 0 25px;
    padding: 0;

    font-size: 36px;
    font-weight: 500;

    line-height: 1.5;

    color: #222222;

    text-align: center;
}


/* =====================================
   GALLERY GRID
===================================== */

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    column-gap: 10px;
    row-gap: 15px;

    width: 100%;

    align-items: center;
}


/* =====================================
   GALLERY ITEM
===================================== */

.gallery-item {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    aspect-ratio: 3 / 2;

    min-width: 0;

    margin: 0;
    padding: 0;

    background: transparent;

    border: none;
    border-radius: 0;

    overflow: hidden;

    cursor: pointer;
}


/* =====================================
   GALLERY IMAGE
===================================== */

.gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    padding: 15px;

    object-fit: contain;
    object-position: center;

    background: transparent;

    border: none;

    transition: transform 0.5s ease;
}


/* =====================================
   DARK HOVER OVERLAY
===================================== */

.gallery-item-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.48);

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.35s ease;
}

.gallery-item-overlay i {
    font-size: 28px;

    color: #ffffff;

    opacity: 0;

    transform: scale(0.7);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* =====================================
   IMAGE HOVER EFFECT
===================================== */

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-item-overlay i,
.gallery-item:focus-visible .gallery-item-overlay i {
    opacity: 1;

    transform: scale(1);
}

.gallery-item:hover img {
    transform: scale(1.035);
}

.gallery-item:focus-visible {
    outline: 3px solid #efbd32;
    outline-offset: -3px;
}


/* =====================================
   CENTER LAST RUSH & REED IMAGE
===================================== */

.gallery-category:nth-child(8)
.gallery-item:last-child:nth-child(3n + 1) {

    grid-column: 2;

}


/* =====================================
   SCROLL REVEAL ANIMATION
===================================== */

.gallery-reveal.gallery-animate-ready {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.gallery-reveal.gallery-animate-ready.gallery-visible {
    opacity: 1;

    transform: translateY(0);
}

.gallery-reveal:nth-child(3n + 2) {
    transition-delay: 0.1s;
}

.gallery-reveal:nth-child(3n + 3) {
    transition-delay: 0.2s;
}


/* =====================================
   CONNECT WITH US SECTION
===================================== */

.gallery-connect {
    width: 100%;

    margin: 0;
    padding: 15px 10px;

    background: #f0f0f2;
}

.gallery-connect-container {
    display: grid;

    grid-template-columns: 70% 30%;

    align-items: center;

    width: 100%;

    min-height: 36px;

    margin: 0 auto;
}

.gallery-connect-container p {
    margin: 0;
    padding: 0;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.6;

    color: #222222;
}


/* =====================================
   CONNECT BUTTON
===================================== */

.gallery-connect-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;
    justify-self: start;

    min-height: 36px;

    padding: 10px 16px;

    background: #000000;
    color: #ffffff;

    border: none;
    border-radius: 4px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.gallery-connect-btn:hover {
    background: #efbd32;
    color: #15283f;

    transform: translateY(-2px);

    text-decoration: none;
}

.gallery-connect-btn:focus-visible {
    outline: 3px solid #a77b00;
    outline-offset: 3px;
}


/* =====================================
   LIGHTBOX BACKGROUND
===================================== */

.gallery-lightbox {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    margin: 0;
    padding: 50px 80px;

    border: none;

    background: rgba(0, 0, 0, 0.94);

    color: #ffffff;

    overflow: auto;
}

.gallery-lightbox[open] {
    display: flex;

    align-items: center;
    justify-content: center;

    animation: galleryLightboxFade 0.3s ease;
}

.gallery-lightbox::backdrop {
    background: #000000;
}

body.gallery-lightbox-open {
    overflow: hidden;
}


/* =====================================
   LIGHTBOX CONTENT
===================================== */

.gallery-lightbox-content {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 1100px;

    text-align: center;
}

.gallery-lightbox-content img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 75vh;

    object-fit: contain;

    padding: 20px;

    background: #ffffff;

    border-radius: 5px;
}

.gallery-lightbox-content h3 {
    margin: 18px 0 5px;

    font-size: 18px;
    font-weight: 500;

    color: #ffffff;
}

.gallery-lightbox-content p {
    margin: 0;

    font-size: 14px;

    color: #cccccc;
}


/* =====================================
   LIGHTBOX CLOSE BUTTON
===================================== */

.gallery-lightbox-close {
    position: fixed;

    top: 20px;
    right: 25px;

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.15);

    color: #ffffff;

    border: none;
    border-radius: 50%;

    font-size: 23px;

    cursor: pointer;

    z-index: 2;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.gallery-lightbox-close:hover {
    background: #efbd32;
    color: #15283f;
}


/* =====================================
   LIGHTBOX NAVIGATION ARROWS
===================================== */

.gallery-lightbox-arrow {
    position: fixed;

    top: 50%;

    transform: translateY(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    background: rgba(255, 255, 255, 0.15);

    color: #ffffff;

    border: none;
    border-radius: 50%;

    font-size: 20px;

    cursor: pointer;

    z-index: 2;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.gallery-previous {
    left: 25px;
}

.gallery-next {
    right: 25px;
}

.gallery-lightbox-arrow:hover {
    background: #efbd32;
    color: #15283f;
}

.gallery-lightbox-arrow:focus-visible,
.gallery-lightbox-close:focus-visible {
    outline: 3px solid #efbd32;
    outline-offset: 3px;
}


/* =====================================
   ANIMATIONS
===================================== */

@keyframes galleryFadeRight {

    from {
        opacity: 0;
        transform: translateX(-35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

@keyframes galleryFadeLeft {

    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

@keyframes galleryLightboxFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


/* =====================================
   LAPTOP RESPONSIVE
===================================== */

@media (max-width: 1200px) {

    .gallery-banner {
        height: 260px;
    }

    .gallery-banner-title {
        font-size: 30px;
    }

    .gallery-main-section {
        padding: 30px 30px 60px;
    }

    .gallery-category-title {
        font-size: 32px;
    }

    .gallery-item img {
        padding: 12px;
    }

}


/* =====================================
   TABLET RESPONSIVE
===================================== */

@media (max-width: 991px) {

    .gallery-page #mainHeader {
        top: 10px;

        width: calc(100% - 30px);

        border-radius: 25px;
    }

    .gallery-banner {
        height: 250px;

        padding: 80px 25px 0;
    }

    .gallery-banner-title {
        font-size: 28px;
    }

    .gallery-breadcrumb {
        font-size: 12px;
        gap: 10px;
    }

    .gallery-main-section {
        padding: 25px 20px 50px;
    }

    .gallery-category-title {
        font-size: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .gallery-category:nth-child(8)
    .gallery-item:last-child:nth-child(3n + 1) {

        grid-column: auto;

    }

}


/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media (max-width: 768px) {

    .gallery-page #mainHeader {
        top: 8px;

        width: calc(100% - 20px);

        border-radius: 20px;
    }

    .gallery-banner {
        height: 240px;

        padding: 75px 20px 0;
    }

    .gallery-banner-container {
        flex-direction: column-reverse;

        align-items: center;
        justify-content: center;

        gap: 12px;
    }

    .gallery-banner-title {
        font-size: 27px;

        text-align: center;
    }

    .gallery-breadcrumb {
        justify-content: center;

        font-size: 12px;
    }

    .gallery-main-section {
        padding: 20px 15px 40px;
    }

    .gallery-category {
        padding: 10px 8px 25px;
    }

    .gallery-category-title {
        margin-bottom: 15px;

        font-size: 28px;
    }

    .gallery-item img {
        padding: 10px;
    }

    .gallery-connect {
        padding: 20px 15px;
    }

    .gallery-connect-container {
        grid-template-columns: 1fr;

        gap: 15px;

        text-align: center;
    }

    .gallery-connect-container p {
        font-size: 14px;
    }

    .gallery-connect-btn {
        justify-self: center;
    }

    .gallery-lightbox {
        padding: 50px 45px;
    }

    .gallery-lightbox-content img {
        max-height: 65vh;

        padding: 10px;
    }

    .gallery-lightbox-arrow {
        width: 35px;
        height: 35px;

        font-size: 15px;
    }

    .gallery-previous {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }

}


/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 480px) {

    .gallery-page #mainHeader {
        top: 6px;

        width: calc(100% - 16px);

        border-radius: 18px;
    }

    .gallery-banner {
        height: 220px;

        padding: 70px 15px 0;
    }

    .gallery-banner-title {
        font-size: 25px;
    }

    .gallery-breadcrumb {
        font-size: 11px;
    }

    .gallery-main-section {
        padding: 15px 10px 30px;
    }

    .gallery-category-title {
        font-size: 25px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .gallery-item {
        aspect-ratio: 1 / 1;
    }

    .gallery-item img {
        padding: 5px;
    }

    .gallery-item-overlay i {
        font-size: 20px;
    }

    .gallery-connect-container p {
        font-size: 13px;
    }

    .gallery-lightbox-content h3 {
        font-size: 15px;
    }

    .gallery-lightbox-close {
        top: 15px;
        right: 15px;

        width: 38px;
        height: 38px;

        font-size: 18px;
    }

}


/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {

    .gallery-banner-title,
    .gallery-breadcrumb,
    .gallery-lightbox[open] {

        animation: none;

    }

    .gallery-reveal.gallery-animate-ready {

        opacity: 1;

        transform: none;

        transition: none;

    }

    .gallery-item img,
    .gallery-item-overlay,
    .gallery-item-overlay i,
    .gallery-connect-btn,
    .gallery-lightbox-arrow,
    .gallery-lightbox-close,
    .gallery-page #mainHeader {

        transition: none;

    }

    .gallery-item:hover img {
        transform: none;
    }

    .gallery-connect-btn:hover {
        transform: none;
    }

}
