.history-gallery-container {
    margin-top: 50px;
}

.history-gallery-wrap {
    display: flex;
    flex-wrap: wrap;
}

.history-gallery-single {
    flex: 0 1 calc(100% / 4 - 20px);
    height: 250px;
    margin: 10px;
    max-width: calc(100% / 4 - 20px);
    position: relative;
}

.history-gallery-single a {
    display: block;
    height: 100%;
    overflow: hidden;
}

.history-gallery-single a picture img {
    height: 100%;
    max-width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    -webkit-transition: transform 0.3s;
    -moz-transition: transform 0.3s;
    -ms-transition: transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;
}

.zoom-icon {
    background-color: #CDD52A;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    bottom: -100px;
    display: flex;
    justify-content: center;
    height: 66px;
    left: calc(50% - 33px);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: all 0.3s;
    width: 66px;
}

.zoom-icon svg {
    margin: auto;
}

.history-gallery-single:hover .zoom-icon {
    bottom: calc(50% - 33px);
    opacity: 1;
}

.history-gallery-single:hover a picture img  {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
    transform: scale(1.2);
}

.history-gallery-lb {
    background-color: #000;
    height: 100%;
    display: none;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999999;
}

.history-gallery-lb.active {
    display: block;
}

.history-gallery-lb-inner {
    background: #000;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    left: 0;
    padding: 30px 130px;
    position: absolute;
    top: 0;
    width: 100%;
}

.history-gallery-lb-header {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.history-gallery-lb-header a {
    align-items: center;
    color: #FFF;
    display: flex;
    font-size: 20px;
    gap: 15px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.history-gallery-lb-content {
    display: flex;
    gap: 50px;
    justify-content: center;
    margin: auto;
    height: 85%;
    width: 100%;
}

.history-gallery-lb-image {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.history-gallery-lb-image img {
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    width: 100%;
}

.lb-caption {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.lb-caption span {
    color: #FFF;
    text-align: center;
}

.history-gallery-lb-navigation {
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 0 50px;
    position: absolute;
    top: 50%;
    width: 100%;
}

.history-gallery-lb-navigation button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    border: none;
    border-right: 2px solid white;
    border-top: 2px solid white;
    height: 50px;
    width: 50px;
}

.lb-prev {
    -webkit-transform: rotate(225deg);
    -moz-transform: rotate(225deg);
    -ms-transform: rotate(225deg);
    -o-transform: rotate(225deg);
    transform: rotate(225deg);
}

.lb-next {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

@media (max-width: 950px) {

    .history-gallery-single {
        flex: initial;
        max-width: 100%;
        width: 100%;
    }

    .history-gallery-lb-inner {
        padding: 15px;
    }

    .history-gallery-lb-navigation {
        padding: 0 15px;
    }

}
