/*--------------------------------------------------------------
KRS POSTS
--------------------------------------------------------------*/

.DarkRow h2{
    color: var(--dark-ink);    
}

.LightRow h2{
    color: var(--ink);    
}

.KrsCards {
    width: 100%;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

.KrsCards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}






/*--------------------------------------------------------------
FEATURED POST
--------------------------------------------------------------*/

.KrsCardsFeatured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    text-decoration: none;
    outline: 1px solid transparent;
    outline-offset: -1px;
    transition:
        transform 320ms ease,
        box-shadow 320ms ease,
        outline-color 320ms ease;
}

.KrsCardsFeatured__media {
    display: block;
    min-height: 320px;
    overflow: hidden;
}

.KrsCardsFeatured__image,
.KrsCardsFeatured__media .KrsPostCard__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.KrsCardsFeatured__image {
    object-fit: cover;
    transition: transform 500ms ease;
}

.KrsCardsFeatured__media .KrsPostCard__placeholder {
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    background: color-mix(in srgb, var(--ink) 4%, transparent);
    color: var(--muted);
}

.DarkRow .KrsCardsFeatured__content, .DarkRow .KrsPostCard__smallContent{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: clamp(26px, 3vw, 44px);
    background:var(--dark-ink);    
}


.LightRow .KrsCardsFeatured__content, .LightRow .KrsPostCard__smallContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: clamp(26px, 3vw, 44px);
    background:var(--dark-ink);
}

.KrsCardsFeatured__meta {
    font-family: "IBM", monospace;
    font-size: .75rem!important;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.DarkRow .KrsCardsFeatured__title {
    display: block;
    overflow: hidden;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 400;
    line-height: 1.12;
    color: var(--dark-ink);
    text-wrap: pretty;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.LightRow .KrsCardsFeatured__title {
    display: block;
    overflow: hidden;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 400;
    line-height: 1.12;
    color: var(--ink);
    text-wrap: pretty;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}






.KrsCardsFeatured__subtitle {
    display: block;
    max-width: 60ch;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.KrsCardsFeatured__FakeLink {
    font-family:"IBM", monospace;
    font-size: .75rem!important;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.KrsCardsFeatured:hover,
.KrsCardsFeatured:focus-visible {
    transform: translateY(-2px);
    outline-color: var(--accent);
}

.KrsCardsFeatured:hover .KrsCardsFeatured__image,
.KrsCardsFeatured:focus-visible .KrsCardsFeatured__image {
    transform: scale(1.03);
}

.KrsCardsFeatured:focus-visible {
    outline-width: 2px;
    outline-offset: 4px;
}


/*--------------------------------------------------------------
SMALL-IMAGE POST CARD
--------------------------------------------------------------*/

.KrsPostCard--small {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    text-decoration: none;
    outline: 1px solid transparent;
    outline-offset: -1px;
    transition:
        transform 320ms ease,
        box-shadow 320ms ease,
        outline-color 320ms ease;
}

.KrsPostCard__smallMedia {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.KrsPostCard__smallImage,
.KrsPostCard__smallMedia .KrsPostCard__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.KrsPostCard__smallImage {
    object-fit: cover;
    transition: transform 500ms ease;
}

.KrsPostCard__smallMedia .KrsPostCard__placeholder {
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    background: color-mix(in srgb, var(--ink) 4%, transparent);
    color: var(--muted);
}

.KrsPostCard__smallContent {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 26px;
}

.KrsPostCard__smallMeta {
    font-family:"IBM", monospace;
    font-size: .75rem!important;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.KrsPostCard__smallTitle {
    display: block;
    overflow: hidden;
    font-family: "Newsreader", Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--ink);
    text-wrap: pretty;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.KrsPostCard__smallFakeLink {
    padding-top: 6px;
    margin-top: auto;
    font-family:"IBM", monospace;
    font-size: .75rem!important;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.KrsPostCard--small:hover,
.KrsPostCard--small:focus-visible {
    transform: translateY(-2px);
    outline-color: var(--accent);
}

.KrsPostCard--small:hover .KrsPostCard__smallImage,
.KrsPostCard--small:focus-visible .KrsPostCard__smallImage {
    transform: scale(1.03);
}

.KrsPostCard--small:focus-visible {
    outline-width: 2px;
    outline-offset: 4px;
}


/*--------------------------------------------------------------
FULL-IMAGE POST CARD
--------------------------------------------------------------*/

.KrsPostCard--full {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.2rem;
    min-width: 0;
    max-height: 75vh;
    padding: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
    aspect-ratio: 4 / 4.5;
    border: 1px solid var(--dk-line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--ink) 4%, transparent);
    color: var(--dark-ink);
    text-decoration: none;
    isolation: isolate;
}

/* pic-style="16x9" */
.KrsPostCard--full.KrsPostCard--16x9 {
    aspect-ratio: 16 / 9;
    max-height: none;
}


.KrsPostCard__image,
.KrsPostCard--full > .KrsPostCard__placeholder {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
}

.KrsPostCard__image {
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 600ms ease;
}

.KrsPostCard--full > .KrsPostCard__placeholder {
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    background: color-mix(in srgb, var(--ink) 4%, transparent);
    font-family: "IBM", monospace;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    color: var(--muted);
}

.KrsPostCard__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.88), rgba(0,0,0,.25));
    transition: opacity 300ms ease;
}

.KrsPostCard__meta,
.KrsPostCard__title,
.KrsPostCard__FakeLink {
    position: relative;
    z-index: 2;
}

.KrsPostCard__meta {
    margin-bottom: 1vh;
    font-family: "IBM", monospace;
    font-size: .75rem!important;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent) !important;
}

.KrsPostCard__title {
    display: block;
    min-height: 2.4em;
    overflow: hidden;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--dark-ink);
    text-wrap: pretty;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.KrsPostCard__FakeLink {
    margin-bottom: 1vh;
    font-family: "IBM", monospace;
    font-size: 0.75rem!important;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dk-muted);
}

.KrsPostCard--full:hover .KrsPostCard__image,
.KrsPostCard--full:focus-visible .KrsPostCard__image {
    transform: scale(1.04);
}

.KrsPostCard--full:hover .KrsPostCard__overlay,
.KrsPostCard--full:focus-visible .KrsPostCard__overlay {
    opacity: 0.88;
}

.KrsPostCard--full:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}


/*--------------------------------------------------------------
LOAD MORE
--------------------------------------------------------------*/

.KrsCards__loadMoreRow {
    display: flex;
    justify-content: center;
    padding-top: 32px;
}

.DarkRow button.KrsCards__loadMore,
.LightRow button.KrsCards__loadMore,
.PicRow button.KrsCards__loadMore{
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-weight: 400;
    padding: 1rem .57rem;
    font-size: .9375rem;
    border-radius: 999px;
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s;
    flex: 0 0 auto;
}

.DarkRow button.KrsCards__loadMore, .PicRow button.KrsCards__loadMore{
  color: var(--dark-ink);
  border: 1px solid var(--dk-line);
  background-color:var(--ink);
}

.LightRow button.KrsCards__loadMore {
  color: var(--ink);
  border: 1px solid var(--line);
  background-color:var(--dark-ink);  
}

.DarkRow button.KrsCards__loadMore:hover,
.LightRow button.KrsCards__loadMore:hover,
.PicRow button.KrsCards__loadMore:hover{
  color: var(--accent);
  cursor: pointer;
}


/*--------------------------------------------------------------
LARGE CARD GRID
--------------------------------------------------------------*/


/* large="2"
   2 columns + 16:9 cards
--------------------------------------------------------------*/

.KrsCards[data-large="2"] .KrsCards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.KrsCards[data-large="2"] .KrsPostCard--full {
    aspect-ratio: 16 / 9;
    max-height: none;
}


/* large="3"
   3 columns + existing card proportions
--------------------------------------------------------------*/

.KrsCards[data-large="3"] .KrsCards__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* large="4"
   4 columns + existing card proportions
--------------------------------------------------------------*/

.KrsCards[data-large="4"] .KrsCards__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* large="5" and higher
   6 columns + existing card proportions
--------------------------------------------------------------*/

.KrsCards[data-large]:not([data-large="2"]):not([data-large="3"]):not([data-large="4"]) .KrsCards__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/*--------------------------------------------------------------
MOBILE
--------------------------------------------------------------*/

@media (max-width: 600px) {

    .KrsCards[data-large] .KrsCards__grid {
        grid-template-columns: 1fr;
    }

}

/*--------------------------------------------------------------
TABLET
--------------------------------------------------------------*/

@media (max-width: 900px) {
    .KrsCards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .KrsCardsFeatured {
        grid-template-columns: 1fr;
    }

    .KrsCardsFeatured__media {
        min-height: 280px;
        aspect-ratio: 16 / 9;
    }
}


/*--------------------------------------------------------------
MOBILE
--------------------------------------------------------------*/

@media (max-width: 600px) {
    .KrsCards__grid {
        grid-template-columns: 1fr;
    }

    .KrsCardsFeatured__media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .KrsCardsFeatured__content {
        padding: 24px 20px 28px;
    }

    .KrsPostCard--full {
        padding: 20px;
        aspect-ratio: 4 / 5;
    }

    .KrsPostCard__title {
        font-size: 1.375rem;
    }

    .KrsCards__loadMoreRow {
        padding-top: 24px;
    }
}


/*--------------------------------------------------------------
REDUCED MOTION
--------------------------------------------------------------*/

@media (prefers-reduced-motion: reduce) {
    .KrsCardsFeatured,
    .KrsCardsFeatured__image,
    .KrsPostCard--small,
    .KrsPostCard__smallImage,
    .KrsPostCard__image,
    .KrsPostCard__overlay {
        transition: none;
    }
}

/*--------------------------------------------------------------
RESPONSIVE CARD COUNT
--------------------------------------------------------------*/

.KrsPostCard.is-krs-card-hidden {
    display: none !important;
}