:root {
    --news-picture-height: 65%;
}
/* CSS Document */

/* list 2021 */
div.NewsSimple {
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    padding: 0px;
    font-family: var(--skin-fontfamily);
}
div.NewsSimple > ul {
    display: grid;
    list-style-type: none;
    padding: 0px;
    margin: 0px;    
    gap: var(--skin-gap);
}


div.NewsSimple ul li .titlepic {
    background-color: white;
}
div.NewsSimple ul li .titlepic > a {
    display: block;
}
div.NewsSimple ul li .titlepic > a >  img {
    height: 100%;
    object-fit: cover;
    width: 100%;
    position: absolute;
    inset: 0;

}
div.NewsSimple a {
    color: var(--skin-colorP2);
    text-decoration: none;

}
/* ATEDINgridrendszerre átállva */
div.NewsSimple .ATDcontent.grid {
    /*
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-flow: dense;
    */
}
div.NewsSimple > ul li {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
/*    grid-column: span 2; */
}
div.NewsSimple > ul li > .content {
    flex-grow: 1;
    position: relative;
    color: var(--skin-colorP1);
}

div.NewsSimple > ul li h1,
div.NewsSimple > ul li h3 {
    font-size: 1.4em;
    color: var(--skin-colorP1);
    text-decoration: none;

    padding: 0.5em 0;
    margin: 0.5em 0em;
    overflow: hidden;

    height: 3em;

    font-weight: normal;
}
div.NewsSimple > ul li .date {
    flex-basis: 1em;
}
div.NewsSimple > ul li .content {
    max-height: 5em;
    overflow: hidden;
}

div.NewsSimple > ul li .titlepic {
    flex-basis: 0em;
    padding-top: var(--news-picture-height);
    position: relative;
    text-align: center;
    overflow: hidden;
}
div.NewsSimple > ul li .titlepic img  {
    transform: scale(1);
    transition: transform 0.5s ease, color 0.5s ease;
}
div.NewsSimple > ul li .titlepic:hover img {
    transition: transform 0.5s ease, color 0.5s ease;
    transform: scale(1.1);
    
}
div.NewsSimple > ul li .titlepic:after {
    content: "";
    position: absolute;
    background-color: rgba(0,0,0,0);
    transition: background-color 0.5s ease, color 0.5s ease;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    color: rgba(0,0,0,0);
}
div.NewsSimple > ul li .titlepic:hover:after {
    text-align: center;
    display: block;
    background-color: rgba(0,0,0,0.5);
    color: white;
    margin:auto;
    transition: background-color 0.5s ease, color 0.5s ease;
    pointer-events: none;
}
div.NewsSimple > ul li .titlepic a:after {
    content:attr(data-readmore);
    display: none;
    color: white;
    left: 0;
    right: 0;
    top: calc(50% - 1em);
    bottom: 0;
    position: absolute;
    text-align: center;
    z-index: 1;

}

div.NewsSimple > ul li .titlepic:hover  a:after {
    display: block;
}
div.NewsSimple .readmore {
    text-align: right;
    padding: 0.25em 0;
}
div.NewsSimple .readmore a:visited,
div.NewsSimple .readmore a {
    padding: 0.3em 1em 0.5em;
    display: inline-block;
    color: var(--skin-colorP1);
    transition: all 0.5s ease;
    border: 1px solid #ccc;
}
div.NewsSimple .readmore a:hover {
    padding: 0.3em 1.8em 0.5em;
    color: white;
    background-color: var(--skin-colorP2);
    border-color: var(--skin-colorP2);
}



/* OLD  */
div.NewsSimple ul li .item {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin: 5px;
    overflow: hidden;

}
div.NewsSimple ul li .item > div:nth-child(2) {
    flex-grow: 1;
}

/* details */
div.NewsSimple .details h1 {

}
div.NewsSimple .details .titlepic {
    margin-top: 4px;
    margin-right: 10px;
    margin-bottom: 8px;
    margin-left: 0px;
    overflow: hidden;
    float: left;
    border: 1px solid #000000;
}
div.NewsSimple .details .titlepic img {
    margin: 0px;
    padding: 0px;
    width: 100%;
}

/* common  */
div.NewsSimple div:not(.details) .uf_body {
    text-align: justify;
    font-size: 1em;
    height: 4em;
    overflow: hidden;
    padding: 1em;
}

div.NewsSimple .date,
div.NewsSimple .uf_date {
    font-size: .8em;
    font-style: italic;
    font-weight: normal;
    clear: left;
    text-align: right;
    color: var(--skin-colorP1);
    margin-top:1em;
}


/*
*
* RESPONSIVE 2015
*
*/
@media screen
and (max-width: 360px) {
    div.NewsSimple > ul {
        grid-template-columns: repeat(2,1fr);
    }
}

@media screen
and (min-width: 361px)
and (max-width: 768px) {
    div.NewsSimple > ul {
        grid-template-columns: repeat(4,1fr);
    }
}

@media only screen
and (min-width : 769px) 
and (max-width : 973px) {
    div.NewsSimple > ul {
        grid-template-columns: repeat(6,1fr);
    }
}

@media only screen
and (min-width : 974px) 
and (max-width : 1169px) {
    div.NewsSimple > ul {
        grid-template-columns: repeat(8,1fr);
    }
    div.NewsSimple ul li {

    }
}
@media only screen
and (min-width : 1170px) {
    div.NewsSimple > ul {
        grid-template-columns: repeat(8,1fr);
    }
    div.NewsSimple ul li {

    }
}