/* ===== Youth section pager ===== */
/* 한 페이지 = 큰 카드 1장 + 작은 카드 4장 = 5장. 양쪽 화살표로 이동.
   빈 슬롯은 회색 placeholder (제목/날짜 입력하세요). */

#youth-section .youth-pager-wrap {
    position: relative;
    padding: 0;
    overflow: visible;
}

/* === Prev / Next arrows === */
#youth-section .youth-pager-wrap .youth-prev,
#youth-section .youth-pager-wrap .youth-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 300;
    line-height: 1;
    color: #202124;
    padding: 0;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
    font-family: inherit;
    -webkit-appearance: none;
            appearance: none;
}
#youth-section .youth-pager-wrap .youth-prev:hover,
#youth-section .youth-pager-wrap .youth-next:hover {
    color: #1a73e8;
}
#youth-section .youth-pager-wrap .youth-prev:disabled,
#youth-section .youth-pager-wrap .youth-next:disabled {
    opacity: 0.3;
    cursor: default;
    color: #5f6368;
}
#youth-section .youth-pager-wrap .youth-prev {
    left: -52px;
}
#youth-section .youth-pager-wrap .youth-next {
    right: -52px;
}

#youth-section .youth-page-indicator {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #5f6368;
    letter-spacing: 0.04em;
}

/* Title / subtitle share the same left edge as the card block. */
@media (min-width: 821px) {
    #youth-section .youth-pager-wrap .ly_post {
        margin-left: 0;
        margin-right: 0;
    }
    #youth-section .youth-pager-wrap .ly_post > div:first-child {
        margin-left: 0;
    }
    #youth-section .youth-pager-wrap .ly_post > div:last-child {
        margin-right: 0;
    }
    #youth-section .youth-pager-wrap .post_list.main_today_list .m_d_flex {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 1023px) and (min-width: 821px) {
    #youth-section .youth-pager-wrap .ly_post > div:first-child {
        margin-left: 0;
    }
    #youth-section .youth-pager-wrap .ly_post > div:last-child {
        margin-right: 0;
    }
    #youth-section .youth-pager-wrap .post_list.main_today_list .m_d_flex {
        margin-left: 0;
        margin-right: 0;
    }
}

#youth-section .main_today_list .content .s_tit {
    font-size: 1.25rem;
    line-height: 1.45;
}

@media (max-width: 820px) {
    #youth-section .main_today_list .content .s_tit {
        font-size: 1.15rem;
        line-height: 1.35;
    }
    #youth-section .youth-pager-wrap .youth-prev,
    #youth-section .youth-pager-wrap .youth-next {
        font-size: 38px;
    }
    #youth-section .youth-pager-wrap .youth-prev {
        left: -40px;
    }
    #youth-section .youth-pager-wrap .youth-next {
        right: -40px;
    }
}

@media (max-width: 600px) {
    #youth-section .main_today_list .content .s_tit {
        font-size: 15px;
    }
}

/* === Placeholder visuals ===
 * The `.thum` element already has `position: relative; overflow: hidden; height: 0`
 * + `padding-top: 66%` (list) / `padding-top: 150%` (highlight) from /css/style.css,
 * which sets the aspect ratio. We only paint a gray background on top of that
 * existing box and overlay "이미지 준비중" text — NO border-radius, NO min-height.
 */

/* shared placeholder thumb background */
#youth-section .main_today_list li.is-placeholder .thum,
#youth-section .ly_post_sticky.is-placeholder .thum,
#youth-section .ly_post_sticky.is-empty .thum {
    background: linear-gradient(150deg, #ebedf0, #dee3ea);
    border-radius: 0;
}
#youth-section .main_today_list li.is-placeholder .thum::after,
#youth-section .ly_post_sticky.is-placeholder .thum::after,
#youth-section .ly_post_sticky.is-empty .thum::after {
    content: "이미지 준비중";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    font-size: 12px;
    letter-spacing: 0.04em;
    z-index: 2;
}

/* small card (list) placeholder click target */
#youth-section:not(.is-youth-admin-section) .main_today_list li.is-placeholder,
#youth-section:not(.is-youth-admin-section) .main_today_list li[data-placeholder="1"] {
    display: none !important;
}
#youth-section .main_today_list li.is-placeholder {
    pointer-events: none;
}
#youth-section.is-admin-mode .main_today_list li.is-placeholder {
    pointer-events: auto;
    cursor: pointer;
}
#youth-section .main_today_list li.is-placeholder > a {
    cursor: inherit;
    text-decoration: none;
}

/* placeholder text styling (muted) */
#youth-section .main_today_list li.is-placeholder .content .s_tit,
#youth-section .main_today_list li.is-placeholder .content .date,
#youth-section .main_today_list li.is-placeholder .content .category .tag {
    color: #9aa0a6;
}
#youth-section .main_today_list li.is-placeholder .content .category .lv {
    background-color: #e8eaed;
    color: #9aa0a6;
}

/* big card (highlight) placeholder click target */
#youth-section .ly_post_sticky.is-placeholder,
#youth-section .ly_post_sticky.is-empty {
    pointer-events: none;
}
#youth-section.is-admin-mode .ly_post_sticky.is-placeholder,
#youth-section.is-admin-mode .ly_post_sticky.is-empty {
    pointer-events: auto;
    cursor: pointer;
}
#youth-section .ly_post_sticky.is-placeholder > a,
#youth-section .ly_post_sticky.is-empty > a {
    cursor: inherit;
    text-decoration: none;
}

/* placeholder highlight text (muted) */
#youth-section .ly_post_sticky.is-placeholder .post_content h3,
#youth-section .ly_post_sticky.is-empty .post_content h3,
#youth-section .ly_post_sticky.is-placeholder .post_content p span,
#youth-section .ly_post_sticky.is-empty .post_content p span {
    color: #cfd8dc;
}

#youth-section .ly_post_sticky.is-hidden-slot {
    display: none !important;
}

#youth-section .ly_post > .post_list.main_today_list.youth-lead-col {
    display: none !important;
}

#youth-section .post_list.main_today_list.youth-card-probe {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    height: 0;
    overflow: hidden;
    width: calc(59% - 30px);
    margin: 0 15px;
}

@media (min-width: 821px) {
    #youth-section .ly_post.youth-has-lead-col {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    #youth-section .ly_post.youth-has-lead-col > .post_list.main_today_list:not(.youth-lead-col) {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    #youth-section .ly_post.youth-has-lead-col > .post_list.main_today_list:not(.youth-lead-col) > ul.m_d_flex {
        display: grid;
        grid-template-columns: repeat(3, var(--youth-card-width, 337px));
        gap: 56px 42px;
        margin: 0;
        padding: 0;
        width: fit-content;
        max-width: 100%;
        list-style: none;
    }
    #youth-section .ly_post.youth-has-lead-col > .post_list.main_today_list:not(.youth-lead-col) > ul.m_d_flex > li {
        width: var(--youth-card-width, 337px);
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    #youth-section .ly_post.youth-has-lead-col > .post_list.main_today_list:not(.youth-lead-col) > ul.m_d_flex > li[data-youth-highlight-duplicate] {
        pointer-events: none;
    }
}

@media (max-width: 1023px) and (min-width: 821px) {
    #youth-section .post_list.main_today_list.youth-card-probe {
        width: calc(59% - 14px);
        margin: 0 7px;
    }
    #youth-section .ly_post.youth-has-lead-col > .post_list.main_today_list:not(.youth-lead-col) > ul.m_d_flex {
        gap: 36px 28px;
    }
}
