/*
 Theme Name:   twentyseveteen-child theme
 Theme URI:    guide-herboristerie.local
 Description:  Description de mon thème enfant
 Author:       Patounette & Stelounette
 Template:     twentyseventeen
 Version:      0.1.0
*/

/*Archive Plant Template & Plant by Type*/

.posts-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.card {
    margin: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    width: 300px; 
    height: 300px; 
    border-radius: 4px;
}

.card__thumbnail {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

.card__title {
    align-self: flex-end; 
    padding: 0.5rem;
    color: rgba(255,255,255,.90); 
    font-size: 1.5rem;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 1.5px 1px 1.5px black;
    line-height: 1;
    font-weight: 600;
}

.card__thumbnail > img{ 
    height: 100%; 
  }  

  .card__thumbnail > .card__title{ 
    position: absolute; 
    left: 20px; 
    bottom: 20px; 
}


.card__image img {
    object-fit: cover;
    width: 300px;
    height: 300px; 
}

/*
 Plants list with white background for title 
 
.card__caption {
    width: 300px;
    background-color: white;
    position: absolute;
    top: 93%;
    text-align: center;
    font-size: 23px;
    padding-top: 0.5em;
}

.card__title {
    max-height: 85px;
    overflow: hidden;
    font-size: 23px;
    line-height: 28px;
    text-overflow: ellipsis;
    color: black;
    font-weight: 400;
}

.card__link {
    text-shadow: 0px 1px 0.5px black;
}
*/

.article h2 {
    position: absolute;
    top: 90%;
    z-index: 1;
    padding: 0 20px;
    color: white;
    transform: translateY(-50%);
    text-align: center;
    transition: .3s;
    max-height: 85px;
    overflow: hidden;
    font-size: 23px;
    line-height: 28px;
    text-overflow: ellipsis; 
}


.anchor {
    display: flex;
    justify-content: end;
}

.single-featured-image-header {
    display: none;
}

@media screen and (min-width: 48em){
        
    
    .blog:not(.has-sidebar) #primary article, .archive:not(.page-one-column):not(.has-sidebar) #primary article, .search:not(.has-sidebar) #primary article, .error404:not(.has-sidebar) #primary .page-content, .error404.has-sidebar #primary .page-content, body.page-two-column:not(.archive) #primary .entry-content, body.page-two-column #comments {
        float: right;
        width: 100%;
    }
        }
