/* ================================================
   TEAM GLAM — Dedicated Journal Page Template
   ================================================ */

.tg-journal-page {
    background: #ffffff;
    padding: 80px 80px 120px;
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Journal Header ── */
.tg-journal-page-header {
    text-align: center;
    margin-bottom: 72px;
}

.tg-journal-page-title {
    font-family: 'beaufort-pro', serif;
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 400;
    color: #000000;
    margin: 0 0 12px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.tg-journal-page-subtitle {
    font-family: 'brandon-grotesque', 'Work Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #888888;
    margin: 0;
}

/* ── Asymmetric Masonry Layout Grid ── */
.tg-journal-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.tg-journal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 48px;
    align-items: start;
}

/* Left Column: Stack of 2 posts */
.tg-journal-col-left {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* Right Column: Single tall post */
.tg-journal-col-right {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Post Article Card ── */
.tg-journal-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tg-journal-col-right .tg-journal-card {
    height: 100%;
}

/* ── Image Wrappers & Ratios ── */
.tg-journal-img-wrap {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f4f1ea;
    text-decoration: none;
}

.tg-journal-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.tg-journal-card:hover .tg-journal-img-wrap img {
    transform: scale(1.035);
}

.tg-journal-placeholder {
    position: absolute;
    inset: 0;
    background: #ebe7e0;
}

/* Specific aspect ratios */
.tg-journal-card--wide .tg-journal-img-wrap {
    padding-bottom: 58%; /* Wide landscape (top-left post) */
}

.tg-journal-card--square .tg-journal-img-wrap {
    padding-bottom: 78%; /* Standard medium (bottom-left post) */
}

.tg-journal-card--tall .tg-journal-img-wrap {
    padding-bottom: 125%; /* Tall portrait (right post) */
    flex-grow: 1;
}

/* ── Card Content Body ── */
.tg-journal-card-body {
    padding: 24px 0 0;
}

.tg-journal-date {
    display: block;
    font-family: 'brandon-grotesque', 'Work Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #888888;
    margin-bottom: 12px;
}

.tg-journal-title,
.tg-journal-card .tg-journal-title {
    font-family: 'beaufort-pro', sans-serif !important;
    font-size: 2.125rem !important; /* 34px */
    line-height: 2.375rem !important; /* 38px */
    font-weight: 400 !important;
    font-style: normal !important;
    color: rgb(0, 0, 0) !important;
    margin: 0 0 16px;
    letter-spacing: -0.01em !important;
}

.tg-journal-title a,
.tg-journal-card .tg-journal-title a {
    font-family: 'beaufort-pro', sans-serif !important;
    font-size: 2.125rem !important;
    line-height: 2.375rem !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
    transition: opacity 0.25s ease;
}

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

.tg-journal-excerpt {
    font-family: 'brandon-grotesque', 'Work Sans', sans-serif;
    font-size: var(--tg-body-font-size, 18px);
    line-height: 1.7;
    color: #444444;
    margin: 0 0 22px;
    font-weight: 300;
}

.tg-journal-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'brandon-grotesque', 'Work Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    color: #000000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    padding-bottom: 3px;
    transition: border-color 0.25s ease, opacity 0.25s ease;
    width: fit-content;
}

.tg-journal-read:hover {
    opacity: 0.55;
    border-color: #000000;
}

/* ── Pagination ── */
.tg-journal-pagination {
    margin-top: 96px;
    text-align: center;
}

.tg-journal-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.tg-journal-pagination .page-numbers li span.current {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.tg-journal-pagination .page-numbers li a:hover {
    border-color: #1a1a1a;
    color: #000000;
}

/* ── Empty / No Posts State ── */
.tg-journal-empty {
    text-align: center;
    padding: 100px 20px;
    font-family: 'brandon-grotesque', 'Work Sans', sans-serif;
    font-size: 15px;
    color: #777777;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 1200px) {
    .tg-journal-page {
        padding: 60px 40px 90px;
    }
    .tg-journal-row {
        gap: 48px 36px;
    }
}

@media (max-width: 991px) {
    .tg-journal-page {
        padding: 48px 24px 72px;
    }
    .tg-journal-row {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .tg-journal-col-left {
        gap: 48px;
    }
    .tg-journal-card--tall .tg-journal-img-wrap {
        padding-bottom: 75%; /* On single column tablet, convert tall to standard ratio */
    }
}

@media (max-width: 767px) {
    .tg-journal-page-header {
        margin-bottom: 48px;
    }
    .tg-journal-card-body {
        padding: 18px 0 0;
    }
    .tg-journal-excerpt {
        margin-bottom: 16px;
    }
}
