.show-desktop {
    display: flex;
}

.show-mobile {
    display: none;
}

.newest-teasers {
    padding: 16px 0 0 0;
    background-color: var(--laola1-card-background);
    border-radius: 4px;
    margin: 1.5rem 0;
    box-shadow: var(--laola1-box-shadow);
}

.newest-teasers .newest-teaser {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    text-decoration: none;
    padding: 12px 0 16px 0;
    color: var(--laola1-text-color);
    transition: transform .2s, background .2s;
}

.newest-teasers .newest-teaser:hover h3 {
    transform: scale(1.02);
}

.newest-teasers .time {
    font-size: 0.8rem;
    font-weight: normal;
    font-style: italic;
    color: var(--laola1-text-secondary);
    white-space: nowrap;
}

.newest-teasers .clock-icon {
    color: var(--laola1-highlight);
    font-size: 0.7rem;
}

.newest-teasers-container {
    display: flex;
    justify-content: space-between;
    padding: 0 10px 0 10px;
    background-color: var(--laola1-card-background);
    border-radius: 4px;
    overflow-x: auto;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10px,
        black 90%,
        transparent
    );
    scrollbar-color: rgba(17, 18, 21, 0.05);
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.newest-teasers-container::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.newest-teasers-container::-webkit-scrollbar-thumb {
    background: rgba(17, 18, 21, 0.1);
    border-radius: 4px;
}

.newest-teasers-container::-webkit-scrollbar-track {
    background: rgba(17, 18, 21, 0.05);
    border-radius: 4px;
}

.newest-teasers-container .newest-teaser {
    width: calc(25% - 15px);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding-right: 15px;
    border-right: 1px solid var(--laola1-border-color);
    box-sizing: border-box;
    text-decoration: none;
    word-wrap: break-word;
}

.newest-teasers-container .newest-teaser {
    padding-left: 15px;
}

.newest-teasers-container .newest-teaser:last-of-type {
    border-right: none;
}

.newest-teasers-container .title {
    color: var(--laola1-text-color);
    margin: 0;
    font-weight: bold;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.4;
    word-break: break-word;
    hyphens: auto;
}

@media screen and (max-width: 1300px) {
    .newest-teasers-container .title {
        line-height: 1.2;
        font-size: .9rem;
    }
}

@media screen and (max-width: 768px) {
    .newest-teasers {
        padding: 16px 0 6px 0;
        margin: 0 10px 1rem;
    }

    .show-desktop {
        display: none;
    }

    .show-mobile {
        display: block;
    }

    .newest-teasers .section-title {
        padding: 0 20px;
        margin: 0;
    }
}

@media screen and (max-width: 375px) {
    .show-desktop {
        display: none;
    }

    .show-mobile {
        display: block;
    }

    .newest-teasers .section-title h2 {
        font-size: 1rem;
    }

    .newest-teasers .all-news-link {
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

/* Slider specific styles */

.newest-teasers .slider-container {
    overflow: hidden;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.newest-teasers .slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, 100%);
    grid-auto-flow: column;
    scroll-snap-type: x mandatory;
}

.newest-teasers .slider-box {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    scroll-snap-align: start;
    width: calc(100vw - 20px);
}

.newest-teasers .slider-dots {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 10px 0;
}

.newest-teasers .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #909090;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newest-teasers .slider-dot.active {
    background-color: var(--laola1-highlight);
}

.newest-teasers-slide .newest-teaser {
    padding: 10px 20px;
    border-bottom: 1px solid var(--laola1-border-color);
    border-right: none;
    margin-bottom: 0;
}

.newest-teasers-slide .newest-teaser:last-of-type {
    border-right: none;
}

.newest-teasers-slide .newest-teaser .title {
    color: var(--laola1-text-color);
    margin: 0;
    font-weight: bold;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.375rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.newest-teasers-slide .newest-teaser:last-of-type {
    border-bottom: none;
    padding-bottom: 5px;
}

.newest-teasers-slide .section-title {
    padding: 0 20px;
    margin-bottom: 0;
}
