
/** gallery-section — infinite marquee **/

.gallery-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.gallery-marquee {
    overflow: hidden;
    width: 100%;
    cursor: grab;
}

.gallery-marquee:active {
    cursor: grabbing;
}

@keyframes gallery-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: fit-content;
    animation: gallery-scroll 25s linear infinite;
    will-change: transform;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    flex-shrink: 0;
    width: 380px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.55s ease, opacity 0.55s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    opacity: 0.88;
}


/** gallery-page-section (gallery.php standalone page) **/

.gallery-page-section {
    position: relative;
}

.gallery-block-one .inner-box {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

.gallery-block-one .inner-box .image-box {
    position: relative;
    display: block;
    border-radius: 20px;
}

.gallery-block-one .inner-box .image-box img {
    width: 100%;
    border-radius: 20px;
    transition: all .50s cubic-bezier(.25,.8,.25,1);
}

.gallery-block-one .inner-box:hover .image-box img {
    opacity: 0.2;
}

.gallery-block-one .inner-box .content-box {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-align: center;
}

.gallery-block-one .inner-box .content-box .view-btn a {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 84px;
    background-color: #fff;
    text-align: center;
    font-size: 30px;
    color: var(--title-color);
    border-radius: 50%;
    margin-bottom: 23px;
    transform: scale(0, 0);
    transition: transform 0.3s ease;
}

.gallery-block-one .inner-box:hover .content-box .view-btn a {
    transform: scale(1, 1);
}

.gallery-block-one .inner-box .content-box .text-box {
    position: relative;
    display: block;
    transition: all .50s cubic-bezier(.25,.8,.25,1);
    top: 15px;
    opacity: 0;
}

.gallery-block-one .inner-box:hover .content-box .text-box {
    opacity: 1;
    top: 0;
}

.gallery-block-one .inner-box:hover .content-box .text-box h3 {
    display: block;
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 9px;
}

.gallery-block-one .inner-box:hover .content-box .text-box h3 a {
    display: inline-block;
    color: #fff;
}

.gallery-block-one .inner-box:hover .content-box .text-box h3 a:hover {
    text-decoration: underline;
}

.gallery-block-one .inner-box:hover .content-box .text-box span {
    position: relative;
    display: block;
    font-size: 16px;
    line-height: 21px;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
}


/** rtl-css **/


/** responsive-css **/

@media only screen and (max-width: 991px) {
    .gallery-item {
        width: 340px;
        height: 260px;
    }
}

@media only screen and (max-width: 767px) {
    .gallery-page-section {
        padding: 70px 0 40px;
    }

    .gallery-item {
        width: 85vw;
        height: 260px;
    }

    .gallery-track {
        gap: 16px;
        animation-duration: 22s;
    }
}

@media only screen and (max-width: 499px) {
    .gallery-item {
        width: 88vw;
        height: 240px;
    }
}
