.tzag-gallery {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 430px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    background-color: #eee;
    padding: 0;
}

.tzag-gallery .image {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(20%);
    -webkit-filter: grayscale(20%);
    cursor: pointer;
    padding: 0;
}

.tzag-text {
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    font-family: inherit;
    font-size: 28px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 230px;
    width: 230px;
    justify-content: center;
    text-transform: uppercase;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    border-radius: 100%;
    -webkit-box-shadow: 0px 5px 18px -10px rgba(0,0,0,0.9);
    -moz-box-shadow: 0px 5px 18px -10px rgba(0,0,0,0.9);
    box-shadow: 0px 5px 18px -10px rgba(0,0,0,0.9);
}
.tzag-text span{
    font-size: 14px;
    line-height: 22px;
}
.tzag-text img{
    height: auto;
    width: 65%;
    padding: 0px;
    margin-top: -10px;
    margin-left: auto;
    margin-right: auto;
}
#tzag-popup {
    display: none;
    background-color: white;
    position: fixed;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    z-index: 99999;
}

#tzag-popup .tzag-content {
    padding: 2em;
    display: flex;
}

.tzag-images {
    width: 75%;
}

.tzag-column {
    width: 25%;
    text-align: center;
}

.tzag-close {
    cursor: pointer;
    font-family: inherit;
    margin-left: 10px;
    width: 25px;
    height: 25px;
    margin-bottom: -0.1em;
    display: inline-block;
    background-image: url("/wp-content/plugins/tz-auto-galleries/assets/img/close-black.svg");
}

.tzag-banner-top{
    height: 100px;
    text-align: center;
    overflow: hidden;
}

.tzag-banner-right{
    text-align: center;
}
.text-left{
    float: left;
}
.tzag-columnHeader {
    margin-bottom: 0.7em;
    width: 100%;
    text-align: right;
    text-transform: uppercase;
    font-size: 1.5em;
}

.tzag-imagesContainer {
    position: relative;
    background-color: #eee;
    min-height: 300px;
    margin-top: 1em;
    text-align: center;
}
#tzagImageToShow img{
    height: auto;
    width: auto;
    max-width: 62vw;
    max-height: 72vh;
    margin: 10px auto;
}
.tzag-navigation {
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    cursor: pointer;
    position: absolute;
    top: calc(50% - 1.2em);
    font-size: 4em;
    padding: 0.5em 0.4em 0.6em;
    transition: 0.3s;
}

.tzag-navigation  a{
    color: white;
}

.tzag-navigation:hover {
    background-color: rgba(0, 0, 0, 1);
    transition: 0.3s;
}

.tzag-left {
    left: 0px;
}

.tzag-right {
    right: 0px;
}
.tzag-loader {
    position: absolute;
    top: 1em;
    right: 1em;
    border: 6px solid transparent;
    border-radius: 50%;
    border-top: 6px solid rgba(0,0,0,0.75);
    width: 28px;
    height: 28px;
    margin: 0 auto;
    -webkit-animation: spin 0.7s linear infinite; /* Safari */
    animation: spin 0.7s linear infinite;
}
.tzag-share{
    position: absolute;
    display: flex;
    justify-content: center;
    left: 0px;
    bottom: 1.2em;
    width: 100%;
}
.tzag-share-item{
    padding: 5px 5px 0 5px;
    background-color: rgba(255,255,255,0.8);
    border: 1px solid #eee;
    cursor: pointer;
}
.tzag-share-item:hover{
    background-color: rgba(255,255,255,1);
}
.tzag-share-item img{
    max-width: 28px;
    max-height: 28px;
    padding: 5px 5px 10px 5px;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.stop-scrolling {
    height: 100%;
    overflow: hidden;
}

@media only screen and (max-width: 960px) {
    .tzag-columnHeader {
        text-transform: none;
        font-size: 1em;
    }
    .tzag-close{
        width: 80px;
        height: 0px;
        background-image: none;
    }
    .tzag-allowScroll{
        height:90vh;
        overflow-y: scroll;
    }
    .tzag-content{
        padding: 0px !important;
        display: block !important;
    }
    .tzag-images {
        width: 100%;
        margin-bottom: 2em;
    }
    .tzag-column {
        width: calc(100% - 20px);
        padding: 0.8em 10px 0 10px;
    }
    #tzagImageToShow img, #tzagImageToShow1 img, #tzagImageToShow2 img, #tzagImageToShow3 img, #tzagImageToShow4 img{
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 65vh !important;
        margin: 10px auto;
    }
    .tzag-imagesContainer{
        min-height: 100px;
    }
    .tzag-navigation {
        background-color: rgba(0, 0, 0, 0.75);
        color: white;
        cursor: pointer;
        position: absolute;
        top: calc(50% - 1.2em);
        font-size: 2em;
        padding: 0.2em 0.6em 0.3em;
        transition: 0.3s;
    }
    .tzag-loader-static{
        right: 0px;
        top: 0px;
        position: relative;
        display: block;
    }
    .tzag-gallery{
        height: 250px;
    }
    .tzag-text{
        font-size: 25px;
        height: 170px;
        width: 170px;
     }
    .tzag-text span{
        font-size: 10px;
        line-height: 16px;
    }
    .tzag-btns{
        display: flex;
        margin-bottom: 2em;
        justify-content: flex-end;
    }
    .tzag-btns div{
        background-color: rgba(0, 0, 0, 0.75);
        text-align: center;
        margin: 0.2em;
        font-size: 3em;
        color: white;
        width: 50%;
        padding: 15px 0 25px 0;
    }
    .tzag-share-item img{
        max-width: 22px;
        max-height: 22px;
        margin-bottom: -2px;
    }
}

@media (min-width: 768px) and (max-width: 768px)  {
    .tzag-content{
        display: flex !important;
    }
    .tzag-column{
        width: 33%;
    }
    .tzag-close{
        width: 25px;
        height: 25px;
        background-image: url(/wp-content/plugins/tz-auto-galleries/assets/img/close-black.svg);
    }
    .tzag-columnHeader{
        text-transform: uppercase;
    }
}

#tzagPrevPage a{
    color: white;
}

#tzagNextPage a{
    color: white;
}

#footer-gallery{
    display: flex; flex-direction: row; 
}

