/**
 * WP Tutorials Carousel - Frontend
 */

/** Required to make the carousel work. */

.wptc-container {
    padding:  1em;
    transition: 0.3s;
}

.wptc-container .glide__slides {
    margin-left:  0;
}

.wptc-container .glide__slide {
    display:  block;
    height:  inherit;
}

.wptc-item {
    display:  flex;
    flex-direction: column;
    align-items: stretch;
    border-radius:  1em;
    overflow:  hidden;
    justify-content: stretch;
    height:  100%;
    border:  2px solid #888;
    background-color:  white;
}

.wptc-item .error {
    padding:  1em;
    font-weight: bold;
    color:  red;
}

/** Change these to adjust the styles for your slides. */

.wptc-item .thumbnail {
    display:  block;
    flex:  1;
    position:  relative;
}

.wptc-item .post-title {
    position:  absolute;
    left:  0;
    bottom:  0;
    width:  100%;
    background-color:  rgba( 255, 255, 255, 0.80 );
    margin:  0;
    padding:  1.0rem;
    font-size:  18pt;
}

.wptc-item .thumbnail .wp-post-image {
    width:  100%;
    height:  100%;
    height:  17em;
    object-fit: cover;
}

.wptc-item .post-excerpt {
    background-image:  linear-gradient( to bottom right, transparent, #eee);
    padding:  1.05rem;
    line-height: 1.25em;
    flex:  1;
    display:  flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.wptc-item .post-excerpt .button {
    display:  inline-block;
}
