/* Стили для модального окна */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

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

/* Защита изображений от копирования */
img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Курсор для кликабельных изображений */
.main-photo img,
.work-thumbnails img,
.gallery-grid img,
.work-process-photo img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-photo img:hover,
.work-thumbnails img:hover,
.gallery-grid img:hover,
.work-process-photo img:hover {
    transform: scale(1.02);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .modal-close {
        top: -35px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .modal-close {
        top: -30px;
        font-size: 25px;
    }
}
