/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Oct 13 2025 | 22:33:36 */
.custom-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Пропорции 1:1 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: none;
    position: relative;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Изображение помещается целиком */
	border-radius: 5px;
	cursor: pointer;
}

.thumbnails-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Центрируем миниатюры, если их меньше */
    gap: 0; /* Убираем интервалы между миниатюрами */
}

.thumbnail-wrapper {
    height: 58px;
    min-width: 58px;
    flex-grow: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.thumbnail-wrapper:hover {
    transform: scale(1.1); /* Увеличение при наведении */
}

.thumbnail-inner {
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
	border-radius: 4px;
}

.thumbnail-inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.thumbnail-link.hover-thumbnail img {
	opacity: 0.6;
}

/* Стили для модального окна */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(from var(--e-global-color-primary) r g b / 95%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    user-select: none; /* Убираем выделение текста */
}

.image-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.image-modal .close-modal {
    position: fixed;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 42px;
    cursor: pointer;
    padding: 10px 30px;
    z-index: 10000;
    color: var(--e-global-color-text);
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

.image-modal .close-modal:hover {
	background-color: transparent;
    color: var(--e-global-color-secondary);
    border: none;
}

.image-modal .thumbnails-column {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-modal .thumbnails-column img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
	border-radius: 4px;
}

/*.image-modal .thumbnails-column img:hover {
    border-color: var(--e-global-color-secondary);
}*/

.thumbnails-column img.hover-thumbnail {
	border-color: var(--e-global-color-secondary);
}

/* Выделение активной миниатюры */
.image-modal .thumbnails-column .active-thumbnail {
    border: 2px solid var(--e-global-color-secondary);
    transform: scale(1.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Блокировка прокрутки */
.no-scroll {
    overflow: hidden;
    height: 100%;
}


/* МОБ/ПЛАНШЕТ <1024px */
@media (max-width: 1023.98px) {
	.image-modal {
		padding-right: 10px;
	}
	
	.image-modal .modal-content {
		max-width: 100%;
    	max-height: 100%;
		justify-content: right;
	}
	
	.image-modal .full-image {
		max-width: calc(100% - 70px);
	}
}

/* 480–767 */
@media (min-width: 480px) and (max-width: 767.98px) {

}

/* 768–1023 */
@media (min-width: 768px) and (max-width: 1023.98px) {

}

/* >=1024: десктоп (исходное поведение) */
@media (min-width: 1024px) {

}

/* >=1280: косметика ширины */
@media (min-width: 1280px) {

}

/* >=1440, >=1920 — резерв под косметику */
@media (min-width: 1440px) {
}

@media (min-width: 1920px) {
}
