
/*MY DESIGNED SLIDE SHOW*/

.product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-image {
    width: 100%;
    height: 400px; /* ارتفاع ثابت */
    overflow: hidden; /* جلوگیری از نمایش قسمت‌های اضافی تصویر */
    position: relative;
}


.gallery-item-three img {
    width: 100%; /* عرض تصویر به اندازه کامل ظرف خود */
    height: 200px; /* ارتفاع ثابت */
    object-fit: cover; /* حفظ نسبت تصویر و برش اضافی */
    border-radius: 8px; /* اگر نیاز به گوشه‌های گرد دارید */
}


.main-image img {
    width: 100%; /* عرض به 100% */
    height: 100%; /* ارتفاع به 100% */
    object-fit: cover; /* حفظ نسبت تصویر و پر کردن کانتینر */
    cursor: pointer;
    border-radius: 10px;
}


.thumbnail-gallery {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.thumbnail {
    width: 80px;
    height: auto;
    margin: 0 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 5px;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* Modal (Slideshow) */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content1 {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* photoGallery */

.gallery-item {
    position: relative;
    overflow: hidden;
}

.image-container, .image {
    width: 100%;
    height: 200px; /* Fixed height for all images and video thumbnails */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-container img, .image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the container while maintaining aspect ratio */
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-play-button::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.fancybox-caption {
    color: #fff;
    font-size: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
}


.modal-content1 img {
    max-width: 100%;
    max-height: 100%;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease; /* Transition effect */
}

.modal-content1 img.visible {
    opacity: 1; /* Fully visible */
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    user-select: none;
    transform: translateY(-50%);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: var(--thm-base)
}



/* Pagination Section */
.pagination-section {
    padding: 100px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination a {
    text-decoration: none;
    padding: 4px 16px;
    /*border: 2px solid #ddd;*/
    margin: 0 5px;
    border-radius: 30%; /* تغییر شکل به دایره */
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination a:hover {
    transition: background-color 1s, color 1s, border-color 1s;
    color: var(--thm-base); /* Replace var(--thm-base) with your desired color or variable */
}

.pagination a.active {
    font-size: 22px;
    font-weight: bold;
    color: var(--thm-base);
    border-bottom: solid;
    border-top: solid;

}

.link-off {
    pointer-events: none;
    color: #5b5b5b;!important;
}

.prev-page, .next-page {
    /*font-weight: bold;*/
    /*border-radius: 50%; !* تغییر شکل به دایره *!*/
}

.prev-page:hover, .next-page:hover {
    /*background-color: var(--thm-base);*/
    color: #333;
    /*border-color: var(--thm-base);*/
}

.pagination-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.pagination-numbers li {
    margin: 0 2px;
}

