/*------------------------------------*\
    
    Posts CSS
 
    Posts.................Post content for loop on blog homepage, category, search page, archives, etc.
    Sidebar...............Sidebar elements.

\*------------------------------------*/
@-webkit-keyframes simpleSpin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes simpleSpin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

/**
 * Post Item 
 */

.post-item {
    --gutter: var(--bs-gutter-x);
    margin: calc(var(--gutter) * .5) 0;
    height: calc(100% - var(--gutter));
}

.post-item__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: none;
}

.post-item__link:hover {
    transform: translate3d(0,-10px,0);
}

.post-item__media {
    position: relative;
    margin-bottom: 0;
    height: 200px;
    overflow: hidden;
}

.post-item__media--placeholder {
    padding: 20px;
    background-color: #fff;
}

.post-item__media--placeholder img {
    object-fit: contain;
}

.post-item__media:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(23,19,12,0.08) 80%,rgba(6,18,10,1) 100%);
    opacity: 1;
    transition: all ease-in-out 0.3s;
}

.post-item__link:hover .post-item__media::after {
    opacity: 0;
}

.post-item__title {
    margin-bottom: 25px;
    font-size: 24px;
}

.post-item__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 32px;
    background-color: #efead9;
    border-bottom: 6px solid #D9D1B7;
}

.post-item__cta {
    margin-top: auto;
}

/**
 * Single Post
 */
.single-post {
    margin-bottom: 50px;
}

.single-post__content {
    margin-bottom: 50px;
    overflow: hidden;
}

.single-post__content:after {
    content: '';
    display: block;
    float: none;
    clear: both;
}

.single-post__image {
    margin-bottom: 50px;
}

.single-post__image img {
    margin: auto;
}

/* Adjacent sections */
.single-post .section:first-child,
.single-post .single-post__image + .section,
.single-post .section + .section {
    padding-top: 0 !important;
}

.single-post .section:last-child {
    padding-bottom: 0 !important;
}


@media (min-width: 1200px) {
    .single-post {
        margin-bottom: 0;
    }
}

/**
 * Sidebar
 */
.page-sidebar > .widget {
	margin-bottom: 50px;
}

/**
* FX Load More
*/
.load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.load-more__progress {
    margin-top: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 10px;
    border: 0;
    border-radius: 0;
    min-width: 250px;
}

progress::-webkit-progress-bar,
progress::-webkit-progress-value,
progress::-moz-progress-bar {
    height: 10px;
    border: 0;
    border-radius: 0; 
}

progress::-webkit-progress-bar {
    background-color: #ccc8ba;
}

progress::-webkit-progress-value {
    background-color: #17130c;
}

/* Loading Indicator */
.is-loading:before  {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid;
    border-color: #67d38c #67d38c transparent;
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: simpleSpin 1.5s linear infinite;
    animation: simpleSpin 1.5s linear infinite;
}

/* Load More Button */
.load-more__btn {
    border: 0;
    display: block;
    margin-top: 20px;
}

.load-more__btn.is-loading {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more__btn.is-loading:before {
    border-color: #17130c #17130c transparent;
}

.load-more__btn.is-loading:before {
    width: 20px;
    height: 20px;
}

.load-more__btn.is-disabled {
    display: none;
}

/* Placeholder Space */
.placeholder-block {
    display: flex;
    position: relative;
    margin: calc(var(--bs-gutter-x) * .5) 0;
}

.placeholder-block__inner {
    flex-grow: 1;
    border-bottom: 6px solid #D9D1B7;
    background-color: #efead9;
}

.placeholder-block.is-loading:before {
    width: 50px;
    height: 50px;
}