/*style for all sites*/

.main-detail-page .quote { position: relative; padding-left: 40px; margin-bottom: 24px }

    .main-detail-page .quote::before { content: ''; display: block; position: absolute; top: 0; left: 0; width: 32px; height: 32px; background: url("../img-fix/icon/quote.svg") left top no-repeat; background-size: 100% }

    .main-detail-page .quote h4 { font-weight: bold; font-size: 20px; line-height: 1.6; font-style: italic; margin-bottom: 16px; position: relative }

    .main-detail-page .quote .author { font-size: 18px; margin-bottom: 8px; font-weight: bold; text-align: right }

    .main-detail-page .quote .title { opacity: 0.9; font-size: 16px; text-align: right; margin-bottom: 0 }

.main-detail-page .quote-1 { padding: 40px }

    .main-detail-page .quote-1::before { background-image: url("../img-fix/icon/quote-open.svg"); width: 64px; height: 64px }

    .main-detail-page .quote-1::after { content: ''; display: block; position: absolute; top: initial; left: initial; right: 0; bottom: 0; width: 64px; height: 64px; background: url("../img-fix/icon/quote-close.svg") left top no-repeat; background-size: 100% }

.main-detail-page .quote-2 { padding: 40px 20px 20px 48px; border-radius: 8px; border: 1px solid #ED1C24 }

    .main-detail-page .quote-2::before { top: -24px; left: -24px; width: 64px; height: 64px; background-color: #fff; background-image: url("../img-fix/icon/quote.svg"); background-size: 80% }

.main-detail-page .quote.align-right,
.main-detail-page .quote.align-left,
.main-detail-page .quote.pull-left,
.main-detail-page .quote.pull-right { width: calc(var(--box-size)*2); clear: both; margin-bottom: 20px }

.main-detail-page .quote.align-left,
.main-detail-page .quote.pull-left { --box-size: 120px; float: left; margin-right: 20px; margin-left: calc(var(--box-size)*-1) }

.main-detail-page .quote.align-right,
.main-detail-page .quote.pull-right { --box-size: 120px; float: right; margin-left: 20px; margin-right: calc(var(--box-size)*-1) }

.main-detail-page .quote.align-right { margin-right: 0 }

.main-detail-page .quote.align-left { margin-left: 0 }

@media (max-width: 991px) {
    .main-detail-page .quote.pull-left,
    .main-detail-page .quote.pull-right { margin-inline: 0 }
    .main-detail-page .quote.pull-left { margin-right: 10px }
}

@media (min-width: 1200px) {
    .main-detail-page .quote.align-right,
    .main-detail-page .quote.align-left,
    .main-detail-page .quote.pull-left,
    .main-detail-page .quote.pull-right { --box-size: 140px }
}

@media (min-width: 1400px) {
    .main-detail-page .quote.pull-left,
    .main-detail-page .quote.pull-right { --box-size: 160px }
}


/*end style for all sites*/

.quote blockquote { font-weight: bold; font-size: 20px; line-height: 1.6; font-style: italic; margin-bottom: 16px; position: relative; }

.box_content .detail__image { margin: 0; }

.box-settings { display: none; }

@media screen and (max-width: 1024px) {
    iframe { max-width: 100% !important; margin: 0 auto !important; }
}

.box_content figcaption { font-size: 18px; color: #333; text-align: center; margin-top: 8px; }

@media screen and (max-width: 768px) {
    .news-type6.ct-edtior-web { padding: 10px; }
    .news-type6 .detail__image { margin: 0; }
    .block-detail-magazine .flexbox-sharea-detail { padding: 10px; }
    .ct-edtior-web.news-type12 { padding: 0 10px; }
    /*magazine body*/
}

.embed-block.embed-youtube iframe { aspect-ratio: 16 / 9; width: 100%; height: 100%; }
.raw-html-block iframe[src*="youtube.com"], .raw-html-block iframe[src*="youtu.be"] { aspect-ratio: 16 / 9; width: 100%; height: auto; }

video { max-width: 100%; }

.photo-gallery { display: grid; grid-template-columns: auto auto; gap: 10px; margin-bottom: 10px; }

    .photo-gallery figure { margin: 0; }

    .photo-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

    .photo-gallery.img-count-3,
    .photo-gallery.img-count-7 { grid-template-columns: auto auto auto; }

        .photo-gallery.img-count-3 .gallery-item:first-child { grid-row: 1 / span 2; grid-column: 1 / span 2; }

    .photo-gallery.img-count-5 { display: grid; grid-template-columns: repeat(6, 1fr); /* 6 cột bằng nhau */ grid-gap: 10px; }


        /* Hàng trên: 2 ảnh */

        .photo-gallery.img-count-5 .gallery-item:nth-child(1) { grid-column: 1 / span 3; /* cột 1 -> 3 */ grid-row: 1; }

        .photo-gallery.img-count-5 .gallery-item:nth-child(2) { grid-column: 4 / span 3; /* cột 4 -> 6 */ grid-row: 1; }


        /* Hàng dưới: 3 ảnh */

        .photo-gallery.img-count-5 .gallery-item:nth-child(3) { grid-column: 1 / span 2; /* cột 1 -> 2 */ grid-row: 2; }

        .photo-gallery.img-count-5 .gallery-item:nth-child(4) { grid-column: 3 / span 2; /* cột 3 -> 4 */ grid-row: 2; }

        .photo-gallery.img-count-5 .gallery-item:nth-child(5) { grid-column: 5 / span 2; /* cột 5 -> 6 */ grid-row: 2; }

    .photo-gallery.img-count-6 { display: grid; grid-template-columns: repeat(6, 1fr); grid-gap: 5px; }

        .photo-gallery.img-count-6 .gallery-item:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }

        .photo-gallery.img-count-6 .gallery-item:nth-child(2) { grid-column: 3 / span 2; grid-row: 1; }

        .photo-gallery.img-count-6 .gallery-item:nth-child(3) { grid-column: 5 / span 2; grid-row: 1; }

        .photo-gallery.img-count-6 .gallery-item:nth-child(4) { grid-column: 1 / span 2; grid-row: 2; }

        .photo-gallery.img-count-6 .gallery-item:nth-child(5) { grid-column: 3 / span 2; grid-row: 2; }

        .photo-gallery.img-count-6 .gallery-item:nth-child(6) { grid-column: 5 / span 2; grid-row: 2; }

    .photo-gallery.img-count-7 { display: grid; grid-template-columns: repeat(6, 1fr); grid-gap: 5px; }


        /* Hàng 1 */

        .photo-gallery.img-count-7 .gallery-item:nth-child(1) { grid-column: 1 / span 3; grid-row: 1; }

        .photo-gallery.img-count-7 .gallery-item:nth-child(2) { grid-column: 4 / span 3; grid-row: 1; }


        /* Hàng 2 */

        .photo-gallery.img-count-7 .gallery-item:nth-child(3) { grid-column: 1 / span 2; grid-row: 2; }

        .photo-gallery.img-count-7 .gallery-item:nth-child(4) { grid-column: 3 / span 2; grid-row: 2; }

        .photo-gallery.img-count-7 .gallery-item:nth-child(5) { grid-column: 5 / span 2; grid-row: 2; }


        /* Hàng 3 */

        .photo-gallery.img-count-7 .gallery-item:nth-child(6) { grid-column: 1 / span 3; grid-row: 3; }

        .photo-gallery.img-count-7 .gallery-item:nth-child(7) { grid-column: 4 / span 3; grid-row: 3; }

    .photo-gallery img:hover { opacity: 0.9; cursor: pointer; }

.align-overBoth { margin: 0 -100px; margin-bottom: 10px; }

@media (max-width: 991px) {
    .align-overBoth { margin: 0 0 10px 0; }
}

.lg-thumb-align-middle .lg-thumb { display: flex; align-items: center; }

.photo-gallery figcaption { display: none; }

.lg-thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.lg-thumb-outer { display: flex; justify-content: center; }

.lg-thumb-item.active { border: 2px solid #ED1D26; }

.photo-gallery figcaption { display: none !important; }

.lg-thumb-item img { max-width: 100%; }

.ct-edtior-web p { color: inherit !important; }

.ct-edtior-web a { color: #2196F3; }

    .ct-edtior-web a:hover { color: #C4161C; text-decoration: underline; }

.main-detail-page .box_content { color: #000; }

.text-justify { text-align: justify; }

.link-tool { padding: 20px; background: #FDE8E9; text-align: center; border-radius: 5px; margin-bottom: 20px; font-size: 20px; color: red; }

.list-tag .tag { background: #fff; }

.featured-row_item__title p { color: #515151 !important; }

.list-tag .tag { background: #fff; }

.featured-row_item__title p { color: #515151 !important; }

.body-magazine .list-detail-revert_item,
.body-magazine .box-keyword { max-width: 700px; margin: 10px auto; margin-bottom: 24px; padding: 20px; background: #fff; }

.video figcaption { color: #555555; font-size: 18px; margin-top: 8px; }

video { display: block; margin: 0 auto; }

.detail-wrap #articleContent .embed-iframe { min-height: 700px; }

@media screen and (max-width: 768px) {
    .main-detail-page .quote.align-right,
    .main-detail-page .quote.pull-right,
    .main-detail-page .quote.align-left,
    .main-detail-page .quote.pull-left { float: none; --box-size: auto; }
    .main-detail-page .box_content.align-left,
    .main-detail-page .box_content.pull-left,
    .main-detail-page .box_content.align-right,
    .main-detail-page .box_content.pull-right { --box-size: auto; padding: 10px; margin: 0 0 15px 0; }
    .ct-edtior-web h3 { font-size: 20px; }
}


/*.editor-block { display: none; }
*/

.editor-block.done { display: block; }

body { overflow-x: hidden; }
.photo-gallery__caption { color: #555555; font-size: 18px; text-align: center; }

/*en*/
.detail__content.main-detail-page.ct-edtior-web h3, .detail__content.main-detail-page.ct-edtior-web h2, .detail__content.main-detail-page.ct-edtior-web h4 { font-weight: bold; }
.detail__content.main-detail-page.ct-edtior-web h3 { font-size: 20px; }
.detail__content.main-detail-page.ct-edtior-web h2 { font-size: 22px; }
.detail__content.main-detail-page.ct-edtior-web h4 { font-size: 18px; }
