/*
Post card
*/
.latest-post {
    margin-left: 0px;
    margin-bottom: 50px;
    border-radius: 3px;
    display:flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: stretch;
    box-shadow: 0px 0px 15px -4px rgba(0,0,0,0.33);
    border-radius: 5px;
}
.latest-post:last-of-type {
    margin-bottom: 20px;
}

.latest-post h2 {
    padding-bottom: 0px;
}
.latest-post p {
    padding-bottom: 0px;
}

.latest-post .read-more {
    margin-top: 15px;
    padding: 20px;
    border: 2px solid orange;
    border-radius: 10px;
    display: inline-block;
}


.latest-post-readmore a:after {
    content: "\2192";
    font-size: 150%;
    margin-left: 10px;
}

.latest-post-cover {
    display: block;
    position: relative;
    min-height: 200px;
    max-height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    flex-grow: 1;
    flex-basis: 300px;
}
.latest-post-container{
    display: block;
    flex-grow: 9999;
    flex-basis: 300px;
}
.latest-post-content {
    position: relative;
    padding: 30px;
    max-height: 175px;
    overflow: hidden;
}
.latest-post-content::after {
    content  : "";
    position : absolute;
    z-index  : 1;
    bottom   : 0;
    left     : 0;
    pointer-events   : none;
    background-image : linear-gradient(to bottom, 
                      rgba(255,255,255, 0), 
                      rgba(255,255,255, 1) 75%);
    width    : 100%;
    height   : 30px;
}
.latest-post-readmore {
    padding-left: 30px;
    border-top: 1px solid rgba(196, 196, 196, 0.623);
    text-transform: uppercase;
}
.latest-post-readmore a {
    display: table-cell;
    height: 60px;
    vertical-align: middle;
}


/*
Blog post content
*/

article img {
	height: 100%; /* make sure width-controlled images in blog post are scaled 1:1 */
}

/*
Post header
*/

.entry-header{
	margin-bottom: 20px;
}

.entry-meta { 
	font-size: smaller;
}

.post {

}

.post-thumbnail {
    width: calc(100% + (2*var(--padding-mobile)));
    top: 0;
    left: 0;
    max-height: 35vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items:center;
    margin: calc(-1*var(--padding-mobile));
    margin-bottom: 50px;
}
@media (min-width: 900px) {
    .post-thumbnail {
        width: calc(100% + (2*var(--padding-desktop)));
        margin: calc(-1*var(--padding-desktop));
        margin-bottom: 50px;
    }
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
}

.entry-title {
    padding-bottom: 6px;
}

.posted-on .updated {
    visibility: hidden;
    width: 0px;
}

.cat-links {
    padding-right: 30px;
}

.post-edit-link {
    margin-left: 30px;
}



/*
Post footer
*/

.entry-footer {
    margin-top: 35px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 50px;
    -moz-column-gap: 50px;
    -webkit-column-gap: 50px;
}
.entry-footer h4 {
    padding-bottom: 15px;
}

/* Tags */
.footer-tags {
    /*margin-right: 50px;*/
    margin-bottom: 20px;
}
.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    height: 35px;
    align-items: center;
}
.tag-button {
    
    padding: 7px;
    border-radius: 5px;
    color: black;
    margin-right: 10px;
    font-size: smaller;
    background-color: orange;
}
.tag-buttons a {
    color: black;
}

/* Share */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
}
.share-buttons .share-button {
    width: 30px;
    margin-right: 10px;
    position: relative;
}
.share-buttons a {
}
.share-buttons img {
    width: 35px;
    position: absolute;
    height: unset;
}
.share-hover {
    opacity: 0;
}
.share-default {
}
.share-buttons .share-button:hover .share-hover {
    opacity: 1;
}
.share-buttons .share-button:hover .share-default {
    opacity: 0;
}

.subscribe-block {
    height: 35px;
}







/*
Post footer below line
*/

hr.post-end {
    margin-top: 35px;
    margin-bottom: 50px;
    border: 1px dotted lightgrey;
}

.navigation.post-navigation .screen-reader-text {
    display: none;
}

.nav-previous a {
    margin-top: 10px;
    display: block;
}
.nav-next a {
    margin-top: 10px;
    display: block;
}
.nav-subtitle {
    margin-top: 10px;
    display: block;
}

/*
Image block
*/

.wp-block-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wp-block-image img {
    max-width: 100%;
}

figcaption {
    text-align: center;
    font-size: small;
}

/*
Image + text block
*/

.wp-block-media-text {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.wp-block-media-text.has-media-on-the-right {
    flex-direction: row-reverse;
}

.wp-block-media-text__media {
    margin: 10px;
}
.wp-block-media-text__content {
    margin: 10px;
}

/*
1-2 column galery block
*/

.blocks-gallery-grid {
    display: flex;
    flex-wrap: wrap;
}
.blocks-gallery-item {
    margin: 10px;
}
.wp-block-gallery.columns-2 .blocks-gallery-item {
    width: calc(50% - 20px);
    height: calc(50% - 20px);
}
.wp-block-gallery.columns-1 .blocks-gallery-item {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
}

.wp-block-gallery.is-cropped {
    object-fit: contain;
}

.wp-block-gallery .blocks-gallery-item img {
    width: 100%;
    height: 100%
}

/*
Pullquote
*/
.wp-block-pullquote {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
.wp-block-pullquote blockquote {
    max-width: 500px;
    border-top: 2px solid orange;
    border-bottom: 2px solid orange;
    padding: 50px;
}
.wp-block-pullquote blockquote p {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: large;
    font-weight: bold;
}


/*
Embedded iframe
*/
.wp-block-embed {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.wp-block-embed__wrapper {
    max-width: 100%;
}

.wp-max-width-100 iframe {
    max-width: 100%;
}


/*
Widgets
*/

/*
Tagcloud widget
*/
.footer-widgets .tagcloud a {
    font-size: medium !important;
}
.footer-widgets .tagcloud a .tag-link-count {
    color: black;
}

/*
Search widget
*/

.search-form {
    display: flex;
    flex-direction: row;
    vertical-align: bottom;
}

.search-form .screen-reader-text {
    margin-right: 5px;
    margin-bottom: 10px;
}
.search-form .search-field {
    border-bottom: 1px solid orange;
    color: rgba(44, 39, 39, 0.9);
    padding: 8px 0;
    margin-right: 20px;
    min-width: 250px;
}
.search-form .search-submit {
    padding: 10px;
    color: black;
    background-color: orange;
    border-radius: 5px;
    cursor: pointer;
}
.search-form .search-submit:hover {
  background-color: rgb(255, 185, 56);
}


/*
Share buttons
*/

.copyToClipboard {
    cursor: pointer;
    color: orange;
}