/*
|--------------------------------------------------------------------------
| Desktop Homepage
|--------------------------------------------------------------------------
|
| Desktop only.
| Mobile homepage remains controlled by home-mobile.css.
|
*/


/*
|--------------------------------------------------------------------------
| Page
|--------------------------------------------------------------------------
*/

.desktop-home {
    background: #f4f4f5;
}


/*
|--------------------------------------------------------------------------
| Main Area
|--------------------------------------------------------------------------
*/

.desktop-home-body {
    padding: 38px 0 48px;
}


/*
|--------------------------------------------------------------------------
| Desktop Layout
|--------------------------------------------------------------------------
*/

.desktop-home-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        320px;
    align-items: start;
    gap: 30px;
}


/*
|--------------------------------------------------------------------------
| Main Feed
|--------------------------------------------------------------------------
*/

.desktop-feed {
    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Heading
|--------------------------------------------------------------------------
*/

.desktop-feed-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}


.desktop-feed-heading > div:first-child {
    min-width: 0;
}


.desktop-feed-heading span {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 9px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}


.desktop-feed-heading h1 {
    margin: 0;
    color: #16171b;
    font-size: 27px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -.6px;
}


.desktop-feed-count {
    flex: 0 0 auto;
    padding-bottom: 3px;
    color: #8b8e94;
    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| Post Grid
|--------------------------------------------------------------------------
*/

.desktop-post-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 18px;
}


/*
|--------------------------------------------------------------------------
| Post Card
|--------------------------------------------------------------------------
*/

.desktop-post-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #e0e1e5;
    border-radius: 9px;
    background: #ffffff;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}


.desktop-post-card:hover {
    border-color: #d0d1d6;
    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, .055);
    transform: translateY(-2px);
}


.desktop-post-card.is-sticky {
    border-color: #d7c878;
}


/*
|--------------------------------------------------------------------------
| Post Image
|--------------------------------------------------------------------------
*/

.desktop-post-image {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e8e8ea;
}


.desktop-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform .28s ease;
}


.desktop-post-card:hover
.desktop-post-image img {
    transform: scale(1.025);
}


/*
|--------------------------------------------------------------------------
| Date Badge
|--------------------------------------------------------------------------
*/

.desktop-post-date {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .96);
    color: #24252a;
    font-size: 10px;
    font-weight: 700;
    box-shadow:
        0 2px 7px
        rgba(0, 0, 0, .08);
}


/*
|--------------------------------------------------------------------------
| Post Type
|--------------------------------------------------------------------------
*/

.desktop-post-type {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 8px;
    border-radius: 4px;
    background: rgba(17, 18, 22, .9);
    color: #ffffff;
    font-size: 8px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .7px;
    text-transform: uppercase;
}


/*
|--------------------------------------------------------------------------
| Sticky
|--------------------------------------------------------------------------
*/

.desktop-sticky-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border-radius: 4px;
    background: #111216;
    color: #ffffff;
    font-size: 8px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .7px;
}


/*
|--------------------------------------------------------------------------
| Video Play Button
|--------------------------------------------------------------------------
*/

.desktop-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    padding-left: 3px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .72);
    color: #ffffff;
    font-size: 14px;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(3px);
}


/*
|--------------------------------------------------------------------------
| Card Content
|--------------------------------------------------------------------------
*/

.desktop-post-content {
    padding: 15px 16px 17px;
}


.desktop-post-content h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #191a1e;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


.desktop-post-content h2 a {
    color: inherit;
    text-decoration: none;
}


.desktop-post-content h2 a:hover {
    color: var(--primary);
}


/*
|--------------------------------------------------------------------------
| Card Meta
|--------------------------------------------------------------------------
*/

.desktop-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
    color: #8a8c92;
    font-size: 10px;
}


.desktop-post-meta a {
    color: #696c72;
    font-weight: 650;
    text-decoration: none;
}


.desktop-post-meta a:hover {
    color: var(--primary);
}


.desktop-post-meta
> * + *::before {
    content: "•";
    margin-right: 7px;
    color: #b5b7bb;
}


/*
|--------------------------------------------------------------------------
| Pagination Container
|--------------------------------------------------------------------------
*/

.desktop-pagination-wrap {
    margin-top: 26px;
    padding: 17px;
    border: 1px solid #e0e1e5;
    border-radius: 8px;
    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
*/

.desktop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}


.desktop-pagination a,
.desktop-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 37px;
    height: 37px;
    padding: 0 10px;
    border: 1px solid #d9dbe0;
    border-radius: 5px;
    background: #ffffff;
    color: #35373c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}


.desktop-pagination a:hover {
    border-color: #aeb1b7;
    background: #f5f5f6;
}


.desktop-pagination a.active {
    border-color: #111216;
    background: #111216;
    color: #ffffff;
}


.desktop-pagination span {
    border-color: transparent;
    color: #989ba1;
}


.desktop-pagination
.pagination-next,
.desktop-pagination
.pagination-last {
    width: auto;
}


/*
|--------------------------------------------------------------------------
| Empty State
|--------------------------------------------------------------------------
*/

.desktop-feed-empty {
    padding: 50px 20px;
    border: 1px solid #e0e1e5;
    border-radius: 9px;
    background: #ffffff;
    color: #898c92;
    text-align: center;
    font-size: 13px;
}


/*
|--------------------------------------------------------------------------
| General Sidebar
|--------------------------------------------------------------------------
|
| archive-sidebar.php owns its widget styling.
| This only positions it beside the homepage feed.
|
*/

.desktop-home-layout
> .archive-sidebar {
    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Medium Desktop
|--------------------------------------------------------------------------
*/

@media (
    min-width: 901px
)
and (
    max-width: 1150px
) {

    .desktop-home-layout {
        grid-template-columns:
            minmax(0, 1fr)
            290px;
        gap: 22px;
    }


    .desktop-post-content h2 {
        font-size: 15px;
    }

}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (
    min-width: 601px
)
and (
    max-width: 900px
) {

    .desktop-home-layout {
        grid-template-columns: 1fr;
    }


    .desktop-home-layout
    > .archive-sidebar {
        display: none;
    }


    .desktop-post-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/*
|--------------------------------------------------------------------------
| Mobile Safety
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .desktop-home {
        display: none !important;
    }

}