#home-gallery-section.home-gallery-section {

    width: 100% !important;

    position: relative !important;

    overflow: hidden !important;

    padding: 90px 0 100px !important;

    background:
        radial-gradient(
            ellipse 80% 60% at 20% 10%,
            rgba(199,25,32,.38) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 70% 50% at 90% 90%,
            rgba(199,25,32,.22) 0%,
            transparent 50%
        ),
        linear-gradient(
            160deg,
            #0a0a0a 0%,
            #141414 42%,
            #1a0a0b 100%
        ) !important;

    direction: rtl !important;

}

body.translatepress-en_US
#home-gallery-section.home-gallery-section {

    direction: ltr !important;

}

#home-gallery-section * {

    box-sizing: border-box !important;

}

#home-gallery-section .home-gallery-section-inner {

    width: 100% !important;

    max-width: 100% !important;

    margin: 0 auto !important;

    position: relative !important;

    z-index: 2 !important;

}


/* centered header */

#home-gallery-section .home-gallery-section-header {

    max-width: 720px !important;

    margin: 0 auto 46px !important;

    padding: 0 28px !important;

    text-align: center !important;

}

#home-gallery-section .home-gallery-section-eyebrow {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 10px !important;

    margin: 0 0 14px !important;

    color: rgba(255,255,255,.78) !important;

    font-size: 12px !important;

    font-weight: 700 !important;

}

#home-gallery-section .home-gallery-section-eyebrow-line {
    width: 26px !important;
    height: 8px !important;
    display: inline-block !important;
    flex: 0 0 26px !important;
    border-radius: 0 !important;
    background:
      linear-gradient(
        90deg,
        var(--solarpro-red, #c71920) 0 22%,
        transparent 22% 39%,
        var(--solarpro-red, #c71920) 39% 61%,
        transparent 61% 78%,
        var(--solarpro-red, #c71920) 78% 100%
      ) !important;
    transform: skewX(-18deg) !important;
    box-shadow: none !important;
}

#home-gallery-section .home-gallery-section-heading {

    margin: 0 0 14px !important;

    color: #ffffff !important;

    font-size: clamp(30px, 4vw, 48px) !important;

    font-weight: 900 !important;

    line-height: 1.2 !important;

    letter-spacing: -1px !important;

    text-align: center !important;

}

#home-gallery-section .home-gallery-section-text {

    margin: 0 auto !important;

    max-width: 520px !important;

    color: rgba(255,255,255,.62) !important;

    font-size: 15px !important;

    line-height: 1.8 !important;

    text-align: center !important;

}


/* bilingual */

#home-gallery-section .home-gallery-section-copy-en {

    display: none !important;

}

body.translatepress-en_US
#home-gallery-section .home-gallery-section-copy-ar {

    display: none !important;

}

body.translatepress-en_US
#home-gallery-section .home-gallery-section-copy-en {

    display: inline !important;

}


/* continuous carousel */

#home-gallery-section .home-gallery-carousel {

    width: 100% !important;

}

#home-gallery-section .home-gallery-carousel-viewport {

    width: 100% !important;

    overflow-x: hidden !important;

    overflow-y: visible !important;

    padding: 14px 0 18px !important;

    margin: -14px 0 -8px !important;

    mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            #000 4%,
            #000 96%,
            transparent 100%
        ) !important;

    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            #000 4%,
            #000 96%,
            transparent 100%
        ) !important;

}

#home-gallery-section .home-gallery-carousel-track {

    display: flex !important;

    align-items: center !important;

    gap: 16px !important;

    width: max-content !important;

    will-change: transform !important;

    animation:
        homeGalleryMarquee
        90s
        linear
        infinite !important;

}

/* Arabic default scrolls toward the natural RTL feel */
#home-gallery-section.home-gallery-section
.home-gallery-carousel-track {

    animation-name: homeGalleryMarqueeRtl !important;

}

body.translatepress-en_US
#home-gallery-section
.home-gallery-carousel-track {

    animation-name: homeGalleryMarqueeLtr !important;

}

#home-gallery-section .home-gallery-carousel.is-paused
.home-gallery-carousel-track {

    animation-play-state: paused !important;

}

@keyframes homeGalleryMarqueeRtl {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }

}

@keyframes homeGalleryMarqueeLtr {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


#home-gallery-section .home-gallery-section-item {

    position: relative !important;

    flex: 0 0 auto !important;

    width: clamp(240px, 22vw, 300px) !important;

    height: 340px !important;

    margin: 0 !important;

    padding: 0 !important;

    border: 0 !important;

    border-radius: 18px !important;

    overflow: hidden !important;

    cursor: pointer !important;

    pointer-events: auto !important;

    background: #1c1c1c !important;

    isolation: isolate !important;

    transition:
        transform .45s cubic-bezier(.16,1,.3,1),
        box-shadow .35s ease !important;

}

#home-gallery-section .home-gallery-section-item img {

    width: 100% !important;

    height: 100% !important;

    object-fit: cover !important;

    display: block !important;

    transform: scale(1.02) !important;

    transition:
        transform .7s cubic-bezier(.16,1,.3,1),
        filter .4s ease !important;

    filter: saturate(.92) contrast(1.05) !important;

}

#home-gallery-section .home-gallery-section-item-overlay {

    position: absolute !important;

    inset: 0 !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    background:
        linear-gradient(
            180deg,
            transparent 40%,
            rgba(0,0,0,.45) 100%
        ),
        rgba(199,25,32,0) !important;

    opacity: 0 !important;

    transition:
        opacity .35s ease,
        background .35s ease !important;

    z-index: 2 !important;

}

#home-gallery-section .home-gallery-section-item-icon {

    width: 48px !important;

    height: 48px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    border-radius: 50% !important;

    background: rgba(255,255,255,.12) !important;

    backdrop-filter: blur(8px) !important;

    border: 1px solid rgba(255,255,255,.22) !important;

    transform: scale(.85) !important;

    transition: transform .35s ease !important;

}

#home-gallery-section .home-gallery-section-item-icon svg {

    width: 20px !important;

    height: 20px !important;

    fill: none !important;

    stroke: #ffffff !important;

    stroke-width: 2 !important;

    stroke-linecap: round !important;

    stroke-linejoin: round !important;

}

#home-gallery-section .home-gallery-section-item:hover,
#home-gallery-section .home-gallery-section-item:focus-visible {

    transform: scale(1.03) !important;

    box-shadow:
        0 14px 32px rgba(0,0,0,.32),
        0 0 0 1px rgba(199,25,32,.35) !important;

    outline: none !important;

    z-index: 3 !important;

}

#home-gallery-section .home-gallery-section-item:hover img,
#home-gallery-section .home-gallery-section-item:focus-visible img {

    transform: scale(1.08) !important;

    filter: saturate(1.05) contrast(1.08) !important;

}

#home-gallery-section .home-gallery-section-item:hover
.home-gallery-section-item-overlay,
#home-gallery-section .home-gallery-section-item:focus-visible
.home-gallery-section-item-overlay {

    opacity: 1 !important;

    background:
        linear-gradient(
            180deg,
            transparent 30%,
            rgba(0,0,0,.5) 100%
        ),
        rgba(199,25,32,.18) !important;

}

#home-gallery-section .home-gallery-section-item:hover
.home-gallery-section-item-icon,
#home-gallery-section .home-gallery-section-item:focus-visible
.home-gallery-section-item-icon {

    transform: scale(1) !important;

}


/* pagination dots */

#home-gallery-section .home-gallery-carousel-dots {

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 8px !important;

    margin-top: 28px !important;

    padding: 0 20px !important;

}

#home-gallery-section .home-gallery-dot {

    width: 8px !important;

    height: 8px !important;

    min-width: 8px !important;

    min-height: 8px !important;

    padding: 0 !important;

    border: 0 !important;

    border-radius: 999px !important;

    background: rgba(255,255,255,.28) !important;

    cursor: pointer !important;

    transition:
        width .35s ease,
        background .35s ease,
        transform .35s ease !important;

}

#home-gallery-section .home-gallery-dot.is-active {

    width: 28px !important;

    background: #c71920 !important;

}


/* lightbox */

#home-gallery-lightbox {

    position: fixed !important;

    inset: 0 !important;

    z-index: 999999 !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 24px !important;

    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;

    transition:
        opacity .3s ease,
        visibility .3s ease !important;

}

#home-gallery-lightbox.is-open {

    opacity: 1 !important;

    visibility: visible !important;

    pointer-events: auto !important;

}

#home-gallery-lightbox[hidden] {

    display: none !important;

}

#home-gallery-lightbox.is-open[hidden] {

    display: flex !important;

}

#home-gallery-lightbox .home-gallery-lightbox-backdrop {

    position: absolute !important;

    inset: 0 !important;

    background: rgba(5,5,5,.88) !important;

    backdrop-filter: blur(10px) !important;

}

#home-gallery-lightbox .home-gallery-lightbox-dialog {

    position: relative !important;

    z-index: 2 !important;

    width: min(1100px, 100%) !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    gap: 16px !important;

}

#home-gallery-lightbox .home-gallery-lightbox-stage {

    position: relative !important;

    width: 100% !important;

    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 12px !important;

    direction: ltr !important;

}

#home-gallery-lightbox .home-gallery-lightbox-figure {

    margin: 0 !important;

    width: auto !important;

    max-width: calc(100% - 140px) !important;

    max-height: min(72vh, 760px) !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    flex: 1 1 auto !important;

    min-width: 0 !important;

}

#home-gallery-lightbox .home-gallery-lightbox-image {

    width: auto !important;

    max-width: 100% !important;

    max-height: min(68vh, 700px) !important;

    height: auto !important;

    object-fit: contain !important;

    border-radius: 14px !important;

    box-shadow:
        0 24px 60px rgba(0,0,0,.45) !important;

    background: #111 !important;

    pointer-events: auto !important;

}

#home-gallery-lightbox .home-gallery-lightbox-caption {

    margin-top: 12px !important;

    color: rgba(255,255,255,.7) !important;

    font-size: 13px !important;

    font-weight: 600 !important;

}

#home-gallery-lightbox .home-gallery-lightbox-close {

    position: absolute !important;

    top: 0 !important;

    right: 0 !important;

    left: auto !important;

    z-index: 6 !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 56px !important;

    height: 56px !important;

    border: 0 !important;

    border-radius: 16px !important;

    cursor: pointer !important;

    background: rgba(255,255,255,.14) !important;

    color: #fff !important;

    backdrop-filter: blur(8px) !important;

    transition:
        background .25s ease,
        transform .25s ease !important;

}

/* arrows sit beside the image — not over the middle */
#home-gallery-lightbox .home-gallery-lightbox-nav {

    position: relative !important;

    top: auto !important;

    left: auto !important;

    right: auto !important;

    bottom: auto !important;

    inset: auto !important;

    transform: none !important;

    flex: 0 0 auto !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 60px !important;

    height: 60px !important;

    border: 0 !important;

    border-radius: 18px !important;

    cursor: pointer !important;

    background: rgba(255,255,255,.14) !important;

    color: #fff !important;

    backdrop-filter: blur(8px) !important;

    transition:
        background .25s ease,
        transform .25s ease !important;

    z-index: 5 !important;

}

#home-gallery-lightbox .home-gallery-lightbox-prev,
#home-gallery-lightbox .home-gallery-lightbox-next {

    left: auto !important;

    right: auto !important;

}

#home-gallery-lightbox .home-gallery-lightbox-close:hover,
#home-gallery-lightbox .home-gallery-lightbox-nav:hover {

    background: #c71920 !important;

    transform: scale(1.05) !important;

}

#home-gallery-lightbox .home-gallery-lightbox-close svg,
#home-gallery-lightbox .home-gallery-lightbox-nav svg {

    width: 30px !important;

    height: 30px !important;

    fill: none !important;

    stroke: currentColor !important;

    stroke-width: 2.8 !important;

    stroke-linecap: round !important;

    stroke-linejoin: round !important;

}

#home-gallery-lightbox .home-gallery-lightbox-thumbs {

    display: flex !important;

    gap: 8px !important;

    max-width: 100% !important;

    overflow-x: auto !important;

    padding: 4px 2px 8px !important;

    scrollbar-width: thin !important;

}

#home-gallery-lightbox .home-gallery-lightbox-thumb {

    flex: 0 0 64px !important;

    width: 64px !important;

    height: 48px !important;

    padding: 0 !important;

    border: 2px solid transparent !important;

    border-radius: 8px !important;

    overflow: hidden !important;

    cursor: pointer !important;

    background: #222 !important;

    opacity: .55 !important;

    transition:
        opacity .25s ease,
        border-color .25s ease,
        transform .25s ease !important;

}

#home-gallery-lightbox .home-gallery-lightbox-thumb.is-active {

    opacity: 1 !important;

    border-color: #c71920 !important;

    transform: translateY(-2px) !important;

}

#home-gallery-lightbox .home-gallery-lightbox-thumb img {

    width: 100% !important;

    height: 100% !important;

    object-fit: cover !important;

    display: block !important;

}


@media (max-width: 767px) {

    #home-gallery-section.home-gallery-section {

        padding: 80px 0 90px !important;

    }

    #home-gallery-section .home-gallery-section-header {

        margin-bottom: 30px !important;

        padding: 0 16px !important;

    }

    #home-gallery-section .home-gallery-section-heading {

        font-size: 28px !important;

    }

    #home-gallery-section .home-gallery-section-text {

        font-size: 14px !important;

    }

    #home-gallery-section .home-gallery-carousel-track {

        gap: 12px !important;

        animation-duration: 75s !important;

    }

    #home-gallery-section .home-gallery-section-item {

        width: 220px !important;

        height: 280px !important;

        border-radius: 14px !important;

    }

    #home-gallery-lightbox {

        padding: 12px !important;

    }

    #home-gallery-lightbox .home-gallery-lightbox-close {

        width: 50px !important;

        height: 50px !important;

        top: 8px !important;

        right: 8px !important;

        position: fixed !important;

    }

    #home-gallery-lightbox .home-gallery-lightbox-stage {

        flex-wrap: wrap !important;

        gap: 10px !important;

    }

    #home-gallery-lightbox .home-gallery-lightbox-figure {

        order: 1 !important;

        width: 100% !important;

        max-width: 100% !important;

        flex: 1 1 100% !important;

    }

    /* arrows under the image on mobile — not over the middle */
    #home-gallery-lightbox .home-gallery-lightbox-prev,
    #home-gallery-lightbox .home-gallery-lightbox-next {

        position: relative !important;

        top: auto !important;

        left: auto !important;

        right: auto !important;

        bottom: auto !important;

        transform: none !important;

        width: 52px !important;

        height: 52px !important;

        order: 2 !important;

    }

    #home-gallery-lightbox .home-gallery-lightbox-prev {

        margin-inline-end: auto !important;

    }

    #home-gallery-lightbox .home-gallery-lightbox-next {

        margin-inline-start: auto !important;

    }

    #home-gallery-lightbox .home-gallery-lightbox-nav:hover {

        transform: scale(1.05) !important;

    }

    #home-gallery-lightbox .home-gallery-lightbox-close svg,
    #home-gallery-lightbox .home-gallery-lightbox-nav svg {

        width: 26px !important;

        height: 26px !important;

    }

}

@media (prefers-reduced-motion: reduce) {

    #home-gallery-section .home-gallery-carousel-track {

        animation: none !important;

    }

}