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

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

        &__center {
            justify-content: center;
            padding-top: 15px;
            padding-bottom: 15px;
        }

        @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;
    }
}

.template--terms {
    padding: 50px 80px;
    min-height: 60vh;

    @media (max-width: 920px) {
        padding: 50px 20px;
    }

    .page--header {
        padding: 0px 0 40px;
        text-align: center;
    }
}

.tagCard {
    display: grid;
    grid-template-columns: repeat(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) {
        grid-template-columns: repeat(4, 1fr);
    }

    @media screen and (max-width: 480px) {
        grid-template-columns: repeat(2, 1fr);
    }
}

.collectionCard {
    display: grid;
    grid-template-columns: repeat(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) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 480px) {
        grid-template-columns: repeat(1, 1fr);
    }
}

.template--linksWrap {
    padding: 50px;
}

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

    @media screen and (max-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
    }
}

.link-item {
    border-radius: 10px;
    padding: 15px;
    background-color: var(--farallon-background-gray);

    @include block-hover-gradient;

    .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;
        }
    }
}

.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;
}

.good--list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    padding: 30px 0 20px;

    @media (max-width: 768px) {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 15px;
        padding: 10px 0 30px;
    }
}

.good--item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--farallon-background-gray);
    border-radius: 10px;
    padding: 30px 0 0;
    flex-direction: column;

    .img-spacer {
        width: 50%;
        position: relative;
        transition: 0.5s;
    }

    &:hover {
        .img-spacer {
            transform: translate3d(0, -5px, 0);
        }
        .good--actions,
        .good--review {
            display: flex;
        }
    }
}

.good--name {
    font-size: 14px;
    padding-bottom: 10px;
    color: var(--farallon-text-color);
    margin-top: 10px;
    line-height: 1.4;
    width: 92%;

    .brand {
        color: var(--farallon-text-gray-lightest);
    }
}
