/* Контейнер слайдера */
.custom-gallery-slider-container {
    width: 100%;
    background: #FFFCF9;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.custom-gallery-slider {
    position: relative;
    width: 100%;
    height: 300px; 
}

.custom-gallery-slider .swiper-wrapper {
    overflow: visible !important;
}

.custom-gallery-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.custom-gallery-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Gallery link styles for Elementor lightbox */
.custom-gallery-slider .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}


.gallery-controls {
    background: #FFFCF9!important;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-title a {
    color: #41322e;
    text-decoration: none;
    font-weight: 600;
    font-size: 32px;
    font-family: "Shippori Mincho", serif;
    text-transform: capitalize!important;
}

.gallery-title a:hover {
    color: #555;
}

.gallery-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.gallery-pagination {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    user-select: none; 
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
}

.gallery-pagination  {
    color: #666;
}

.gallery-navigation {
    display: flex;
    gap: 10px;
}

.gallery-navigation .swiper-button-next::after,
.gallery-navigation .swiper-button-prev::after {
    font-size: 12px;
}

.gallery-navigation .swiper-button-next,
.gallery-navigation .swiper-button-prev {
    width: 25px;
    height: 25px;
    background: #333;
    border-radius: 50%;
    color: #fff;
    margin: 0;
    position: static;
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery-title a {
        font-size: 13px;
    }
}

