/* Стили для модального окна */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-image {
    width: auto;
    height: 85vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -30px;
    right: -30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
}

.nav-prev {
    left: -50px;
}

.nav-next {
    right: -50px;
}


.gallery-image {
    cursor: pointer;
}

.modal-content {
    max-height: unset !important;
}