/* 기사 상세 보기 본문 — CMS·프론트 공통 (개발용, common.css 퍼블리싱 파일과 분리) */
.view_title .breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.view_title .breadcrumb a:hover {
    text-decoration: underline;
}

.detail_layer .article iframe {
    margin: 0 0 1em;
}
.detail_layer .article .simplebox {
    margin: 1em 0;
}

.detail_layer .article .simplebox-content[data-type="video"] iframe {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.detail_layer .article .simplebox > h2.simplebox-title {
    display: block;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
    text-align: center;
    color: #41436A;
}

.detail_layer .article figure.photo-layout.image {
    display: block !important;
    max-width: 100% !important;
    padding:0 0 1em;
}

.detail_layer .article figure.photo-layout.image:after{
    content:'';
    display: block;
    clear: both;
}

.detail_layer .article figure.photo-layout.image.float-center {
    margin: 0 auto !important;
    text-align:center;
}

.detail_layer .article figure.photo-layout.image.float-left {
    margin: 0 auto 0 0 !important;
}

.detail_layer .article figure.photo-layout.image.float-right {
    margin: 0 0 0 auto !important;
}

.detail_layer .article figure.photo-layout.image > img {
    display: inline-block;
    max-width:80%;
    max-height:70svh;
    height: auto;
}

.detail_layer .article figure.photo-layout.image + p.spotv-image-spacer,
.detail_layer .article figure.photo-layout.image + p:has(> br):not(:has(> :not(br))) {
    margin: 0 0 1em;
    line-height: 1;
}

/* CKEditor 템플릿 (contents.css와 동일, 뷰 본문용) */
.detail_layer .article #tem-type-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.detail_layer .article #tem-type-1::before {
    content: "\201C";
    display: block;
    flex-shrink: 0;
    font-size: 50px;
    font-family: Georgia, serif;
    color: #222;
    line-height: 1;
    margin: 0;
}

.detail_layer .article #tem-type-1::after {
    content: "\201D";
    display: block;
    flex-shrink: 0;
    font-size: 50px;
    font-family: Georgia, serif;
    color: #222;
    line-height: 1;
    margin: 0;
}

.detail_layer .article #tem-type-1 p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.detail_layer .article #tem-type-2 {
    border-left: 4px solid #222;
    padding: 8px 0 8px 16px;
    margin: 0;
}

.detail_layer .article #tem-type-2 p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.detail_layer .article #tem-type-3 {
    margin: 20px 0;
    margin-inline: 5rem;
    text-align: center;
}

.detail_layer .article #tem-type-3 .wrapper {
    position: relative;
    background: #fff;
    border: 5px solid #e4e4e4;
    border-radius: 12px;
    padding: 16px 20px;
}

.detail_layer .article #tem-type-3 .wrapper::before {
    content: "";
    position: absolute;
    z-index: 2;
    width: 50px;
    height: 50px;
    top: calc(100% - 25px);
    left: 30%;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #e4e4e4 transparent transparent;
    box-sizing: border-box;
    transform: rotate(45deg);
}

.detail_layer .article #tem-type-3 .wrapper::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 30px;
    border-top: 5px solid #fff;
    left: calc(30% + 23px);
    top: 100%;
    box-sizing: border-box;
}

.detail_layer .article #tem-type-3 .wrapper p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.detail_layer .article #tem-type-3 .bubble-img {
    margin-top: 20px;
    text-align: left;
    padding-left: 20px;
}

.detail_layer .article #tem-type-3 .bubble-img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.detail_layer .article #tem-type-4 {
    margin: 20px 0;
    margin-inline: 5rem;
    text-align: center;
}

.detail_layer .article #tem-type-4 .wrapper::before {
    content: "\201C";
    display: block;
    font-size: 3rem;
    font-family: Georgia, serif;
    font-style: normal;
    font-weight: bold;
    line-height: 1;
    color: #222;
    margin-bottom: 8px;
}

.detail_layer .article #tem-type-4 .wrapper::after {
    content: "";
    display: table;
    clear: both;
}

.detail_layer .article #tem-type-4 .wrapper p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    border-bottom: 3px solid #222;
    display: inline;
    padding-bottom: 4px;
}

.detail_layer .article #tem-type-5 {
    margin-bottom: 5rem;
    text-align: center;
}

.detail_layer .article #tem-type-5 .wrapper {
    position: relative;
    display: inline-block;
    padding: 1rem 3.75rem 1rem 1.5rem;
    text-align: left;
    border: 5px solid #d5d5d5;
    box-sizing: border-box;
    font-size: 1.3rem;
    font-weight: 400 !important;
}

.detail_layer .article #tem-type-5 .wrapper::before {
    content: "";
    position: absolute;
    z-index: 1;
    right: -5px;
    bottom: -5px;
    border-width: 25px;
    border-style: solid;
    border-color: #bfbfbf #fff #fff #bfbfbf;
}

.detail_layer .article #tem-type-5 .wrapper::after {
    content: "";
    display: table;
    clear: both;
}

.detail_layer .article #tem-type-5 .wrapper p {
    margin: 0;
}

.detail_layer .article #tem-type-6 {
    margin-bottom: 5rem;
    text-align: center;
}

.detail_layer .article #tem-type-6 .wrapper {
    position: relative;
    display: inline-block;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 1.3rem;
    font-weight: 400 !important;
}

.detail_layer .article #tem-type-6 .wrapper::before,
.detail_layer .article #tem-type-6 .wrapper::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 35px;
    height: 35px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent;
}

.detail_layer .article #tem-type-6 .wrapper::before {
    left: 0;
    top: 0;
    border-left-color: #4a4a4a;
    border-top-color: #4a4a4a;
}

.detail_layer .article #tem-type-6 .wrapper::after {
    right: 0;
    bottom: 0;
    border-right-color: #4a4a4a;
    border-bottom-color: #4a4a4a;
}

.detail_layer .article #tem-type-6 .wrapper p {
    margin: 0;
}

.detail_layer .article #tem-type-7 {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 400 !important;
}

.detail_layer .article #tem-type-7::after {
    content: "";
    position: absolute;
    z-index: 2;
    width: 60px;
    left: 50%;
    bottom: 0;
    border-bottom: 2px solid #333;
    transform: translateX(-50%);
}

.detail_layer .article #tem-type-7 .icons {
    position: relative;
    display: block;
    width: 130px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
}

.detail_layer .article #tem-type-7 .icons::before {
    content: "\2726";
    display: inline-block;
    position: relative;
    z-index: 2;
    width: 34px;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    background: #fff;
    text-align: center;
}

.detail_layer .article #tem-type-7 .icons::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #333;
}

.detail_layer .article #tem-type-7 .header-titles {
    background: #222;
    color: #fff;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.detail_layer .article #tem-type-7 p {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.4;
    color: #222;
    margin: 0;
}

.detail_layer .article #tem-type-8 {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-bottom-color: rgba(0, 0, 0, .25);
}

.detail_layer .article #tem-type-8 p {
    margin: 0;
}

.detail_layer .article #tem-type-9 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 1px solid #333;
}

.detail_layer .article #tem-type-9 p {
    margin: 0;
}

.detail_layer .article #tem-type-10 {
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, .12);
}

.detail_layer .article #tem-type-10 .titles {
    padding: 1rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    background: rgba(0, 0, 0, .05);
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.detail_layer .article #tem-type-10 .contents {
    padding: 1rem;
}

.detail_layer .article #tem-type-10 .contents p {
    margin: 0;
}

/* 기사 상세 글자 크기 팝업 선택 상태 */
.mini_popup.font_size ul li.active {
    color: var(--point-Blue, #1B71EF);
}

.mini_popup.font_size ul li.active .btn,
.mini_popup.font_size ul li .btn.active {
    border-color: var(--point-Blue, #1B71EF);
    background-color: #ECF3FC;
}
