/* ── frothEditor rendered content (STYLING.md classes) ── */

.block {
    padding-top: .3rem;
    padding-bottom: .3rem;
    margin-bottom: 1rem;
}

@media only screen and (max-width: 767px) {
    .block {
        padding-top: .7rem;
        padding-bottom: .7rem;
    }
}

/* ── Text ── */
.__heading h1,
.__heading h2,
.__heading h3,
.__heading h4,
.__heading h5,
.__heading h6 {
    line-height: 1.2;
    margin: 0;
    color: #2c3e50;
}

.__paragraph p {
    line-height: 1.6;
    margin: 0;
}

.__paragraph a {
    color: var(--primary-color);
    text-decoration: underline;
}

.__code {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.__code code {
    font-family: var(--font-code);
    font-size: .9em;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ── Lists ── */
.__list ul {
    padding-left: 1.5rem;
    list-style: disc;
}

.__list li {
    margin-bottom: .4rem;
}

.__table table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

.__table td {
    padding: .5rem .75rem;
    border: 1px solid #ddd;
}

.__table tr:nth-child(even) {
    background: #f9f9f9;
}

.__keyvalue {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.__keyvalue td {
    padding: .5rem .75rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.__keyvalue td:first-child {
    width: 40%;
    color: #555;
}

.__detaillist {
    margin-bottom: 1.5rem;
}

.__detaillist_item {
    padding: .75rem 0;
    border-bottom: 1px solid #eee;
}

.__detaillist_item strong {
    display: block;
    margin-bottom: .25rem;
}

.__detaillist_item p {
    margin: 0;
    color: #555;
}

/* ── Media ── */
.__img {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .5rem;
    width: 100%;
}

.__img img {
    width: 100%;
    height: 220px;
    max-width: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

@media (max-width: 600px) {
    .__img {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .__img img {
        height: 160px;
    }
}

.__img-col {
    display: grid;
    gap: .5rem;
}

.__img-col.--col-1 { grid-template-columns: 1fr; }
.__img-col.--col-2 { grid-template-columns: repeat(2, 1fr); }
.__img-col.--col-3 { grid-template-columns: repeat(3, 1fr); }
.__img-col.--col-4 { grid-template-columns: repeat(4, 1fr); }

.__img-col img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.__media-text {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.__media-text.--rtl {
    flex-direction: row-reverse;
}

.__media-text img {
    width: 320px;
    height: auto;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
}

.__media-text_content {
    flex: 1;
    line-height: 1.6;
}

.__media-text_content h3 {
    margin: 0 0 .5rem;
}

.__media-text_content p {
    margin: 0;
}

.__cover {
    overflow: hidden;
    border-radius: 4px;
    margin-top: 1em;
    margin-bottom: 1em;
}

.__cover img {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.__cover_text {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.__audio audio,
.__video video {
    display: block;
    max-width: 100%;
    border-radius: 4px;
}

@media (max-width: 600px) {

    .__media-text,
    .__media-text.--rtl {
        flex-direction: column;
    }

    .__media-text img {
        width: 100%;
    }
}

/* ── Site-specific element blocks (legacy markup, still emitted) ── */
.__socialize {
    display: flex;
    flex-direction: column;
    gap: 20px;

    text-align: center;

    h6 {
        font-size: 1rem;
    }

    .__links {
        display: flex;
        align-content: center;
        justify-content: center;
        flex-direction: row;
        gap: 30px;

        svg {
            width: 30px;
            height: 30px;
        }
    }

}

.__contact {
    display: flex;

    flex-direction: column;

    .__item {
        display: flex;

        flex-direction: column;
        gap: 5px;

        border-radius: 4px;
        padding-bottom: 1rem;
        padding-top: 1rem;

        h4 {
            text-align: left;
            color: #999;
            font-size: 1rem;
            font-weight: normal;
            padding-bottom: .5rem;
        }

        strong {
            text-align: left;
            font-weight: normal;
            font-size: 1.25rem
        }
    }
}

.__embeddingTime {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 30px;

    .code {
        iframe {
            width: 100%;
        }
    }

    .times {

        border-radius: 4px;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;

        ul {
            padding: 0px;

            list-style: none;

            li {
                padding-bottom: 2rem;
            }
        }
    }

}

@media only screen and (max-width: 767px) {
    .__embeddingTime {
        display: flex;
        flex-direction: column;
    }

}

.__meta {
    img {
        object-fit: cover;
        width: 100%;
        height: 200px;
        background: #999;
        margin-bottom: 1rem;
    }
}
