.galleryContainer {
    margin: 50px 0;
}
.galleryNav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    font-size: 20px;
}
.galleryNav-outer{
    display: block;
    width: fit-content;
    margin: 0 auto;
}
.galleryNav-list {
    display: -ms-flexbox;
    margin-top: 0!important;
    margin-bottom: 1rem!important;
    padding-left: 0;
    list-style: none;
    font-family: 'Kodchasan', sans-serif;
    border-radius: 40px;
    background-color: #142328;
    border: 2px solid #cc1542;
    overflow: hidden;
    display: inline-flex;
    flex-wrap: wrap;
    position: relative;
}
.galleryNav-item:first-child .galleryNav-link {
    margin-left: 0;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
}
.galleryNav-list .galleryNav-item {
    padding: 0!important;
    margin: 0!important;
}
.galleryNav-item.active .galleryNav-link {
    z-index: 3;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
.galleryNav-link {
    position: relative;
    display: block;
    padding: .5rem .75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
}
.galleryNav-list li a.galleryNav-link{
    color: #fff;
    background-color: transparent;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    line-height: 35px;
    height: 35px;
    width: auto;
    padding: 0 15px;
    border: none;
    border-radius: 0;
    position: relative;
    z-index: 1;
    text-decoration: none!important;
}

.galleryNav-list li.active a.galleryNav-link,
.galleryNav-list li a.galleryNav-link:hover,
.galleryNav-list li.active a.galleryNav-link:hover{
    color: #fff;
    background: transparent;
    border: none;
}
.galleryNav-list li a.galleryNav-link:before,
.galleryNav-list li a.galleryNav-link:after{
    content: '';
    height: 100%;
    width: 100%;
    border: 1px solid #000;
    border-top: none;
    border-bottom: none;
    transform: skewX(-16deg);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    transition: all 0.3s;
}
.galleryNav-list li a.galleryNav-link:after{
    background-color: #cc1542;
    border: none;
    border-radius: 50%;
    transform: skewX(-16deg) scale(0);
}
.galleryNav-list li.active a.galleryNav-link:after,
.galleryNav-list li a.galleryNav-link:hover:after,
.galleryNav-list li.active a.galleryNav-link:hover:after{
    border-radius: 0;
    transform: skewX(-16deg) scale(1);
}
.galleryNav-list li:first-child a.galleryNav-link:before,
.galleryNav-list li:last-child a.galleryNav-link:before{
    display: none;
}
.galleryNav-list li:first-child a.galleryNav-link:after{ left: -1px; }
.galleryNav-list li:last-child a.galleryNav-link:after{
    left: auto;
    right: -1px;
}
@media only screen and (max-width: 480px){
    .galleryNav-list{
        padding: 10px 0;
        margin: 0;
        display: block;
    }
    .galleryNav-list li{ display: inline-block; }
    .galleryNav-list li a.galleryNav-link:before{ display: none; }
    .galleryNav-list li a.galleryNav-link:after{ transform: skew(0) scale(0); }
    .galleryNav-list li.active a.galleryNav-link:hover:after,
    .galleryNav-list li.active a.galleryNav-link:after,
    .galleryNav-list li a.galleryNav-link:hover:after{
        border-radius: 20px;
        transform: skew(0) scale(1);
    }
}



.gallery {
    display: flex;
    flex-wrap: wrap;
}
.gallery a {
    position: relative;
    padding: 5px;
}
.gallery a > img {
    object-fit: contain;
    width: inherit;
}

@media screen and (min-width: 1500px) {
    .gallery a {
        flex: 0 0 20%;
    }
}
@media screen and (min-width: 1100px) and (max-width: 1500px) {
    .gallery a {
        flex: 0 0 25%;
    }
}
@media screen and (min-width: 700px) and (max-width: 1100px) {
    .gallery a {
        flex: 0 0 33%;
    }
}
@media screen and (max-width: 700px) {
    .gallery a {
        flex: 0 0 50%;
    }
}

