.gallery {
    margin: 40px 0;
}

.full-width-wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
}

.gallery-image {
    cursor: pointer;
}

.gallery-image .img {
    pointer-events: none;
    width: auto;
    height: 100%;
    background-size: cover;
    overflow: hidden;
    background-position: center center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding-top: 64%;
}

.gallery-wrapper > .row {
    justify-content: center;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.slick-initialized .slick-slide.gallery-slide {
    height: 90vh;
    display: flex;
}

.gallery-modal-slider {
    display: flex;
}

.arrow {
    font-size: 40px;
    font-weight: 500;
    color: #333;
    height: auto;
    margin: auto;
    padding: 7px 15px;
    background: transparent;
    border: 0;
}

.slick-prev.arrow {
    padding: 7px 10px 7px 0;
}

.slick-next.arrow {
    padding: 7px 0 7px 10px;
}

.gallery-slide img {
    margin: auto;
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
    opacity: 0;
    transition: opacity .3s ease-in-out;
}

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffffa0;
    justify-content: center;
    flex-direction: column;
}

.show-more {
    width: auto;
    cursor: pointer;
}

.show {
    display: flex;
}

.visible {
    opacity: 1 !important;
}

figure {
    pointer-events: none;
}

figcaption {
    color: #fff;
    text-align: center;
    font-weight: 500;
    font-size: 20px;
    text-shadow: 0 0 4px #000000;
    padding: 10px 0;
}

@media (max-width: 767px) {
    .arrow {
        position: absolute;
        top: 50%;
        z-index: 10;
        transform: translateY(-50%);
        color: #fff;
    }

    .slick-prev.arrow {
        padding: 7px 10px 7px 10px;
        left: 0;
    }
    
    .slick-next.arrow {
        padding: 7px 10px 7px 10px;
        right: 0;
    }

}