h2{
    margin-top: 0;
}
h4{
    margin-bottom: 0;
}

.salemf-elementor-post-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.salemf-elementor-post-grid h4,
.salemf-elementor-post-grid h5 {
    color: black;
}

.salemf-elementor-post-grid .post-grid-item {
    display: flex;
    background-color: rgb(255, 255, 255);
    box-sizing: border-box;
    border-radius: 10px;
    padding-bottom: 25px;
    flex-direction: column;
    overflow: hidden;
}

.salemf-elementor-post-grid .post-grid-item .post-grid-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.salemf-elementor-post-grid .post-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.7em;
}

.salemf-elementor-post-grid .post-grid-item.col2 {
    width: calc(50% - 15px);
}

.salemf-elementor-post-grid .post-grid-item.col3 {
    width: calc(33.3333% - 15px);
}

.salemf-elementor-post-grid .post-grid-item.col4 {
    width: calc(25% - 15px);
}

.salemf-elementor-post-grid .post-grid-item.col5 {
    width: calc(20% - 15px);
}

.salemf-elementor-post-grid .post-grid-item.col6 {
    width: calc(16.6667% - 15px);
}

.post-grid-item-image {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    max-height: 400px;
}

.col3 .post-grid-item-image {
    height: 200px;
    max-height: 200px;
}

.col4 .post-grid-item-image {
    height: 150px;
    max-height: 150px;
}

.post-grid-item-image img {
    max-width: 100%;
    max-height: auto;
    transition: all .3s;
}

.post-grid-item-content {
    padding: 20px 25px 10px;
}

.post-grid-button {
    padding: 0 20px;
    text-align: center;
}

/* Layout 1 */


.salemf-elementor-post-grid .post-grid-item.post-grid-layout1 {
    padding-bottom: 10px;
    border-radius: initial;
    background: none;
}

.salemf-elementor-post-grid .post-grid-item.post-grid-layout1 .post-grid-item-content {
    padding: 0;
}

/* Layout 2 */
.salemf-elementor-post-grid .post-grid-item.post-grid-layout2 {
    flex-direction: row;
    align-items: stretch;
    width: 100% !important;
    padding-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
}

.salemf-elementor-post-grid .post-grid-item.post-grid-layout2 .post-grid-item-left {
    flex: 1;
    background-size: cover;
    background-position: center center;
}

.salemf-elementor-post-grid .post-grid-item.post-grid-layout2 .post-grid-item-right {
    flex: 2;
    display: flex;
    align-items: center;
}

.salemf-elementor-button,
a.salemf-elementor-button {
    display: inline-block;
    line-height: 1;
    padding: 12px 24px;
    fill: #fff;
    text-align: center;
    transition: all .3s;
    border: 2px solid #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #FFFFFF;
    background-color: #78B826;
    border-radius: 22px;
    cursor: pointer;
}

.salemf-elementor-button:hover,
a.salemf-elementor-button:hover {
    color: #78B826;
    background: white;
    border: 2px solid #78B826;
}

.post-grid-more {
    text-align: center;
    margin-top: 15px;
}

/** medlemmar list **/
.salemf-memberlist {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex-direction: column;
}

.salemf-memberlist-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.salemf-memberlist-item {
    width: calc(33% - 30px);
}

@media (max-width: 1024px) {
    .salemf-elementor-post-grid .post-grid-item {
        width: calc(50% - 15px) !important;
    }
}

@media (max-width: 767px) {
    .salemf-elementor-post-grid .post-grid-item {
        width: 100% !important;
    }

    .salemf-elementor-post-grid .post-grid-item.post-grid-layout2 {
        flex-direction: column;
        padding: 20px 10px 35px;
    }

    .salemf-elementor-post-grid .post-grid-item.post-grid-layout2 .post-grid-item-left {
        min-height: 300px;
        flex: 1;
        height: 300px;
    }
}