.gh-list + .gh-list {
    margin-top: clamp(10rem, 11.36vw + 3.45rem, 16rem);
}

.gh-list-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gh-list-header {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    justify-content: space-between;
}

.gh-list-title {
    font-size: calc(2.7rem * var(--font-multiplier, 1));
}

.is-font-serif:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-list-title {
    font-family: var(--gh-font-heading, var(--font-serif));
}

.gh-list-item-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gh-list-item-inner:hover {
    opacity: 1;
}

.gh-list-item-title {
    font-size: calc(2rem * var(--font-multiplier, 1));
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.005em;
    word-break: break-word;
}

.is-font-serif:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-list-item-title {
    font-family: var(--gh-font-heading, var(--font-serif));
}

.gh-list-item-excerpt {
    margin-top: 16px;
    margin-bottom: 12px;
    font-size: calc(1.5rem * var(--font-multiplier, 1));
    word-break: break-word;
}

.gh-list-item-primary-tag,
.gh-list-item-primary-author,
.gh-list-item-published-at,
.gh-list-item-reading-time {
    display: inline-block;
    font-size: calc(1.35rem * var(--font-multiplier, 1));
    line-height: 1.1;
}

.gh-list-item-primary-author,
.gh-list-item-published-at {
    font-weight: 500;
}

.gh-list-item-primary-author::before,
.gh-list-item-published-at::before,
.gh-list-item-reading-time::before {
    display: inline-block;
    margin-right: 0.35em;
}

.gh-list-item-primary-tag {
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 600;
}

.gh-list-item-primary-author::before {
    font-weight: 300;
    content: "by";
}

.gh-list-item-published-at::before {
    font-weight: 300;
    content: "on";
}

.gh-list-item-primary-author + .gh-list-item-reading-time::before,
.gh-list-item-published-at + .gh-list-item-reading-time::before {
    content: "•";
}

.gh-list-item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
}

.gh-list-item-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid layout */

.gh-list.grid .gh-list-feed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 64px 48px;
}

/* 2-column grid layout */

.gh-list.grid:not(.magazine)[data-column="2"] .gh-list-feed {
    grid-template-columns: repeat(2, 1fr);
}

.gh-list.grid:not(.magazine)[data-column="2"] .gh-list-item-title {
    font-size: 2.6rem;
}

/* 3-column grid layout */

.gh-list.grid:not(.magazine)[data-column="3"] .gh-list-feed {
    grid-template-columns: repeat(3, 1fr);
}

/* Magazine layout */

.gh-list.grid.magazine .gh-list-item:first-child {
    grid-column: 1 / -1;
}

.gh-list.grid.magazine .gh-list-item:first-child .gh-list-item-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.gh-list.grid.magazine .gh-list-item:first-child .gh-list-item-title {
    font-size: calc(clamp(3rem, 1.36vw + 2.45rem, 4.2rem) * var(--font-multiplier, 1));
    line-height: 1.1;
}

/* Simple layout */

.gh-list.simple .gh-list-feed {
    display: flex;
    flex-direction: column;
    gap: clamp(3.2rem, 3.64vw + 1.75rem, 6.4rem);
}

.gh-list.simple .gh-list-item-inner {
    flex-direction: row;
    gap: 48px;
    align-items: center;
}

.gh-list.simple .gh-list-item-inner > * {
    flex: 1;
}

.gh-list.simple .gh-list-item-title {
    font-size: calc(3.2rem * var(--font-multiplier, 1));
}

/* Media queries */

@media (max-width: 767px) {
    .gh-list.grid .gh-list-feed {
        display: flex;
        flex-direction: column;
    }

    .gh-list.grid.magazine .gh-list-item:first-child .gh-list-item-inner {
        display: flex;
    }

    .gh-list.simple .gh-list-item-inner {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .gh-list.grid .gh-list-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gh-list.grid .gh-list-feed {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .gh-list.grid .gh-list-feed {
        grid-template-columns: repeat(4, 1fr);
    }
}
