﻿.gallery4 {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.gallery4-container {
    width: 616px;
    height: 17rem;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow : hidden ;
    margin : 1rem ;
    background-color: var(--body_bcolor1);
}

.gallery4 .swiper {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.gallery4 .swiper-slide {
    display: flex;
    direction: rtl;
    font-size: 18px;
    background: #fff;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.gallery4 .detail-slide {
    width: 50%;
    height: 100%;
    background-color: #c3c3c3;
}

.gallery4 .detail-link {
    width: 100%;
    color: #000;
    display: flex;
    direction: rtl;
    padding: 2.5rem;
    text-decoration: none;
    flex-direction: column;
    justify-content: flex-start;
}

.gallery4 .detail-title-slide {
    font-size: 18px;
    font-weight: 700;
    line-height: 35px;
    margin-bottom: 1rem;
}

.gallery4 .detail-description-slide {
    font-size: 13px;
    line-height: 2;
    margin-bottom: 1rem;
    text-align: justify;
    white-space : pre-wrap ;
    overflow : visible ;
}

.gallery4 .image-gallery {
    width: 50%;
    height: 100%;
    display: flex;
    object-fit: cover;
}

.gallery4 .swiper-button-next {
    left: auto;
    color: #fff;
    height: 35px;
    border-radius: 5px;
    top: var(--swiper-navigation-top-offset, 53%);
    right: var(--swiper-navigation-sides-offset,0px);
}

.gallery4 .swiper-button-prev {
    right: auto;
    color: #fff;
    height: 35px;
    border-radius: 5px;
    top: var(--swiper-navigation-top-offset, 53%);
    left: var(--swiper-navigation-sides-offset,50%);
}

.gallery4 .swiper-button-next:after {
    font-size: 23px;
    font-weight: bold;
}

.gallery4 .swiper-button-prev:after {
    font-size: 23px;
    font-weight: bold;
}

.gallery4 .swiper-pagination-bullets {
    width: 50% !important;
}

.gallery4 .swiper-pagination-bullet {
    opacity : .4;
    width: 20px;
    color: #fff;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    border-radius: 5px;
    font-family: IranyekanNum;
}

.gallery4 .swiper-pagination-bullet-active {
    color: #fff;
    opacity : 1 ;
    /*background: var(--formButton_bcolor1);*/
}

@media (max-width : 992px) {
    .gallery4-container {
        width: 100%;
        height: 30rem;
        padding: 1rem 0;
    }

    .gallery4 .swiper {
        width: 80%;
    }

    .gallery4 .swiper-button-next {
        left: auto;
        right: var(--swiper-navigation-sides-offset,25px);
    }

    .gallery4 .swiper-button-prev {
        right: auto;
        left: var(--swiper-navigation-sides-offset,25px);
    }
}

@media (max-width : 650px) {
    .gallery4-container {
        width: 100%;
        height: 20rem;
        padding: 15px 0;
    }

    .gallery4 .swiper {
        width: 85%;
    }

    .gallery4 .swiper-button-next {
        left: auto;
        right: var(--swiper-navigation-sides-offset,5px);
    }

    .gallery4 .swiper-button-prev {
        right: auto;
        left: var(--swiper-navigation-sides-offset,5px);
    }
}

@media(max-width : 400px) {
    .gallery4-container {
        height: 15rem;
    }

    .gallery4 .swiper-button-next, .gallery4 .swiper-button-prev {
        display: none;
    }
}
