h2 {
    font-size: 1.7rem;
    font-weight: 400;
}

a:hover {
    text-decoration: none;
}

.thoxt-rows-div {
    display: block;
    position: relative;
    margin: 10px auto 0 0;
}

.thoxt-row {
    display: block;
    position: relative;
    overflow: hidden;
    margin-right: 10px;
    padding-right: 20px;
    margin-bottom: 10px;
}

.thoxt-row-content {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-right: 10px;
}

.see-all-link {
    font-size: .9em;
    color: #ccc;
    cursor: pointer;
}

.slide-row-content {
    position: relative;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
}

.slide-row-content::-webkit-scrollbar {
    display: none;
}

.scroll-button-div {
    z-index: 4;
    opacity: 0;
    /* Hide by default */
    transition: opacity 0.3s;
    /* Smooth transition */
}

.thoxt-row:hover .scroll-button-div {
    opacity: 1;
    /* Show on hover */
}

.hide-scroll-buttons {
    display: none;
}

.scroll-next,
.scroll-prev {
    position: absolute;
    top: 42%;
    left: 0;
    right: auto;
    width: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: rgb(239, 239, 239);
    font-size: 1.8rem;
    padding: 6px 6px 9px 6px;
    cursor: pointer;
}

.scroll-next {
    right: 15px;
    left: auto;
}

.thoxt-row-article-outer {
    width: calc(25% - 20px);
    overflow: hidden;
}

.thoxt-row-article-outer {
    margin-bottom: 35px;
}


.thoxt-row-article{
    position: relative;
    transition: width .7s ease-in, height .7s ease-in, opacity .7s ease-in;
}

.row-cover-container,
.row-thot {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 15px;
    background-color: #333;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-row-content .row-cover-container {
    aspect-ratio: 3 / 2;
}

.cover-image {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center top;
    cursor: pointer;
    border-radius: 15px;
}

.row-cover-container:hover {
    transform: scale(1.06);
}

.new-article-badge,
.new-text {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 25px;
    opacity: .8;
    transition: opacity .3s ease;
}

.new-article-badge {
    top: 0;
    left: 0;
    background-color: #ff0;
    border-radius: 15px 0;
    padding: 0 5px;
}

.new-text {
    top: 0;
    left: 5px;
    color: #000;
    font-size: 0.85em;
    font-weight: bold;
}

.thoxt-row-video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    pointer-events: none;
    /* Ensures it doesn't interfere */
    transition: opacity .5s ease-in;
}

.thoxt-row-meta-desc {
    position: absolute;
    display: none;
    width: 101%;
    height: fit-content;
    align-items: flex-end;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    padding: 10px 10px 25px 10px;
    font-size: .9em;
    line-height: normal;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    z-index: 100;
    animation: sweepUp 1s ease-in-out;
}

@keyframes sweepUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

/* Show Video on Hover */
.row-cover-container:hover .thoxt-row-meta-desc {
    display: flex;
}

.article-meta {
    display: block;
    position: relative;
    margin-top: -5px;
    margin-bottom: 5px;
}

.news-row-content .article-meta {
    width: inherit;
    margin-left: 10px;
}

.article-title {
    margin: 10px 3px 5px 0;
    font-size: .95em;
}

.truncate-title,
.truncate-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    max-height: 4.4em;
}

.news-row-content .truncate-title {
    font-size: .9em;
    font-weight: 400;
    text-align: left;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    max-height: 6.6em;
}

.truncate-summary {
    line-clamp: 5;
    -webkit-line-clamp: 5;
}

.no-cover {
    position: relative;
    font-size: 1.7em;
    line-height: 1.55em;
    text-align: center;
    color: grey;
    text-shadow: 5px 5px 10px #000000;
    margin: auto;
    padding: 7px;
}

.author-date {
    display: flex;
    align-items: center;
    font-size: .9em;
    line-height: 1.4em;
    color: #8e8e8e;
}

.author-pp:hover {
    border: 2px solid rgb(229, 229, 40);
}

.meta-mini a:hover {
    color: #ccc;
}

.views-time {
    font-size: .9em;
}

.meta-mini {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 3px solid #ff0;
}


.article-progress-bar {
    display: block;
    position: relative;
    margin: auto;
    width: 85%;
    height: 5px;
    margin: 5px auto;
    background-color: rgb(45, 45, 45);
}

.article-progress-bar-fill {
    display: block;
    position: absolute;
    width: 14px;
    height: 100%;
    background-color: #ff0;
}

.row-thot {
    min-width: 35vh;
    padding: 10px;
}

.row-thot .article-title {
    padding: 10px 0;
    border-top: 1px solid #999;
}

.row-thot .truncate-title {
    max-height: 2.4em;
}

.row-thot-body {
    box-sizing: border-box;
    overflow: hidden;
    padding: 5px 0;
}

.truncate-thot {
    display: -webkit-box;
    padding-bottom: 10px;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    max-height: calc(3 * 1.5em);
}

.story-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    z-index: 9999;
    background: linear-gradient(90deg,
            rgba(255, 230, 0, 0.2) 0%,
            rgba(255, 230, 0, 1) 50%,
            rgba(255, 230, 0, 0.2) 100%);
    background-size: 200% 100%;
    animation: storyShimmer 4s infinite linear;
}

/* Animation */
@keyframes storyShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.news-row-content .thoxt-row-article-outer {
    margin: 10px 0;
}

.external-stories .thoxt-row-article-outer {
    border-radius: 10px;
    background-color: #222;
}

.external-stories .options-button, .external-stories .author-name, .external-stories .author-pic {
    display: none;
}

.title-image {
    display: flex;
    flex-direction: column;
    margin: 10px 0 0 0;
    gap: 10px;
}

.cluster-summary {
    font-size: 1em;
}

.cluster-item-source,
.cluster-rep-source svg,
.cluster-item-source svg {
    color: #888;
    fill: #888;
}

.thot-modal-outer .thoxt-logo-loader {
    margin: auto;
}

.story {
    position: relative;
    min-width: 70vw;
    padding: 0;
    overflow-x: hidden;
}

.story-topline {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px;
    color: white;
    background: linear-gradient(rgb(0, 0, 0, .5), rgb(0, 0, 0, 0));
}

.story-image-container {
    display: flex;
    justify-content: center;
}

.external-story-image {
    width: 500px;
    height: 27vh;
    object-fit: cover;
    border-radius: 15px;
}

.story .close-modal {
    position: relative;
    width: 30px;
    padding: 0;
}

.close-modal-svg {
    fill: white;
    border-radius: 50%;
}

.story-subdiv h3, .story-subdiv p, .story-subdiv small {
    margin: 10px;
}

.load-story-body {
    text-decoration: underline;
    text-decoration-color: #FF0;
    cursor: pointer;
}

.story .cluster-title {
    font-size: 1.2em;
}

.cluster-items-slider {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
    touch-action: pan-x;
    margin: 10px 0;
}

.story-source {
    display: flex;
    border-radius: 15px;
    background-color: #333;
    margin-bottom: 20px;
}

.story-source p, .story-source small {
    margin: 5px 10px;
}

.story-source-title {
    font-size: .9em;
    color: #ccc;
}

.story-cluster-image {
    width: 85px;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.story-source-details {
    display: flex;
    flex-direction: column;
    width: 200px;
    color: #888;
}

.prev,
.next {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px;
    margin-top: -22px;
    color: rgb(255, 255, 255, 0.7);
    font-weight: bold;
    line-height: 10px;
    font-size: 22px;
    text-shadow: 2px 2px 5px rgb(0, 0, 0, 0.4);
    border-radius: 0 3px 3px 0;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 30px;
    text-shadow: none;
}