.lg-next, .lg-prev {
    background-color: var(--primary);
    color: #fff !important;
}

.lg-close {
    font-size: 48px !important;
    margin-left: 20px;
}

.lg-toolbar {
    padding-right: 25px !important;
}

.lg-actions .lg-next,
.lg-actions .lg-prev,
.lg-toolbar,
.lg-sub-html,
#lg-counter,
.lg-outer .lg-toogle-thumb {
    color: #000 !important;
}

#lg-counter {
    display: none;
}

.lg-toolbar .lg-icon {
    color: #000 !important;
}

.lg-backdrop.in {
    opacity: 0.9;
    background: #fff;
}

.lg-actions .lg-next,
.lg-actions .lg-prev {
    background: unset;
    font-size: 3rem;
}

.lg-sub-html {
    background: unset;
    opacity: 1;
}

.lg-outer .lg-thumb-outer {
    background: unset;
}

.lg-outer .lg-thumb-item {
    border: 0;
}

.lg-thumb-item.active {
    opacity: 0.5;
}

.lg-toolbar {
    background: none;
}

.lg-outer .lg-toogle-thumb {
    background: none;
    font-size: 28px;
}

.imagesgrid_1_4_wrap {
    position: relative;
}

.imagesgrid_1_4__counts {
    background: rgba(255, 255, 255, 0.75);
    padding: 10px 12px;
    border-radius: 8px;
    position: absolute;
    z-index: 1;
    left: 30px;
    bottom: 30px;
    display: inline-flex;
    align-items: center;
    color: #444;
    cursor: pointer;
    text-decoration: none !important;
}

.imagesgrid_1_4__counts svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.imagesgrid_1_4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 4px;
    border-radius: 0.25rem;
    overflow: hidden;
    height: 400px;
}

.imagesgrid_1_4__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imagesgrid_1_4__image:nth-child(11n + 1) {
    grid-area: span 2/span 2;
}

.imagesgrid_1_4__image:nth-child(11n + 10) {
    grid-area: 3/3/span 2/span 2
}

.lg-counter{
    display:none;
}

@media (max-width: 1200px) {
    .imagesgrid_1_4 {
        height: auto;
    }
}

@media (max-width: 620px) {
    .imagesgrid_1_4__image:nth-child(1) {
        grid-area: span 4/span 4;
    }
    .imagesgrid_1_4__image:nth-child(2),
    .imagesgrid_1_4__image:nth-child(3),
    .imagesgrid_1_4__image:nth-child(4),
    .imagesgrid_1_4__image:nth-child(5) {
        grid-area: span 2/span 2;
    }
    .imagesgrid_1_4__counts {
        bottom: auto !important;
        top: 13px;
    }

    .lg-toolbar .lg-close.lg-icon{
        margin-top: 7px;
    }

    .lg-zoom-in{
        display: none;
    }

    .lg-toolbar .lg-close.lg-icon, 
    .lg-toolbar .lg-close.lg-icon:after{
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
        display: inline-block !important;
        font-size: 28px;
        position: relative;
    }    
    .lg-toolbar .lg-close.lg-icon:after{
        position: absolute;
        top:0;
        right:0;
    }
}