/*
 * Editorial content of webcam pages and of country, region and town pages, inside div.wuc-content
 * (inc/wp_custom_content_whatsup.php). The values match the inline styles of the older content,
 * so old and new markup look the same.
 */

/* Green section headings: h2#section-list (live view) and h2#section-faq (FAQ) */
.wuc-content #section-list,
.wuc-content #section-faq {
    font-size: 1.389rem;
    font-weight: 700;
    color: var(--e-global-color-primary, #339999);
}

/* Older content wraps the heading text in small > small; keep its size the same */
.wuc-content #section-list small,
.wuc-content #section-faq small {
    font-size: inherit;
}

.wuc-content h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    margin: 24px 0 12px;
}

/* FAQ: div.wuc-faq > details > summary + div */
.wuc-content .wuc-faq {
    font-size: 14px;
    line-height: 1.45;
}

.wuc-content .wuc-faq details {
    margin-bottom: 7px;
}

.wuc-content .wuc-faq summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.wuc-content .wuc-faq details > div {
    padding-top: 5px;
}

/* Webcam pages: photo left, FAQ right; stacked on mobile */
.wuc-content .wuc-faq-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 22px;
    align-items: flex-start;
    width: 100%;
}

.wuc-content .wuc-faq-photo {
    flex: 0 0 230px;
    width: 230px;
    max-width: 230px;
}

.wuc-content .wuc-faq-photo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.wuc-content .wuc-faq-wrap > .wuc-faq {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

/* wpautop may leave empty paragraphs between the two columns */
.wuc-content .wuc-faq-wrap > p:empty {
    display: none;
}

@media screen and (max-width: 767px) {
    .wuc-content .wuc-faq-wrap {
        flex-direction: column;
        gap: 15px;
    }

    .wuc-content .wuc-faq-photo,
    .wuc-content .wuc-faq-wrap > .wuc-faq {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .wuc-content .wuc-faq-photo img {
        width: 100%;
    }
}
