/*
CTC Separate Stylesheet
Updated: 2026-08-17 18:35:06
*/

#content.forum,
#content.topic {
    padding-top: 2em;
}

h1 {
    font-size: clamp(1.5rem, 3vw + 1.7rem, 85px) !important;
}

h1,
h2 {
    /*Roboto Slab*/
    /* font-family: var(--e-global-typography-392b9e0-font-family), Sans-serif; */

    /*Roboto Serif*/
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

#content.forum .open-data {
    display: inline-block;
}

#content.forum .open-data::first-letter {
    margin-right: 5px;
}

#wp-bbp_topic_content-editor-container button,
#wp-bbp_topic_content-editor-container input[type="button"],
#wp-bbp_topic_content-editor-container input[type="submit"] {
    background-color: white !important;
}

#content.forum .frmx-subscribe-trigger-btn {
    background-color: var(--bbpc_brand_color);
    border: 1.5px solid var(--bbpc_brand_color);
    border-radius: 6px;
    color: #fff !important;
    display: inline-flex;
    font-size: 14px;
    gap: 8px;
    padding: 4px 12px;
}

#content.page-404 {
    text-align: center;
    padding: 4em 0;
}

#content.page-404 h1 {
    font-size: 14rem;
    font-family: var(--e-global-typography-392b9e0-font-family), Sans-serif;
}

.post-type-archive-historia #content {
    padding-top: 4em;
}

.post-type-archive-historia #content a {
    text-decoration: none;
}

.single-historia #content {
    padding-bottom: 4em;
}

.stories-loop-wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    grid-gap: 2.5em;
    margin: 4em 0 6em;
    justify-self: anchor-center;
}

@media (max-width: 50em) {
    .stories-loop-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 50em) {

    /* If there's more than X amount of posts */
    .stories-loop-wrapper:has(.story-post:nth-of-type(5)) .story-post:first-of-type {
        grid-column: 1 / 3;
    }

    .stories-loop-wrapper:has(.story-post:nth-of-type(5)) .story-post:first-of-type h2 {
        font-size: 3.5rem;
    }

    .stories-loop-wrapper:has(.story-post:nth-of-type(5)) .story-post:first-of-type p {
        font-size: 1.2rem;
    }
}

.story-post {
    background: white;
    text-decoration: none;
    color: #444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
    top: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.story-post:hover {
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    top: -5px;
}

.story-post .entry-title a {
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    text-decoration: none;
    padding: 1.5rem 0;
}

.story-post .entry-title a:hover {
    color: #fff;
}

.story-post .story-text {
    padding: 0 1.5rem 1.5rem;
}

.stories-loop-wrapper .story-thumbnail {
    max-height: 100%;
    height: 200px;
}

.stories-loop-wrapper .story-thumbnail img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.stories-read-more {
    margin-top: auto;
    text-decoration: underline;
    color: inherit;
}

.fill-image {
    align-items: stretch !important;
}

.fill-image>div {
    height: 100%;
}

.fill-image img {
    object-fit: cover;
    height: 100% !important;
    width: 100%;
}

/* Single story post  */

.stories-loop-wrapper.single-story {
    all: unset;
}

.stories-loop-wrapper.single-story article {
    box-shadow: none;
}

.stories-loop-wrapper.single-story article>a {
    all: unset;
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

@media (max-width: 50em) {
    .stories-loop-wrapper.single-story article>a {
        flex-direction: column-reverse;
        text-align: center;
    }

    .stories-loop-wrapper.single-story article .story-text {
        padding: 2rem 0;
    }
}

.stories-loop-wrapper.single-story article>a .snscraper-archive-card-image {
    max-width: 55%;
    flex: 0 1 55%;
    height: 100%;
}

.stories-loop-wrapper.single-story article>a .snscraper-archive-card-body {
    all: unset;
    flex: 0 1 45%;
    padding: 4rem;
}

.story-text :not(h2) a,
.story-text p {
    padding: 0;
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    text-transform: var(--e-global-typography-text-text-transform);
    font-style: var(--e-global-typography-text-font-style);
    text-decoration: var(--e-global-typography-text-text-decoration);
    line-height: var(--e-global-typography-text-line-height);
    letter-spacing: var(--e-global-typography-text-letter-spacing);
}

.stories-loop-wrapper.single-story h2 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    font-style: var(--e-global-typography-primary-font-style);
    text-decoration: var(--e-global-typography-primary-text-decoration);
    line-height: var(--e-global-typography-primary-line-height);
    letter-spacing: var(--e-global-typography-primary-letter-spacing);
    word-spacing: var(--e-global-typography-primary-word-spacing);
    color: var(--e-global-color-primary);
}

.stories-loop-wrapper.single-story h2 a,
.stories-loop-wrapper.single-story h2 a:hover {
    all: unset;
    color: inherit;
    cursor: pointer;
}


/* SN Archive */
.post-type-archive-sn_article .snscraper-archive-card-meta img {
    max-width: 20px;
    width: 100%;
}

/* News carousel */
.snscraper-archive-card-excerpt {
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    text-transform: var(--e-global-typography-text-text-transform);
    font-style: var(--e-global-typography-text-font-style);
    text-decoration: var(--e-global-typography-text-text-decoration);
    line-height: var(--e-global-typography-text-line-height);
    letter-spacing: var(--e-global-typography-text-letter-spacing);
}

/*Other*/
.wp-singular #content {
    padding-top: 4em;
}

.elementor-element:has(.full-image) {
    background-image: none !important;
}

a:has(.full-image) {
    height: 100% !important;
}

img.full-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}