.gallery-page {
    --gl-red: #e30613;
    --gl-red-dark: #bd0711;
    --gl-navy: #071c2c;
    --gl-text: #263640;
    --gl-muted: #687782;
    --gl-border: #e2e8ec;
    overflow: hidden;
    color: var(--gl-text);
    font-family: "Poppins", sans-serif;
}

.gallery-page img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-page a {
    text-decoration: none;
}

.gallery-page .gl-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--gl-red);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.gallery-page .gl-breadcrumb {
    padding: 13px 0;
    background: #f8fafb;
    border-bottom: 1px solid var(--gl-border);
}

.gallery-page .gl-breadcrumb .breadcrumb-item,
.gallery-page .gl-breadcrumb .breadcrumb-item a {
    color: #65747d;
    font-size: 13px;
}

.gallery-page .gl-breadcrumb .breadcrumb-item.active {
    color: var(--gl-red);
}

.gallery-page .gl-hero {
    overflow: hidden;
    background: linear-gradient(135deg, #f4f9fc, #ffffff);
}

.gallery-page .gl-hero-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 35px;
    min-height: 360px;
    padding: 38px 0;
}

.gallery-page .gl-hero-content {
    max-width: 510px;
}

.gallery-page .gl-hero-content h1 {
    margin: 0 0 10px;
    color: var(--gl-navy);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.gallery-page .gl-hero-content h1 span {
    color: var(--gl-red);
}

.gallery-page .gl-hero-content p {
    margin: 0 0 20px;
    color: #4e616d;
    font-size: 16px;
    line-height: 1.7;
}

.gallery-page .gl-btn-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    color: #ffffff;
    background: var(--gl-red);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: .3s ease;
}

.gallery-page .gl-btn-red:hover {
    color: #ffffff;
    background: var(--gl-red-dark);
    transform: translateY(-2px);
}

.gallery-page .gl-animation-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.gallery-page .gl-scene {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin-left: auto;
    overflow: visible;
}

.gallery-page .gl-truck {
    animation: gl-arrive 2.4s cubic-bezier(.2,.7,.25,1) both;
}

.gallery-page .gl-dashes {
    animation: gl-road 2.4s cubic-bezier(.2,.7,.25,1) both;
}

.gallery-page .gl-wheel {
    transform-box: fill-box;
    transform-origin: center;
    animation: gl-spin 2.4s cubic-bezier(.2,.7,.25,1) both;
}

.gallery-page .gl-frame {
    transform-box: fill-box;
    transform-origin: center bottom;
    opacity: 0;
    animation:
        gl-rise .7s cubic-bezier(.3,1.4,.5,1) forwards,
        gl-float 4s ease-in-out infinite;
}

.gallery-page .gl-frame.f1 {
    animation-delay: 2.3s, 3s;
}

.gallery-page .gl-frame.f2 {
    animation-delay: 2.55s, 3.25s;
}

.gallery-page .gl-frame.f3 {
    animation-delay: 2.8s, 3.5s;
}

@keyframes gl-arrive {
    from {
        transform: translateX(-560px);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes gl-road {
    from {
        stroke-dashoffset: 340;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes gl-spin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(1080deg);
    }
}

@keyframes gl-rise {
    from {
        opacity: 0;
        transform: translateY(70px) scale(.4);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gl-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.gallery-page .gl-main {
    padding: 55px 0 45px;
    background: #ffffff;
}

.gallery-page .gl-heading {
    max-width: 680px;
    margin-bottom: 25px;
}

.gallery-page .gl-heading h2 {
    margin: 0 0 8px;
    color: var(--gl-navy);
    font-size: 25px;
    font-weight: 700;
}

.gallery-page .gl-heading p {
    margin: 0;
    color: var(--gl-muted);
    font-size: 15px;
    line-height: 1.7;
}

.gallery-page .gl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.gallery-page .gl-filters button {
    padding: 9px 18px;
    color: var(--gl-navy);
    background: #ffffff;
    border: 1px solid var(--gl-border);
    border-radius: 999px;
    font: 600 16px "Poppins", sans-serif;
    cursor: pointer;
    transition: .25s ease;
}

.gallery-page .gl-filters button:hover {
    color: var(--gl-red);
    border-color: var(--gl-red);
}

.gallery-page .gl-filters button.is-active {
    color: #ffffff;
    background: var(--gl-red);
    border-color: var(--gl-red);
}

.gallery-page .gl-filters button:focus-visible,
.gallery-page .gl-open:focus-visible {
    outline: 3px solid var(--gl-navy);
    outline-offset: 2px;
}

.gallery-page .gl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 14px;
}

.gallery-page .gl-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eef3f6;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(7,28,44,.06);
}

.gallery-page .gl-item:nth-child(5n+1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-page .gl-item[hidden] {
    display: none;
}

.gallery-page .gl-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: none;
    border: 0;
    cursor: zoom-in;
}

.gallery-page .gl-open img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.gallery-page .gl-item:hover .gl-open img {
    transform: scale(1.045);
}

.gallery-page .gl-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px 14px 12px;
    color: #ffffff;
    background: linear-gradient(transparent, rgba(7,28,44,.85));
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.gallery-page .gl-empty {
    margin: 30px 0 0;
    color: var(--gl-muted);
    font-size: 14px;
}

.gallery-page .gl-cta {
    padding: 20px 0 70px;
    background: #ffffff;
}

.gallery-page .gl-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 30px 32px;
    background: linear-gradient(115deg, #071c2c, #0c3554);
    border-radius: 15px;
}

.gallery-page .gl-cta-box > div:first-child {
    max-width: 650px;
}

.gallery-page .gl-cta-box > div:first-child > span {
    display: block;
    margin-bottom: 5px;
    color: #ffbfc4;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.gallery-page .gl-cta-box h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 23px;
    font-weight: 700;
}

.gallery-page .gl-cta-box p {
    max-width: 560px;
    margin: 0;
    color: #d1dce2;
    font-size: 13px;
    line-height: 1.65;
}

.gallery-page .gl-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.gallery-page .gl-cta-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.gallery-page .gl-cta-actions a:first-child {
    background: var(--gl-red);
}

.gallery-page .gl-cta-actions a:last-child {
    border: 1px solid rgba(255,255,255,.45);
}

.gallery-page .gl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 70px;
    background: rgba(7,28,44,.94);
}

.gallery-page .gl-lightbox[hidden] {
    display: none;
}

.gallery-page .gl-lightbox > img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.gallery-page .gl-lightbox button {
    position: absolute;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255,255,255,.12);
    border: 0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.gallery-page .gl-lightbox button:hover {
    background: var(--gl-red);
}

.gallery-page .gl-lightbox button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.gallery-page .gl-close {
    top: 16px;
    right: 16px;
    font-size: 28px !important;
}

.gallery-page .gl-prev {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-page .gl-next {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 991px) {
    .gallery-page .gl-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 15px;
        padding: 38px 0;
    }

    .gallery-page .gl-hero-content {
        max-width: 650px;
    }

    .gallery-page .gl-animation-wrap {
        justify-content: center;
    }

    .gallery-page .gl-scene {
        max-width: 500px;
        margin: 0 auto;
    }

    .gallery-page .gl-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-page .gl-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .gallery-page .gl-main {
        padding: 48px 0 40px;
    }

    .gallery-page .gl-hero-content h1,
    .gallery-page .gl-heading h2 {
        font-size: 22px;
    }

    .gallery-page .gl-scene {
        max-width: 450px;
    }

    .gallery-page .gl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-page .gl-lightbox {
        padding: 60px 16px;
    }

    .gallery-page .gl-prev {
        left: 6px;
    }

    .gallery-page .gl-next {
        right: 6px;
    }
}

@media (max-width: 575px) {
    .gallery-page .gl-hero-grid {
        padding: 30px 0;
        gap: 8px;
    }

    .gallery-page .gl-hero-content p {
        font-size: 15px;
    }

    .gallery-page .gl-btn-red {
        width: 100%;
    }

    .gallery-page .gl-animation-wrap {
        margin-top: 5px;
    }

    .gallery-page .gl-scene {
        width: 115%;
        max-width: none;
        margin-left: -8%;
    }

    .gallery-page .gl-grid {
        grid-template-columns: 1fr;
    }

    .gallery-page .gl-item,
    .gallery-page .gl-item:nth-child(5n+1) {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

    .gallery-page .gl-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 7px;
        scrollbar-width: none;
    }

    .gallery-page .gl-filters::-webkit-scrollbar {
        display: none;
    }

    .gallery-page .gl-filters button {
        flex: none;
    }

    .gallery-page .gl-cta-box {
        padding: 25px 20px;
    }

    .gallery-page .gl-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .gallery-page .gl-cta-actions a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-page * {
        transition: none !important;
    }

    .gallery-page .gl-truck,
    .gallery-page .gl-dashes,
    .gallery-page .gl-wheel {
        animation: none;
    }

    .gallery-page .gl-frame {
        animation: none;
        opacity: 1;
    }
}