﻿.showf-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /*20px;*/
    justify-content: left;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.showf-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
/*    flex: 0 0 calc(33.333% - 14.7px);
    max-width: calc(33.333% - 14.7px);*/
    flex: 0 0 calc(25% - 14.7px);
    max-width: calc(25% - 14.7px);
    prevents stretching position: relative;
    position: relative;
    padding-bottom: 12px; /* space for bottom element */
}

.showf-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.showf-body {
    padding: 9px;     /*18px;*/
}

    .showf-body p.nav {
        position: absolute;
        bottom: 0;
        right: 0;
    }

.showf-title {
    font-size: 16px;   /*22px;*/
    /*margin: 0 0 8px 0;*/
    margin:0;
}

.showf-text {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.showf-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a6a00;
    font-weight: bold;
    /*margin-bottom: 8px*/
}

@media (max-width: 1000px) {
    .showf-card {
        flex: calc(33.33333% - 14.7px);
        max-width: calc(33.33333% - 14.7px); /* prevents stretching */
    }
}

/*@media (max-width: 600px) {
    .showf-card {
        flex: 0 0 100%;
        max-width: 100%;*/ /* prevents stretching */
    /*}
}*/
@media (max-width: 800px) {
    .showf-card {
        flex: calc(50% - 14.7px);
        max-width: calc(50% - 14.7px); /* prevents stretching */
    }
}

@media (max-width: 489px) {
    .showf-card {
        flex: calc(50% - 14.7px);
        max-width: calc(50% - 14.7px); /* prevents stretching */
    }
}



@media screen and (max-width: 993px) {
    .showf-title, .showf-text {
        font-size: 15px !important;
        /*line-height: 1.5 !important;*/
    }
}

@media screen and (max-width: 909px) /*and (min-width: 874px)*/ {
    .showf-title, .showf-text {
        font-size: 14px !important;
        /*line-height: 1.4 !important;*/
    }
}


@media screen and (max-width: 759px) {
    .showf-title, .showf-text {
        font-size: 13px !important;
        /*line-height: 1.3 !important;*/
    }
}

@media screen and (max-width:699px) {
    .showf-title, .showf-text {
        font-size: 12px !important;
        /*line-height: 1.2 !important;*/
    }

    .showf-tag {
        font-size: 11px;
    }
}

@media screen and (max-width:669px) {
    .showf-tag {
        font-size: 10px;
    }
}