.lf-item h1 {
    font-size: 160%;
    font-weight: 600;
}
.lf-item h2 {
    font-size: 140%;
    font-weight: 600;
}
.lf-item h3 {
    font-size: 130%;
}

.lf-item {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: transparent;
    height: 100%;
    h3,h2,h1 {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* if content is below, apply color, radius and shadow to item */
.lf-item.lf-item-below {
    background-color: var(--lf-bg-col-light);
    border-radius: var(--lf-radius);
    box-shadow: var(--lf-shadow);
    border-style: solid;
    border-width: var(--lf-border);
    border-color: var(--lf-col-dark);
}

.lf-item:last-child {
    margin-right: 0;
}

.lf-item-lead-invers {
    background-color: var(--lf-col-dark);
}

.lf-item-figure {
    position: relative;
    margin:0;
}
.lf-item-image {
    object-fit: cover;
    aspect-ratio: var(--lf-aspect-ratio);
    width: 100%;
    mask-image: var(--lf-cut-bottom);
    mask-repeat: no-repeat;
    mask-size: cover;
    /*mask-size: 100% 100%;*/
    mask-position: bottom;
    border-top-left-radius: calc(var(--lf-radius) - var(--lf-border));
    border-top-right-radius: calc(var(--lf-radius) - var(--lf-border));
}
.lf-item-overlap {
    .lf-item-image {
        border-radius: var(--lf-radius);
        box-shadow: var(--lf-shadow);
        border-width: var(--lf-border);
        border-color: var(--lf-col-dark);
    }
}
.lf-item-copyright {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 8px;
    background: hsla(0, 0%, 100%, .7);
    border-top-right-radius: calc(var(--lf-radius) - var(--lf-border));
    .lf-item-copyright-text {
        display: none;
    }
    &:hover {
        background: hsla(0, 0%, 100%, 1);
        .lf-item-copyright-text {
            display: inline;
        }
    }
}

.lf-item-content {
    padding: 10px 12px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lf-item-grow {
    flex-grow: 1;
}
.lf-nr-heading {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    margin-bottom: 0.3rem;
}
.lf-nr {
    border: 2px solid var(--lf-col-dark);
    border-radius: 50%;
    color: var(--lf-col-dark);
    background-color: var(--lf-col-light);
    width: 2em;
    height: 2em;
    font-weight: 600;
    font-size: 120%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.6em;
    flex-shrink: 0;
}
.lf-item-lead-invers .lf-nr {
    border-color: var(--lf-col-light);
    color: var(--lf-col-light);
    background-color: var(--lf-col-dark);
}
.lf-icon {
    color: var(--lf-col-dark);
    margin-right: 0.6em;
    flex-shrink: 0;
    align-self: start;
    svg {
        width: 2.5em;
        height: 2.5em;
        stroke-width: 1.3;
    }
}
.lf-item-content {
    .lf-icon {
        svg {
            width: 2.9em;
            height: 2.9em;
        }
    }
}
.lf-item-lead-invers .lf-icon {
    color: var(--lf-col-light);
}
.lf-item-heading {
    color: var(--lf-col-dark);
    flex-grow: 1;
    a, a:hover, a:focus {
        color:inherit;
        text-decoration: none;
    }
}
.lf-item-lead-invers .lf-item-heading {
    color: var(--lf-col-light);
}
.lf-item-text {
    margin-top: 0.8em;
    margin-bottom: 0.8em;
}
.lf-item-link {
    margin: 0;
}
.lf-item-tags {
    margin: 0;
}
.lf-item-link .lf-item-link-style-button {
    background-color: var(--lf-col-dark);
    color: var(--lf-col-light-0);
    border-radius: var(--lf-radius);
    padding: 4px 12px;
    font-size: 90%;
    &:hover, &:focus, &:active {
        text-decoration: none;
        background-color: var(--lf-col-dark);
        background-color: color-mix(in srgb, var(--lf-col-dark) 80%, black 20%);
    }
}
.lf-item-link:has(.lf-item-link-style-link):before {
    content: " \e606";
    color: #737373;
    padding-right: 4px;
    font-size:70%;
    font-family: "il-icons";
}
.lf-item-tag {
    display: inline-block;
    background-color: var(--lf-col-dark);
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 80%;
    padding: 2px 10px;
    border-radius: 12px;
    margin-right: 0.5em;
}

.lf-item-overlap {
    .lf-item-content {
        background-color: var(--lf-bg-col-light);
        border-radius: var(--lf-radius);
        box-shadow: var(--lf-shadow);
        border-width: var(--lf-border);
        border-color: var(--lf-col-dark);
    }
}

.lf-item-overlap {
    .lf-item-content {
        position: relative;
        margin-top: -30px;
        min-height: 30px;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        box-shadow: var(--lf-shadow);
    }
}
.lf-item-container {
    width: 100%;
    container-type: inline-size;
    container-name: lf-item-container;
    font-size: 14px;
    margin-bottom: 22px;
}

.lf-item-link-status {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    margin-top: 1.2em;
    margin-bottom: 0.8em;
}

.lf-item-link-status img.icon.small {
    width: 24px;
    height: 24px;
}

.lf-item-link-status .lf-item-link {
    flex-grow: 1;
}

.lf-heading-status {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
}

.lf-heading-status > .lf-nr-heading {
    flex-grow: 1;
}

@container lf-item-container (max-width: 200px) {
    .lf-item {
        font-size: 80%;
    }
}
@container lf-item-container (min-width: 600px) {
    .lf-item-content {
        font-size: 120%;
    }
    .lf-item-overlap  .lf-item-content {
        margin-top: -60px;
        min-height: 60px;
        width: 70%;
    }
}
@container lf-item-container (min-width: 900px) {
    .lf-item-content {
        font-size: 140%;
        padding: 10px 20px;
    }
    .lf-item-overlap  .lf-item-content {
        margin-top: -90px;
        min-height: 90px;
        width: 65%;
    }
}
@container lf-item-container (min-width: 1200px) {
    .lf-item-content {
        font-size: 150%;
        padding: 15px 30px;
    }
    .lf-item-overlap  .lf-item-content {
        margin-top: -110px;
        min-height: 110px;
        width: 60%;
    }
}

/* properties */
.lf-properties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 1rem;
    margin: 0.8em 0;
    border-top: 1px dashed #e0e0e0;
    padding-top: 0.8em;
}

.lf-duration {
    font-size: 90%;
    color: var(--lf-col-dark-1);
    .glyphicon-time {
        color: var(--lf-col-dark-0);
    }
}

.lf-property {
    font-size: 90%;
    .lf-property-key {
        color: var(--lf-col-dark-0);
    }
    .lf-property-val {
        color: var(--lf-col-dark-1);
    }
}