/**
 * Стили для модального окна с изображениями
 */

/* Изображения с возможностью увеличения */
.inscale-modal-image {
    cursor: zoom-in;
}

/* Оверлей модального окна */
.inscale-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.inscale-modal-content .arrow:hover{
    background: var(--stroke) !important; 
}
.inscale-modal-overlay.show {
    display: flex;
    opacity: 1;
}

/* Контейнер модального окна */
.inscale-modal-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-zoom-in 0.3s ease forwards;
}

/* Анимация появления */
@keyframes fade-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Содержимое модального окна */
.inscale-modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Изображение в модальном окне */
.inscale-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
    border-radius: 2px;
}

/* Кнопка закрытия */
.inscale-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
}

.inscale-modal-close:hover {
    opacity: 1;
}

/* Позиционирование стрелок в модальном окне */
.inscale-modal-container .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.inscale-modal-container .arrow-prev {
    left: -60px;
}

.inscale-modal-container .arrow-next {
    right: -60px;
}

/* Стили для слайдера */
.post-slider-image.inscale-modal-image {
    cursor: zoom-in;
    position: relative;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 767px) {
    .inscale-modal-container {
        max-width: 95%;
    }
    
    .inscale-modal-close {
        top: -35px;
        right: 0;
    }
    
    .inscale-modal-container .arrow-prev {
        left: -40px;
    }
    
    .inscale-modal-container .arrow-next {
        right: -40px;
    }
} 