@charset "utf-8";
/* =========================================================================
 * video.css — 영상 콘텐츠 스킨 (피그마 5312:1879 목록)
 *   유튜브 링크 → 자동 썸네일 / 클릭 시 팝업 재생 / 관리자는 뷰페이지
 *   페이지네이션은 common.css(.pg) 공통 사용
 * ========================================================================= */
#container_title { display: none; }

.video { position: relative; padding: 120px 0 160px; }
.video .vd_inner { width: 100%; max-width: 1700px; margin: 0 auto; }
.video :where(p, span, strong, a, li, h2) { word-break: keep-all; overflow-wrap: break-word; }

/* ---- 상단: Total / 버튼 / 검색 ---- */
.vd_top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.vd_total { display: flex; align-items: center; gap: 11px; }
.vd_total_en { font-family: 'SIMPLECANDY', 'Times New Roman', serif; font-size: 22px; line-height: 1; color: #2b2b2b; }
.vd_total_num { display: inline-flex; align-items: center; justify-content: center; padding: 5px 20px; background: #e6e6e6; font-family: 'UnShinmun', serif; font-size: 16px; color: #2b2b2b; line-height: 1; }
.vd_util { display: flex; align-items: flex-end; gap: 16px; }
.vd_toolbar { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 0; list-style: none; }
.vd_btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid #cfd6da; border-radius: 8px; background: #fff; color: #3a4650; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer; }
.vd_btn i { font-size: 14px; }
.vd_btn:hover { border-color: #7894a8; color: #20262b; text-decoration: none; }
.vd_btn_solid { background: #2f3a42; border-color: #2f3a42; color: #fff; }
.vd_btn_solid:hover { background: #20262b; border-color: #20262b; color: #fff; }
.vd_search { position: relative; width: 337px; max-width: 40vw; border-bottom: 1px solid #919191; }
.vd_search_input { width: 100%; height: 50px; padding: 0 44px 0 15px; border: 0; background: transparent; font-size: 16px; color: #333; }
.vd_search_input::placeholder { color: #8d8d8d; }
.vd_search_btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: transparent; color: #555; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* ---- 카드 그리드(3열) ---- */
.vd_grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 100px; row-gap: 48px; }
.vd_item { min-width: 0; }
.vd_card { display: flex; flex-direction: column; gap: 19px; cursor: pointer; }
.vd_card:hover { text-decoration: none; }
.vd_thumb { position: relative; width: 100%; aspect-ratio: 500 / 275; overflow: hidden; background: #1c1f22; }
.vd_thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vd_card:hover .vd_thumb img { transform: scale(1.04); }
.vd_info { display: flex; flex-direction: column; gap: 3px; }
.vd_tit { font-size: 20px; font-weight: 500; line-height: 1.5; color: #111; letter-spacing: -0.42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd_date { font-size: 17px; color: #666; line-height: 1.5; }
.vd_empty { padding: 80px 0; text-align: center; color: #777; font-size: 18px; }

/* ---- 재생 팝업 ---- */
.vd_modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.vd_modal[hidden] { display: none; }
.vd_dim { position: absolute; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vd_dialog { position: relative; width: 100%; max-width: 1000px; display: flex; flex-direction: column; align-items: center; }
.vd_player { width: 100%; }
.vd_player_frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000;  overflow: hidden; }
.vd_player_frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vd_close { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 50px; margin: 24px auto 0; padding: 8px 26px 8px 15px; border: 1px solid #fff; border-radius: 50px; background: transparent; color: #fff; font-size: 20px; letter-spacing: -0.2px; cursor: pointer; }
.vd_close svg { width: 24px; height: 24px; }
.vd_close:hover { background: rgba(255,255,255,.12); }
body.vd_lock { overflow: hidden; }

/* ---- 상세(뷰) ---- */
.vd_view { background: none; }
.vd_view_wrap { max-width: 1200px; margin: 0 auto; }
.vd_view_player { width: 100%; }
.vd_view_player .vd_player_frame { border-radius: 12px; }
.vd_player_empty img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vd_v_head { border-top: 2px solid #2f3a42; border-bottom: 1px solid #2f3a42; padding: 30px 4px; margin-top: 40px; }
.vd_v_tit { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.4; color: #111; letter-spacing: -0.42px; }
.vd_v_date { margin: 8px 0 0; font-size: 17px; color: #666; }
.vd_v_date span { font-weight: 500; }
.vd_v_body { border-bottom: 1px solid #2f3a42; padding: 40px 4px; }
.vd_v_con { font-size: 18px; font-weight: 300; line-height: 1.8; color: #111; letter-spacing: -0.42px; }
.vd_v_con img { max-width: 100%; height: auto; }
.vd_v_con a { color: #2f3a42; text-decoration: underline; }
.vd_v_link { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #2f3a42; padding: 16px 4px; color: #333; font-size: 17px; }
.vd_v_link .vd_link_ico { flex: 0 0 auto; display: block; }
.vd_v_link .lb { font-weight: 500; }
.vd_v_link a { color: #333; }

/* 이전/다음 · 목록 */
.vd_v_nav { display: flex; flex-direction: column; gap: 16px; max-width: 500px; margin: 40px auto 0; }
.vd_pn { display: flex; align-items: center; justify-content: center; gap: 24px; height: 60px; border-radius: 50px; background: rgba(193,204,210,.14); box-shadow: inset 0 3px 6px rgba(47, 58, 66, .03); color: #555; font-size: 18px; font-weight: 500; }
.vd_pn a { color: #555; }
.vd_pn a:hover { color: #2f3a42; text-decoration: none; }
.vd_pn .off { color: #b7c0c6; }
.vd_pn em { color: #c0ccd2; font-style: normal; }
.vd_list_btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 60px; border-radius: 50px; background: rgba(193,204,210,.14); box-shadow: inset 0 3px 6px rgba(47, 58, 66, .03); color: #2f3a42; font-size: 20px; font-weight: 500; }
.vd_list_btn:hover { background: rgba(193,204,210,.24); text-decoration: none; }
.vd_list_btn .ico { display: inline-flex; flex-direction: column; gap: 5px; width: 16px; }
.vd_list_btn .ico i { display: block; width: 100%; height: 2px; background: #2f3a42; }

.vd_v_btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* ---- 쓰기(관리자) — inner + 고정헤더 회피 여백 ---- */
#bo_w { width: 100%; max-width: 1700px; margin: 0 auto; padding: 140px 20px 100px; box-sizing: border-box; }
#bo_w .btn_confirm { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
#bo_w .btn_confirm .btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; min-width: 130px; padding: 0 28px; border-radius: 8px; font-size: 16px; font-weight: 500; line-height: 1; cursor: pointer; box-sizing: border-box; }
#bo_w .btn_submit { background: #2f3a42; border: 1px solid #2f3a42; color: #fff; }
#bo_w .btn_submit:hover { background: #20262b; border-color: #20262b; }
#bo_w .btn_cancel { background: #fff; border: 1px solid #cfd6da; color: #3a4650; text-decoration: none; }
#bo_w .btn_cancel:hover { border-color: #7894a8; color: #20262b; text-decoration: none; }

/* ============================ 반응형 ============================ */
@media (max-width: 1760px) {
    .video .vd_inner { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 1440px) {
    .vd_grid { column-gap: 60px; row-gap: 40px; }
}
@media (max-width: 1024px) {
    .video { padding: 80px 0 120px; }
    .video .vd_inner { padding-left: 20px; padding-right: 20px; }
    .vd_grid { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
}
@media (max-width: 768px) {
    .vd_top { flex-wrap: wrap; }
    .vd_util { width: 100%; flex-wrap: wrap; }
    .vd_search { width: 100%; max-width: none; }
    .vd_grid { grid-template-columns: repeat(2, 1fr); column-gap: 14px; row-gap: 26px; }
    .vd_tit { font-size: 16px; }
    .vd_date { font-size: 14px; }
    .vd_v_tit { font-size: 22px; }
    .vd_v_con { font-size: 16px; }
    .vd_close { font-size: 18px; }
}
@media (max-width: 486px) {
    .video { padding: 60px 0 90px; }
    .vd_total_en { font-size: 20px; }
    .vd_grid { grid-template-columns: 1fr; row-gap: 22px; }
    .vd_tit { font-size: 17px; }
    .vd_search_input { height: 44px; font-size: 14px; }
    .vd_v_tit { font-size: 20px; }
    .vd_pn { font-size: 16px; gap: 14px; height: 54px; }
    .vd_list_btn { font-size: 18px; height: 54px; }
    .vd_close { font-size: 16px; height: 44px; }
}

/* 게시판 콘텐츠 좌우 여백: 1760px 이하부터 20px (inner 최대너비 1700 + 여백 확보) */
@media (max-width: 1760px) {
    .inner { padding-left: 20px; padding-right: 20px; }
}
