.post-grid {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.post-grid.transition {
    margin-bottom: 100vh;
}

.categories-filter {
    list-style: none;
    margin: 20px 0;
    margin-bottom: 40px;
    padding: 0;
    padding-bottom: 10px;
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: flex-start;
    border-bottom: 1px solid #E31019;
}

.category-filter-item {
    padding: 10px 0;
    margin: 10px;
    cursor: pointer;
}

.category-title {
    font-family: 'Quasimoda', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 11px;
    line-height: 11px;
    letter-spacing: 0.085em;
    text-transform: uppercase;
    color: #666666;
}

.category-filter-item.selected .category-title,
.category-filter-item:hover .category-title {
    color: #E31019;
}

.post-grid .grid-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, 1fr);
    opacity: 1;
    transition: opacity 350ms ease-in-out;
}

.post-grid .grid-items.transition {
    opacity: 0;
}

.post-grid .grid-item {
    position: relative;
    width: 100%;
    height: 0;
    max-height: 0;
    padding-bottom: 77%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    flex-shrink: 0;
    flex-grow: 0;
    overflow: hidden;
}

.post-grid .grid-item-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background-color: rgba(5, 5, 5, 0.65);
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.post-grid .grid-item:hover .grid-item-content {
    opacity: 1;
}

.post-grid .grid-item-content h3 {
    color: #ffffff;
    padding: 0 32px;
    padding-bottom: 12px;
    text-transform: unset;
    font-weight: 300;
}

.post-grid .grid-item-content p {
    color: #ffffff;
    padding: 0 32px;
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid #E31019;
    width: 100%;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 400;
    font-family: "quasimoda", sans-serif;
    line-height: 120%;
}

.post-grid #load-more, .post-grid #load-more:hover {
    border: none;
    margin: 0 auto;
    opacity: 0 !important;
    max-height: 40px;
    overflow: hidden;
}


body[data-elementor-device-mode="mobile"] .category-filter-item {
    padding: 0;
}

body[data-elementor-device-mode="mobile"] .post-grid .grid-items {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(18, 1fr);
}

body[data-elementor-device-mode="tablet"] .category-filter-item {
    padding: 0;
}

body[data-elementor-device-mode="tablet"] .post-grid .grid-items {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(9, 1fr);
}