/********************* gallery ************************/

/* Анимация для основного изображения */
.gallery-main-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: opacity 0.3s ease;
} 

.gallery-container {
    /*margin: 0 auto;*/
}

.single-images__item-main {
	width: 100%;
	/*margin-bottom: 15px;*/
    cursor: pointer;
}

.single-images__image-main {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.gallery-item {
    cursor: pointer;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
}

.single-images__item {
    width: 25%;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.single-images__item:hover {
    opacity: 1;
}

.single-images__item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.single-images__item.active {
	opacity: 1;
}

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.gallery-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
}

.gallery-mySlides {
    display: none;
    text-align: center;
}

.gallery-mySlides img {
    /*max-height: 80vh;*/
	/*width: auto;*/
    max-width: 100%;
}

.gallery-close {
    color: white;
    position: absolute;
    top: 50px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.gallery-close:hover {
    color: #ccc;
}

a.gallery-prev, a.gallery-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    background-color: var(--elem_color1);
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
    user-select: none;
}

.gallery-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.gallery-prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.gallery-prev:hover, .gallery-next:hover {
    background-color: var(--hovelem_color1);
}