/* ================================================
   TEAM GLAM — Editorial Journal Listing Feed CSS
   True 2-column continuous masonry stream
   ================================================ */

.tg-journal-feed-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 40px 80px;
    box-sizing: border-box;
}

/* ── 2-Column Continuous Masonry Stream ── */
.tg-journal-feed-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(32px, 5vw, 68px);
    width: 100%;
    box-sizing: border-box;
}

.tg-journal-feed-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 6.5vw, 84px);
    box-sizing: border-box;
}

/* ── Journal Card ── */
.tg-journal-feed-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

/* ── Featured Image Wrapper ── */
.tg-journal-feed-thumb-link {
    display: block;
    width: 100%;
    overflow: hidden;
    background-color: #f4f4f4;
    position: relative;
    box-sizing: border-box;
}

.tg-journal-feed-thumb {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.3s ease;
}

.tg-journal-feed-thumb-link:hover .tg-journal-feed-thumb {
    transform: scale(1.035);
}

/* ── Editorial Rhythm (Matches Original: Left column = 16:10 / 4:3 landscape, Right column = 3:4 portrait) ── */
.tg-journal-feed-wrap.is-ratio-editorial .tg-journal-col-left .tg-journal-feed-thumb-link {
    aspect-ratio: 16 / 10 !important;
}
.tg-journal-feed-wrap.is-ratio-editorial .tg-journal-col-left .tg-journal-feed-thumb {
    height: 100% !important;
    object-fit: cover !important;
}

.tg-journal-feed-wrap.is-ratio-editorial .tg-journal-col-right .tg-journal-feed-thumb-link {
    aspect-ratio: 3 / 4 !important;
}
.tg-journal-feed-wrap.is-ratio-editorial .tg-journal-col-right .tg-journal-feed-thumb {
    height: 100% !important;
    object-fit: cover !important;
}

/* Landscape Only */
.tg-journal-feed-wrap.is-ratio-landscape .tg-journal-feed-thumb-link {
    aspect-ratio: 16 / 10 !important;
}
.tg-journal-feed-wrap.is-ratio-landscape .tg-journal-feed-thumb {
    height: 100% !important;
    object-fit: cover !important;
}

/* Portrait Only */
.tg-journal-feed-wrap.is-ratio-portrait .tg-journal-feed-thumb-link {
    aspect-ratio: 3 / 4 !important;
}
.tg-journal-feed-wrap.is-ratio-portrait .tg-journal-feed-thumb {
    height: 100% !important;
    object-fit: cover !important;
}

/* Natural with safe max-height */
.tg-journal-feed-wrap.is-ratio-natural .tg-journal-feed-thumb {
    max-height: 640px !important;
    object-fit: cover !important;
}

/* ── Card Info ── */
.tg-journal-feed-info {
    display: flex;
    flex-direction: column;
    padding-top: 18px;
    box-sizing: border-box;
}

/* ── Date ── */
.tg-journal-feed-date {
    font-family: 'brandon-grotesque', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: #444444 !important;
    margin: 0 0 10px 0 !important;
    display: block !important;
    line-height: 1.2 !important;
}

/* ── Title ── */
.tg-journal-feed-wrap .tg-journal-feed-title,
.elementor-widget-tg_journal_feed .tg-journal-feed-title,
.tg-journal-feed-card .tg-journal-feed-title,
.tg-journal-feed-title {
    font-family: 'beaufort-pro', sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 2.125rem !important; /* 34px */
    line-height: 2.375rem !important; /* 38px */
    color: rgb(0, 0, 0) !important;
    margin: 0 0 14px 0 !important;
    letter-spacing: -0.01em !important;
    transition: opacity 0.2s ease;
}

.tg-journal-feed-wrap .tg-journal-feed-title a,
.elementor-widget-tg_journal_feed .tg-journal-feed-title a,
.tg-journal-feed-card .tg-journal-feed-title a,
.tg-journal-feed-title a {
    font-family: 'beaufort-pro', sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 2.125rem !important; /* 34px */
    line-height: 2.375rem !important; /* 38px */
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
}

.tg-journal-feed-title a:hover {
    opacity: 0.75;
}

/* ── Excerpt / Body Text ── */
.tg-journal-feed-wrap .tg-journal-feed-excerpt,
.elementor-widget-tg_journal_feed .tg-journal-feed-excerpt,
.tg-journal-feed-card .tg-journal-feed-excerpt,
.tg-journal-feed-excerpt {
    font-family: var(--tg-font-body, 'brandon-grotesque', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
    font-size: var(--tg-p-size, 1.125rem) !important; /* 18px (global body size) */
    font-weight: var(--tg-p-font-weight, 400) !important;
    line-height: var(--tg-p-line-height, 1.3) !important; /* 130% */
    letter-spacing: var(--tg-p-letter-spacing, -0.023em) !important;
    color: var(--tg-p-color, #000000) !important;
    margin: 0 0 16px 0 !important;
}

.tg-journal-feed-excerpt p,
.tg-journal-feed-card .tg-journal-feed-excerpt p {
    margin: 0 0 8px 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    color: inherit !important;
}

.tg-journal-feed-excerpt p:last-child {
    margin-bottom: 0 !important;
}

/* ── Read More Link ── */
.tg-journal-feed-readmore {
    display: inline-block;
    align-self: flex-start;
    font-family: 'brandon-grotesque', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: #c9a96e !important;
    text-decoration: underline !important;
    text-decoration-color: #c9a96e !important;
    text-underline-offset: 4px !important;
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
    margin-top: 2px;
}

.tg-journal-feed-readmore:hover {
    color: #111111 !important;
    text-decoration-color: #111111 !important;
}

/* ── Pagination ── */
.tg-journal-feed-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid #eeeeee;
}

.tg-journal-feed-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #111111;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.tg-journal-feed-pagination .page-numbers:hover {
    border-color: #111111;
}

.tg-journal-feed-pagination .page-numbers.current {
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
}

.tg-journal-feed-pagination .prev,
.tg-journal-feed-pagination .next {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .tg-journal-feed-wrap {
        padding: 0 20px 60px;
    }
    .tg-journal-feed-columns {
        flex-direction: column;
        gap: 44px;
    }
    .tg-journal-feed-col {
        gap: 44px;
    }
    .tg-journal-feed-title {
        font-size: clamp(1.375rem, 5vw, 2.125rem) !important;
        line-height: clamp(1.625rem, 6vw, 2.375rem) !important;
        margin-bottom: 10px !important;
    }

    /* Force ALL cards (including portrait ones) to clean landscape 16:10 ratio on mobile */
    .tg-journal-feed-wrap .tg-journal-feed-thumb-link,
    .tg-journal-feed-wrap.is-ratio-editorial .tg-journal-col-left .tg-journal-feed-thumb-link,
    .tg-journal-feed-wrap.is-ratio-editorial .tg-journal-col-right .tg-journal-feed-thumb-link,
    .tg-journal-feed-wrap.is-ratio-portrait .tg-journal-feed-thumb-link,
    .tg-journal-feed-wrap.is-ratio-landscape .tg-journal-feed-thumb-link,
    .tg-journal-feed-wrap.is-ratio-natural .tg-journal-feed-thumb-link {
        aspect-ratio: 16 / 10 !important;
        max-height: 280px !important;
    }

    .tg-journal-feed-wrap .tg-journal-feed-thumb,
    .tg-journal-feed-wrap.is-ratio-editorial .tg-journal-col-left .tg-journal-feed-thumb,
    .tg-journal-feed-wrap.is-ratio-editorial .tg-journal-col-right .tg-journal-feed-thumb,
    .tg-journal-feed-wrap.is-ratio-portrait .tg-journal-feed-thumb,
    .tg-journal-feed-wrap.is-ratio-landscape .tg-journal-feed-thumb,
    .tg-journal-feed-wrap.is-ratio-natural .tg-journal-feed-thumb {
        width: 100% !important;
        height: 100% !important;
        max-height: 280px !important;
        object-fit: cover !important;
    }
}
