{# Blog Listing Items #}
 
.hubdb-feed__item{
    display: flex;
    flex-direction: column;
    position: relative;
}

.hubdb-feed__item:not(.filtered){
	display: none;
}

.hubdb-feed__items .hubdb-feed__item.filtered:not(.active) {
	display: none; 
}

.hubdb-feed__item.bg-color--{
    background-color: #F5F5F5;
}

.hubdb-feed__item,
.hubdb-feed__item:hover{
    text-decoration: none;
}

.hubdb-feed__item__image{
    overflow: hidden;
    position: relative;
    width: 100%;
}
.hubdb-feed__item__image::before{
    /* replace this with aspect ratio stuff */
    content: '';
    width: 1px;
    margin-left: -1px;
    float: left;
}
.hubdb-feed__item__image::after{
  content: "";
  display: table;
  clear: both;
}

.grid-row--1 .hubdb-feed__item .hubdb-feed__item__image:before {
    padding-bottom: calc(100% / (16/9));
}

.hubdb-feed__item__img{
    transition: transform 0.3s ease-in-out;
    position: absolute;
    inset: 0;
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.hubdb-feed__item:hover .hubdb-feed__item__img{
    transform: scale(1.1);
}

.hubdb-feed__item__text{
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hubdb-feed__item__tags{
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hubdb-feed__item__date{
    display: block;
    margin-bottom: 2rem;
    opacity: 1;
    position:relative;
    z-index: 1;
    font-size: 1.8rem;
}

.hubdb-feed__item:has(.hubdb-feed__item__date--recurring){
    grid-row-start: 1;
    grid-row-end: 1;
}

.hubdb-feed__item__date:not(.color-light){
    color: var(--color-primary2);
}

.color-light .hubdb-feed__item__date{
    opacity: 1;
}

.hubdb-feed__item__title a{
    text-decoration: none;
    color: inherit;
}
.hubdb-feed__item__title a::after{
    position: absolute;
    content: "";
    inset: 0;
}

.hubdb-feed__item__post-content {
    z-index: 1;
    font-size: 1.6rem;
}

.hubdb-feed__item__read-more{
    display: block;
    margin-top: auto;
    display: flex;
	align-items: center;
    font-weight: 600;
}
.hubdb-feed__item__post-content + .hubdb-feed__item__read-more{
    padding-top: 1em;
}
.hubdb-feed__item__read-more iconify-icon{
    margin-left: 1.5rem;
}

.hubdb-feed__item__title{
    font-size: var(--font-h3--smaller-size);
}

.hubdb-feed__item--events .hubdb-feed__item__text.color-light svg path,
.hubdb-feed__item--downloads .hubdb-feed__item__text.color-light svg path{
    fill: white;
}

.hubdb-feed__item--downloads .hubdb-feed__item__date {
    display: none;
}

.hubdb-feed__select,
.hubdb-feed input{
    display: grid;
	grid-template-columns: minmax(0, 25%) minmax(0, 25%) minmax(0, 25%) minmax(0, 25%);
	gap: 1rem;
}

.hubdb-feed select,
.hubdb-feed input{
    width: 100%;
    /* --button-margin: 0.5rem;
    margin-left: 0;
    margin-top: 0;
    margin-right: var(--button-margin,0);
    margin-bottom: var(--button-margin,0); */
}

.hubdb__feed__show-container:has(.hubdb__feed__show.active){
	margin-top: 75px;
	padding-bottom: 8rem;
}

.hubdb__feed__show:not(.active){
	display: none;
	position: relative;
}

.hubdb__feed__show.active{
	display: flex;
    align-items: center; 
    justify-content: center; 
    appearance: none;
    border: 0;
}


@media only screen and (min-width: 961px) {    

    .hubdb-feed--downloads{
        display: grid;
        gap: var(--module-settings-column-gap, 0);
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: minmax(0, 1fr);
    }

    .hubdb-feed--downloads .hubdb-feed__item:first-of-type {
        grid-row-end: span 2;
    }

    .hubdb-feed--downloads .hubdb-feed__item:not(:first-of-type) {
        display: grid;
        grid-template-columns: 50% 50%;
    }

    .hubdb-feed--downloads .hubdb-feed__item:not(:first-of-type) .hubdb-feed__item__post-content{
        display: none;
    }

    .hubdb-feed--downloads .hubdb-feed__item:not(:first-of-type) .btn--listing {
        --button-size: 1.5rem;
        padding: calc(var(--button-padding-top)* 0.8) calc(var(--button-padding-lr)* 0.8) calc(var(--button-padding-bottom)* 0.8);
    }
}

@media only screen and (max-width: 960px) {    

    .hubdb-feed__select,
    .hubdb-feed input{
        display: grid;
        grid-template-columns: 100%;
        gap: 1rem;
    }

    .hubdb-feed--downloads{
        display: grid;
        gap: var(--module-settings-column-gap, 0);
        grid-template-columns: 1fr;
    }

    .hubdb-feed--downloads .hubdb-feed__item__image::before{
        padding-bottom: 300px !important;
    }
}

/* Image Aspect Ratios */

.hubdb-feed__item__image.hubdb-feed__item__image--16by9:before{
    padding-bottom: calc(100% / (16/9));
}
.hubdb-feed__item__image.hubdb-feed__item__image--3by2:before{
    padding-bottom: calc(100% / (3/2));
}
.hubdb-feed__item__image.hubdb-feed__item__image--4by3:before{
    padding-bottom: calc(100% / (4/3));
}
.hubdb-feed__item__image.hubdb-feed__item__image--1by1:before{
    padding-bottom: calc(100% / (1/1));
}
.hubdb-feed__item__image.hubdb-feed__item__image--2by3:before{
    padding-bottom: calc(100% / (2/3));
}

{# Blog Filters and Tags #}
.blog__filters__container{
    display: flex;
    flex-wrap: wrap;
}

.blog__filters__categories .cats > *,
.blog__filters__types .types > *,
.hubdb-feed__item__tags > *,
.blog-inner__tags__container > *{
    --button-margin: 0.5rem;
    margin-left: 0;
    margin-top: 0;
    margin-right: var(--button-margin,0);
    margin-bottom: var(--button-margin,0);
}

.btn.btn--filter:first-of-type{
    margin-left: 0;
}

.btn.btn--filter,
.btn.btn--listing,
.hubdb-feed__pagination__link,
.btn.btn--share{
	cursor:pointer;
	display: inline-flex;
    align-items: center;
	background-color: var(--blog-button-background-color);
	color: var(--blog-button-text-color);
	font-weight: var(--button-weight);
    font-size: var(--button-size);
    font-family: var(--font-button-font);
    line-height: 1;
	padding: var(--button-padding-top) var(--button-padding-lr) var(--button-padding-bottom);
	text-decoration:none;
    border-radius: var(--module-settings-cta-border-radius);
    border: var(--blog-button-border-width) solid var(--blog-button-border-color);
}
.btn.btn--filter:hover,
.btn.btn--filter.active,
.btn.btn--listing:hover,
.btn.btn--listing.active,
.hubdb-feed__pagination__link:hover,
.hubdb-feed__pagination__link.active,
.btn.btn--share:hover{
	background-color: var(--blog-button-hover-background-color);
	color: var(--blog-button-hover-text-color);
	text-decoration:none;
    border: var(--blog-button-border-width) solid var(--blog-button-hover-border-color);
}

.btn--share{
    border-radius: 100% !important;
    padding: 7px !important;
}

.color-light .btn.btn--filter,
.color-light .btn.btn--listing,
.color-light .hubdb-feed__pagination__link,
.color-light .btn.btn--share{
	cursor:pointer;
	display: inline-flex;
    align-items: center;
	background-color: var(--blog-button-light-background-color);
	color: var(--blog-button-light-text-color);
	font-weight: var(--button-weight);
    font-size: var(--button-size);
    font-family: var(--font-button-font);
    line-height: 1;
	padding: var(--button-padding-top) var(--button-padding-lr) var(--button-padding-bottom);
	text-decoration:none;
    border-radius: var(--module-settings-cta-border-radius);
    border: var(--blog-button-light-border-width) solid var(--blog-button-light-border-color);
}
.color-light .btn.btn--filter:hover,
.color-light .btn.btn--filter.active,
.color-light .btn.btn--listing:hover,
.color-light .btn.btn--listing.active,
.color-light .hubdb-feed__pagination__link:hover,
.color-light .hubdb-feed__pagination__link.active,
.color-light .btn.btn--share:hover{
	background-color: var(--blog-button-light-hover-background-color);
	color: var(--blog-button-light-hover-text-color);
	text-decoration:none;
    border: var(--blog-button-light-border-width) solid var(--blog-button-light-hover-border-color);
}

.blog-inner__tags__container{
    flex-wrap: wrap;
}

/* BLOG LISTING PAGE */
.hubdb-feed__listing.grid-row.grid-row--1 .hubdb-feed__item{
    display: flex;
    flex-direction: row;
    width: 100%;
}

.hubdb-feed__listing.grid-row.grid-row--1 .hubdb-feed__item .hubdb-feed__item__image,
.hubdb-feed__listing.grid-row.grid-row--1 .hubdb-feed__item .hubdb-feed__item__text{
    width: 50%;
}

.hubdb-feed__pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 3rem 0;
}

.hubdb-feed__pagination ul{
    list-style: none;
    padding: 0;
    display: flex;
}

.hubdb-feed__pagination__link{
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    padding: 5px;
    border-radius: 100%;
}

.hubdb-feed__pagination__link{
    line-height: 0;
    --button-margin: 0.5rem;
    margin: var(--button-margin,0);
}

.hubdb-feed__pagination__link.disabled{
    pointer-events: none;
    opacity: 0.5;
}

@media only screen and (max-width: 768px) {    
    .hubdb-feed__listing.grid-row.grid-row--1 .hubdb-feed__item{
        flex-direction: column;
    }

    .hubdb-feed__listing.grid-row.grid-row--1 .hubdb-feed__item .hubdb-feed__item__image,
    .hubdb-feed__listing.grid-row.grid-row--1 .hubdb-feed__item .hubdb-feed__item__text{
        width: 100%;
    }
}

.mdi-chevron-left:before,
.mdi-chevron-right:before{
    font-size: 2rem;
}