﻿/*--Модальное окно (при клике
на текущее изображение)--*/
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modalOpen {
    display: block;
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
from {
    opacity: 0
}

to {
    opacity: 1
}
}

/*--Кнопки управления изображением--*/
.buttonClose {
    margin-right: 0;
    margin-left: auto;
    position: relative;
    width: 8%;
    height: 100px;
    margin-top: -14px;
}

.buttonClose:hover {
    background-color: rgba(255,255,255,0.2);
}

.buttonClose:active {
    background-color: rgba(255,255,255,0.3);
}

.buttonClose:hover .close {
    color: #bbb;
}

.closeBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.buttonPrev {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 8%;
    cursor: pointer;
}

.buttonPrev:hover {
    background-color: rgba(0,0,0,0.3);
}

.buttonPrev:active {
    background-color: rgba(0,0,0,0.2);
}

.buttonPrev:hover .prev {
    color: #bbb;
}

.buttonNext {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 8%;
    cursor: pointer;
}

.buttonNext:hover {
    background-color: rgba(0,0,0,0.3);
}

.buttonNext:active {
    background-color: rgba(0,0,0,0.2);
}

.buttonNext:hover .next {
    color: #bbb;
}

.next {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: -1;
}

.prev {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: -1;
}

/* Media
==================== */
@media (max-width: 1024px) {
    .imageCurrent {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .imageCurrent {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .imageCurrent {
        height: 100%;
    }
}
