/* Стили для модального окна просмотра изображений */
.modal-image-viewer {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    overflow: auto;
    transition: opacity 0.3s ease;
}

.modal-image-viewer.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* .modal-image-viewer.active>.modal-content {
    bottom: auto;
    top: auto;
} */

.modal-image-viewer.active .modal-content {
		bottom: 0px;
		top: inherit;
}

.modal-content {
    position: absolute;
    max-height: 100%;
    max-width: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 0px;
    top: 0;
}

.modal-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    /* Ограничиваем высоту изображения */
    object-fit: contain;
    /* Сохраняем пропорции изображения */
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #f1f1f1;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 1001;
    /* Убедимся, что кнопка закрытия всегда видна */
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Добавление курсора "увеличительное стекло" к кликабельным изображениям */
.zoomable {
    cursor: zoom-in;
    transition: transform 0.2s;
}

.zoomable:hover {
    transform: scale(1.03);
}


/* Стили для модального окна */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.moderation-stats {
    background-color: #f8f9fa;
    border-left: 3px solid #17a2b8;
    padding: 10px 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .modal-content {
        /* top: 65px;
        bottom: 60px; */
    }

}