.flex-content.gallery {
    padding: 80px 0;
}
.flex-content.gallery .intro h6 {
    color: var(--medium-blue);
    font-weight: 600;
    margin-top: 30px;
}
.flex-content.gallery .items:not(.swiper) {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.flex-content.gallery .items:not(.swiper) .item {
    flex: 1 1 16.6667%;
    max-width: calc(16.6667% - ((40px * 5) / 6));
}

.flex-content.gallery .text-bar .text > * {
    color: inherit;
}
.flex-content.gallery .text-bar .text > *:last-child {
    margin-bottom: 0;
}
.flex-content.gallery .item .caption {
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    font-size: 125%;
    font-weight: 500;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 30px;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.flex-content.gallery .item:hover .caption,
.flex-content.gallery .item:focus .caption {
    opacity: 1;
}

.flex-content.gallery .swiper-nav {
    position: absolute;
    left: calc(1.5rem * .5);
    right: calc(1.5rem * .5);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 1199px) {
    .flex-content.gallery .items:not(.swiper) .item {
        flex: 1 1 25%;
        max-width: calc(25% - ((40px * 3) / 4));
    }
	.flex-content.gallery {
	    padding: 60px 0;
	}
}
@media (max-width: 767px) {
    .flex-content.gallery .items:not(.swiper) .item {
        flex: 1 1 33.3333%;
        max-width: calc(33.3333% - ((40px * 3) / 4));
    }
	.flex-content.gallery {
	    padding: 60px 0;
	}
}
@media (max-width: 575px) {
    .flex-content.gallery .items:not(.swiper) .item {
        flex: 1 1 50%;
        max-width: calc(50% - ((40px * 3) / 4));
    }
}