.nem-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 55px;
}

.nem-blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nem-blog-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}

.nem-blog-card__image,
.nem-blog-card__image--placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: .9;
    }

    50% {
        opacity: .5;
    }
}

.nem-blog-card__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 13px 0 0;
}

.nem-blog-card__title a {
    color: var(--global-palette4);
}

.nem-blog-card__title a:hover {
    text-decoration: underline;
}

.nem-blog-card__excerpt {
    flex: 0 0 auto;
    margin: 0 0 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.56em * 3);
}

.nem-blog-card__read-more {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--global-palette5);
    text-decoration: none;
    text-transform: uppercase;
}

.nem-blog-card__read-more:hover {
    text-decoration: underline;
}

/* Mobile: show only first post */
@media (max-width: 767px) {
    .nem-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* new styles */

.content-area {
    position: relative;
    padding-top: 151px;
    padding-bottom: 108px;
    margin: 0 !important;
}

.background-image {
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 473px;
    background-image: url('/wp-content/themes/NEM/images/ZCC_8896-x2000.avif');
    z-index: -2;
}

@media (max-width: 767px) {

    .background-image {
        background-image: url('/wp-content/themes/NEM/images/hero-stories-x1000-square.avif');
    }
}

.image-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 473px;
    z-index: -1;
    background: linear-gradient(180deg, var(--global-palette4) 0%, rgba(2, 46, 63, 0.7) 99%);
}

@media (min-width: 768px) and (max-width: 1024px) {

    .image-filter,
    .background-image {
        height: calc(454px - (1024px - 100vw) / 7);
    }
}

@media (max-width: 767px) {
    .content-area {
        padding-top: 100px;
    }

    .image-filter,
    .background-image {
        height: 420px;
    }
}

body {
    background: var(--global-palette8);
}

body.content-style-unboxed .site {
    background: transparent;
}

.title {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    color: var(--global-palette8);
}

h6 {
    margin-bottom: 6px;
}

.title p {
    color: var(--global-palette8);
    margin-bottom: 64px;
}

.nem-blog-archive {
    display: flex;
    justify-content: center;
}

#nem-blog-archive-select {
    border-radius: 5px;
    box-shadow: 0px 15px 25px -7px rgba(0, 0, 0, 0.1);
    padding: 13px 20px 13px 20px;
    border: 2px solid var(--global-palette4);
    background-color: var(--global-palette4);
    color: #fff;
    min-width: 160px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27%3E%3Cpath fill=%27%23fff%27 fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 90% 50%;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.14px;
    text-transform: uppercase;
}

#nem-blog-archive-select option {
    color: #fff;
    background-color: var(--global-palette4);
}