.fTerm {
    &--header {
        padding-top: 30px;
        padding-left: 120px;
        padding-right: 120px;
        display: flex;
        align-items: center;

        & + .site--main {
            padding-top: 30px;
        }

        @media screen and (max-width: 820px) {
            padding-left: 20px;
            padding-right: 20px;
            padding-top: 20px;
            font-size: 14px;
        }
    }

    &--cover {
        height: 72px;
        width: 72px;
        object-fit: cover;
        border-radius: 4px;
        margin-right: 15px;
        flex: 0 0 auto;

        @media screen and (max-width: 820px) {
            height: 50px;
            width: 50px;
            margin-right: 10px;
        }
    }

    &--content {
        flex: 1 1 auto;
    }

    &--title {
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
        margin-bottom: 10px;
        margin-top: 0;

        @media screen and (max-width: 820px) {
            font-size: 18px;
            margin-bottom: 5px;
        }
    }

    &--description {
        font-size: 14px;
        color: var(--farallon-text-gray);
        line-height: 1.5;
    }
}

.tagCard {
    display: grid;
    grid-template-columns: repeat(var(--farallon-tag-grid, 5), 1fr);
    grid-gap: 15px;
    padding-top: 20px;

    &--item {
        transition: 0.5s;
        padding: 8px 15px;
        border: 1px solid var(--farallon-border-color);
        border-radius: 5px;
        overflow: hidden;
        position: relative;
        color: var(--farallon-text-gray);

        &:hover {
            .collectionCard--title {
                color: var(--farallon-hover-color);
                text-decoration: underline;
            }

            color: var(--farallon-hover-color);
        }

        &::after {
            position: absolute;
            content: attr(data-count);
            opacity: 0.15;
            bottom: -8px;
            right: -2px;
            color: var(--farallon-text-gray-lightest);
            font-size: 40px;
            font-style: italic;
            font-weight: bold;
            line-height: 1;
        }
    }

    @media screen and (max-width: 920px) {
        --farallon-tag-grid: 4;
    }

    @media screen and (max-width: 480px) {
        --farallon-tag-grid: 2;
    }
}

.collectionCard {
    display: grid;
    grid-template-columns: repeat(var(--farallon-collection-grid, 3), 1fr);
    grid-gap: 12px;
    padding-top: 20px;
    overflow: hidden;
    position: relative;

    &--item {
        transition: 0.5s;
        padding: 8px;
        border: 1px solid var(--farallon-border-color);
        border-radius: 8px;
        position: relative;
        overflow: hidden;

        &:hover {
            .collectionCard--title {
                color: var(--farallon-hover-color);
                text-decoration: underline;
            }
        }

        &::after {
            position: absolute;
            content: attr(data-count);
            opacity: 0.15;
            bottom: -8px;
            right: -5px;
            color: var(--farallon-text-gray-lightest);
            font-size: 60px;
            font-style: italic;
            font-weight: bold;
            line-height: 1;
        }
    }

    &--image {
        height: 100px;
        width: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    &--meta {
        padding: 5px;
    }

    &--title {
        font-weight: 500;
        line-height: 1;
        margin-bottom: 8px;
    }

    &--description {
        font-size: 12px;
        color: var(--farallon-text-gray);
        line-height: 1.2;
        height: 2.4em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    &--count {
        font-size: 12px;
        color: var(--farallon-text-gray);
    }

    @media (max-width: 920px) {
        --farallon-collection-grid: 2;
    }

    @media (max-width: 480px) {
        --farallon-collection-grid: 1;
    }
}

.link-items {
    display: grid;
    grid-template-columns: repeat(var(--farallon-link-grid, 3), 1fr);
    grid-gap: 20px;
    list-style: none;
    padding-top: 15px;

    @media screen and (max-width: 768px) {
        --farallon-link-grid: 2;
    }
}

.link-item {
    border-radius: 10px;
    padding: 15px;

    .sitename {
        font-size: var(--farallon-text-size-smallest);
        color: var(--farallon-text-gray);
        display: flex;
        flex-direction: column;
        line-height: 1.5;

        strong {
            font-size: var(--farallon-text-size-noral);
            color: var(--farallon-text-color);
            margin-bottom: 10px;
        }
    }

    @include block-hover-gradient;
}

.link-title {
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 30px;
}

.link-description {
    font-size: 14px;
    color: var(--farallon-text-gray);
    text-align: center;
}
