#gallery-list {
    position: relative;
    overflow: hidden;
}

.gallery-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.gallery-list li {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
    height: 100%;
    border-left: 1px solid #FFF;
}

.gallery-list li:first-child {
    border: none;
}

.gallery-list .gallery-body {
    color: #fff;
    padding: 26px;
    text-align: center;
}

.gallery-list .gallery-body-hover {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s;
}

.gallery-list .gallery-title {
    text-transform: uppercase;
    font-weight: 300;
    font-size: 2.188rem;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    margin-bottom: 10px;
    line-height: 1.1;
	color: #FFF
}

.gallery-list .gallery-title strong {
    font-weight: 600;
}

.gallery-list .gallery-text {
    font-weight: 400;
    font-size: 1.25rem;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

.gallery-list .gallery-text p {
    margin-top: 0;
}

.gallery {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery img {
    border: 0 none;
    display: none;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.gallery-list .gallery-button {
    background: transparent;
    text-transform: uppercase;
    color: #fff;
    border-radius: 33px;
    padding: 9px 25px;
    display: table;
    margin: 15px auto 0;
    font-size: 18px;
    font-weight: 300;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    border: 1px solid #fff;
}

.gallery-list .gallery-button::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
    content: "";
    background-color: rgba(0, 0, 0, 0);
}

/* 
.gallery-list .gallery-button:hover {
    background: #fff;
    color: var(--e-global-color-primary);
} */

.gallery-list .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    visibility: hidden;
    display: block;
}

#gallery-list li.active .gallery::before {
    filter: blur(3.8px);
    backdrop-filter: blur(3.8px);
    background: rgba(0, 0, 0, 0.35);
    z-index: 6;
}

#gallery-list li.active .gallery-body-hover {
    height: auto;
    opacity: 1;
}

#gallery-list li.active .gallery-body {
    text-align: center;
    z-index: 6;
}

#gallery-list li.active .gallery-body .gallery-text.align-left {
    text-align: left !important;
    z-index: 6;
}

#gallery-list li.active .background-image {
    opacity: 1;
    z-index: 5;
    visibility: visible;
    transition: all 0.3s ease-in;
}

/* #gallery-list li.active .gallery::before {
    display: none;
} */

/* */
.gallery::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 7;
}

#gallery-list .gallery-list:hover .gallery::after {
    content: "";
    position: absolute;
    top: 0;
    left: -1px;
    width: 1px;
    height: 100%;
    z-index: 7;
    background-color: #FFF;
}

#gallery-list .gallery-list:hover li:first-child .gallery::after {
    display: none;
}

@media screen and (max-width: 768px) {
    .gallery-list-default-background {
        display: none;
    }

    .gallery {
        height: auto;
    }

    .gallery-list {
        position: relative;
        flex-direction: column;
        height: auto;
    }

    .gallery-list li {
        height: auto;
        padding: 0;
        border: 0 none;
    }

    .gallery-list .background-image {
        height: auto;
        opacity: 1;
        visibility: visible;
        position: relative;
        border-radius: 0;
    }

    .gallery-list .gallery img {
        display: none;
    }

    .gallery-list .gallery-body {
        position: relative;
        padding: 28px;
        text-align: center;
    }

    .gallery-list .gallery-title {
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-size: 6.944vw;
        line-height: 1.3;
    }

    .gallery-list .gallery-text p {
        font-size: 4.444vw;
        line-height: 1.5;
    }

    .gallery-list .gallery-body-hover {
        height: auto;
        opacity: 1;
    }

    .gallery-list .gallery-button {
        margin-top: 0.5rem;
        padding: 5px 20px;
        font-size: 4.444vw;
    }

    #gallery-list .gallery-list:hover .gallery::after,
    #gallery-list .gallery-list .gallery-button::after {
        display: none;
    }

    .gallery::before {
        display: none;
    }
}