.gallery-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 24, 27, 0.98);
    z-index: 111111;
}

.gallery-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
    padding: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-media-wrapper{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-media {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
    transition: all 0.3s ease-in-out;
}

.popup-btn {
    height: 50px;
    width: 50px;
    color: white;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    cursor: pointer;
    position: fixed;
    line-height: 1;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}
.popup-btn:hover{
    background-color: rgba(0, 0, 0, 0.6);
}
.previous-btn,
.next-btn{
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 10px 15px;
    font-size: 30px;
}
.previous-btn{
    left: 20px;
}
.next-btn{
    right: 20px;
}
.close-btn{
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 24px;
}
@media only screen and (max-width: 991px){
    .popup-btn {
        height: 35px;
        width: 35px;
        padding: 10px;
        font-size: 20px;
        background-color: rgba(0, 0, 0, 0.5);
    }
    .previous-btn,
    .next-btn{
        padding: 10px 10px 13px;
    }
    .close-btn{
        top: 20px;
        right: 20px;
    }   
}