/* Start custom CSS for text-editor, class: .elementor-element-4ca6ec7 *//* BEAUTY FORUM – STYL MAGAZYNOWY */

.bf-magazine {
    container: bfmag / inline-size;
    box-sizing: border-box;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto !important;
    padding: 15px 20px 30px;
    background: #ffffff !important;
    color: #222222 !important;
}

/* GÓRNY PASEK */

.bf-magazine .bf-mag-meta {
    display: grid !important;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 10px !important;
    margin: 0 0 40px !important;
}

.bf-magazine .bf-mag-meta > .wp-block-column {
    min-width: 0;
    margin: 0 !important;
}

.bf-magazine .bf-mag-sponsored {
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    color: #222222 !important;
    margin: 0 !important;
}

.bf-magazine .bf-mag-brand {
    font-family: "Times New Roman", serif !important;
    font-size: 15px !important;
    color: #222222 !important;
    text-align: right !important;
    margin: 0 !important;
}

.bf-magazine .bf-mag-brand em {
    display: inline-block;
    background: #f58d4c !important;
    color: #ffffff !important;
    padding: 3px 25px 3px 10px;
}

/* TYTUŁ */

.bf-magazine .bf-mag-title {
    font-family: "Times New Roman", Times, serif !important;
    font-size: clamp(30px, 5.6vw, 62px) !important;
    font-size: clamp(30px, 5.8cqw, 62px) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.6px !important;
    text-transform: none !important;
    text-align: center !important;
    color: #222222 !important;
    margin: 30px auto 20px !important;
}

.bf-magazine .bf-mag-title em {
    font-family: inherit !important;
    font-weight: 400 !important;
}

/* WSTĘP */

.bf-magazine .bf-mag-lead {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.2px !important;
    text-align: center !important;
    color: #222222 !important;
    max-width: 95% !important;
    margin: 0 auto 25px !important;
}

/* ZDJĘCIE */

.bf-magazine .bf-mag-photo {
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 25px !important;
    padding: 0 !important;
}

.bf-magazine .bf-mag-photo img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: center;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* TEKST PRZEPŁYWAJĄCY MIĘDZY KOLUMNAMI */

.bf-magazine .bf-mag-flow {
    display: block !important;
    column-count: 1;
    column-gap: 25px;
    column-fill: balance;
    max-width: none !important;
    margin: 25px 0 0 !important;
    padding: 0 !important;
}

/* KOLUMNY ATTRE */

.bf-magazine .bf-mag-body,
.bf-magazine .bf-mag-opening {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 25px !important;
    align-items: start !important;
    margin: 25px 0 !important;
}

.bf-magazine .bf-mag-body > .wp-block-column,
.bf-magazine .bf-mag-opening > .wp-block-column {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.bf-magazine .bf-mag-opening .bf-mag-photo img {
    aspect-ratio: auto;
    object-fit: contain;
}

/* TYPOGRAFIA TEKSTU */

.bf-magazine .bf-mag-flow p,
.bf-magazine .bf-mag-body p,
.bf-magazine .bf-mag-opening p {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #222222 !important;
    text-align: left !important;
    text-align-last: left;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    overflow-wrap: break-word;
    word-break: normal;
    orphans: 2;
    widows: 2;
    margin: 0 0 15px !important;
}

/* DUŻY INICJAŁ */

.bf-magazine p.has-drop-cap::first-letter,
.bf-magazine p.bf-mag-initial::first-letter {
    float: left !important;
    font-family: "Times New Roman", serif !important;
    font-size: 4.8em !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 0.8 !important;
    color: #222222 !important;
    margin: 3px 7px 0 0 !important;
}

/* ŚRÓDTYTUŁY */

.bf-magazine .bf-mag-section {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    color: #222222 !important;
    text-align: left !important;
    margin: 20px 0 7px !important;
    break-after: avoid;
    break-after: avoid-column;
    break-inside: avoid;
}

/* LOGO I KONTAKT */

.bf-magazine .bf-mag-contact,
.bf-magazine .bf-mag-contact * {
    background-color: #ffffff !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

.bf-magazine .bf-mag-contact {
    display: block !important;
    break-inside: avoid;
    padding: 15px 0 0 !important;
    margin: 15px 0 0 !important;
    text-align: center !important;
}

.bf-magazine .bf-mag-logo {
    margin: 0 auto 15px !important;
}

.bf-magazine .bf-mag-logo img {
    display: block;
    width: 160px !important;
    max-width: 90% !important;
    height: auto !important;
    margin: 0 auto !important;
}

.bf-magazine .bf-mag-contact p {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
    color: #222222 !important;
    text-align: center !important;
    text-align-last: center !important;
    margin: 0 !important;
}

.bf-magazine .bf-mag-contact a {
    color: #222222 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

/* SZEROKI UKŁAD MAGAZYNOWY */

@container bfmag (min-width: 680px) {

    .bf-magazine .bf-mag-flow {
        column-count: 3;
    }

    .bf-magazine .bf-mag-body {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bf-magazine .bf-mag-opening {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }
}

/* JUSTOWANIE PRZY SZERSZYM UKŁADZIE */

@container bfmag (min-width: 900px) {

    .bf-magazine .bf-mag-flow p,
    .bf-magazine .bf-mag-body p,
    .bf-magazine .bf-mag-opening p {
        text-align: justify !important;
        text-justify: inter-word;
    }

    .bf-magazine .bf-mag-contact p {
        text-align: center !important;
    }
}

/* TELEFONY */

@container bfmag (max-width: 679px) {

    .bf-magazine .bf-mag-flow {
        column-count: 1;
    }

    .bf-magazine .bf-mag-meta {
        grid-template-columns: 1fr;
        margin-bottom: 20px !important;
    }

    .bf-magazine .bf-mag-brand {
        text-align: left !important;
    }

    .bf-magazine .bf-mag-photo img {
        aspect-ratio: auto;
    }

    .bf-magazine .bf-mag-flow p,
    .bf-magazine .bf-mag-body p,
    .bf-magazine .bf-mag-opening p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }

    .bf-magazine .bf-mag-contact p {
        text-align: center !important;
        font-size: 12px !important;
    }
}/* End custom CSS */