.gallery-container {
    ul {
        display: flex;
        flex-wrap: wrap;
        list-style-type: none;
        gap: 14px;
        align-items: baseline;
        padding: 0;
    }

    li {
        height: 218px;
        flex-grow: 1;
    }

    img {
        max-height: 100%;
        min-width: 100%;
    }
}


.lg-backdrop {
    background-color: white !important;
}

.lg-toolbar .lg-icon,
.lg-actions .lg-next,
.lg-actions .lg-prev {
    color: black !important;
    background-color: transparent !important;
}

.lg-outer .lg-thumb-item.active, .lg-outer .lg-thumb-item:hover {
    border-color: black !important;
}

.lg-counter {
    color: black !important;
}

/* Make caption appear below image */
.lg-sub-html {
    margin: 0 auto;
    color: black !important;
    text-align: center;
}

.lg-toolbar .lg-icon {
    display: block;
    position: absolute;
    z-index: 1084;
    top: 80px;
    right: 46px;
    background-color: transparent !important;
    width: 42px;
    height: 42px;
    font-size: 24px;
    line-height: 27px;
    text-align: center;
    text-decoration: none !important;
    outline: medium none;
    will-change: color;
    -webkit-transition: color 0.2s linear;
    -o-transition: color 0.2s linear;
    transition: color 0.2s linear;
    background: none;
    border: none;
    box-shadow: none;
    background-size: contain;
}

.lg-thumb-outer {
    background-color: white !important;
}

.lg-toolbar {
    background-color: transparent !important;
}

.lg-next,
.lg-prev {
    display: block;
    font-size: 22px;
    margin-top: -10px;
    position: absolute;
    top: 50%;
    z-index: 1084;
    outline: none;
    border: none;
    background-color: transparent !important;
    padding: 0;
}

/* Next arrow SVG */
.lg-next:before {
    content: "" !important;
    background-image: url(../assets/icons/gallery-arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    width: 45px;
    height: 34px;
    background-size: contain;
}

.lg-prev:after {
    content: "" !important;
    background-image: url(../assets/icons/gallery-arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    width: 45px;
    height: 34px;
    background-size: contain;
    transform: rotate(180deg);
}


.lg-next.disabled,
.lg-prev.disabled {
    opacity: 1 !important;
    cursor: default;
}


.lg-toolbar .lg-close:after {
    content: "" !important;
    background-image: url(../assets/icons/x-icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    width: 42px;
    height: 42px;
    background-size: contain;
}
