/* 언론보도 > 네이버 클립(세로영상) / 블로그 / 유튜브(가로영상) 카드형 게시판 */
.press-grid {
    display: grid;
    gap: 40px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.press-grid.is-vertical { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.press-grid.is-video,
.press-grid.is-blog { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.press-card a {
    display: block;
    color: inherit;
}

.press-card .thumb {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #eef2f6;
    aspect-ratio: 16 / 9;
}

.press-grid.is-vertical .press-card .thumb { aspect-ratio: 9 / 16; }
.press-grid.is-blog .press-card .thumb { aspect-ratio: 4 / 3; }

.press-card .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.press-card .thumb.is-shorts { background: #111; }
.press-card .thumb.is-shorts img { object-fit: contain; }

.press-card a:hover .thumb img,
.press-card a:focus-visible .thumb img { transform: scale(1.04); }

.press-card .no-thumb {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #3f729c;
    font-weight: 700;
    text-align: center;
}

/* 세로 그리드(쇼츠 탭)에서는 세로 썸네일을 꽉 채움 */
.press-grid.is-vertical .press-card .thumb.is-shorts img { object-fit: cover; }

/* 유튜브: 섹션 제목 */
.press-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px;
}

.press-section-head h3 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.press-section-head h3 span {
    margin-left: 4px;
    font-size: 18px;
    font-weight: 500;
    color: #3f729c;
}

.press-section-head .more {
    font-size: 15px;
    color: #666;
}

.press-section-head .more:after { content: ' \203A'; }
.press-section-head .more.back:before { content: '\2039 '; }
.press-section-head .more.back:after { content: none; }
.press-section-head .more:hover { color: #3f729c; }

.press-section.press-shorts {
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid #eee;
}

/* 쇼츠 가로 스크롤 */
.press-strip-wrap { position: relative; }

.press-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 18px) / 5);
    gap: 18px;
    margin: 0;
    padding: 0 0 6px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.press-strip::-webkit-scrollbar { display: none; }
.press-strip .press-card { scroll-snap-align: start; }
.press-strip .press-card .thumb { aspect-ratio: 9 / 16; }
.press-strip .press-card .thumb img { object-fit: cover; }
.press-strip .press-card .tit { font-size: 15px; }

.strip-btn {
    position: absolute;
    top: 38%;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    color: #333;
    font-size: 26px;
    line-height: 40px;
    cursor: pointer;
}

.strip-btn.prev { left: -22px; }
.strip-btn.next { right: -22px; }
.strip-btn:hover { border-color: #3f729c; color: #3f729c; }
.strip-btn:disabled { display: none; }

/* 재생 아이콘 */
.press-card .play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    transition: background .2s;
}

.press-card .play:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -6px;
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #fff;
}

.press-card a:hover .play { background: #3f729c; }

.press-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #3f729c;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.press-card .info { padding: 14px 2px 0; }

.press-card .tit {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: #222;
    word-break: keep-all;
}

.press-card a:hover .tit { color: #3f729c; }

.press-card .date {
    margin-top: 8px;
    font-size: 14px;
    color: #888;
}

.press-card .ext {
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid #ddd;
    color: #3f729c;
}

.press-empty {
    padding: 80px 0;
    text-align: center;
    color: #888;
    list-style: none;
}

/* 상세: 유튜브 플레이어, 외부 링크 버튼 */
.press-player {
    position: relative;
    max-width: 960px;
    margin: 30px auto 0;
    aspect-ratio: 16 / 9;
    background: #000;
}

.press-player.is-shorts {
    max-width: 400px;
    aspect-ratio: 9 / 16;
}

.press-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.press-link {
    margin: 30px 0 10px;
    text-align: center;
}

.press-link a {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #3f729c;
    border-radius: 30px;
    color: #3f729c;
    font-weight: 600;
}

.press-link a:hover {
    background: #3f729c;
    color: #fff;
}

@media screen and (max-width: 1024px) {
    .press-strip { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; }
    .press-grid.is-vertical { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .press-grid.is-video,
    .press-grid.is-blog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 768px) {
    .press-grid { gap: 28px 14px; }
    .press-grid.is-vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .press-grid.is-video,
    .press-grid.is-blog { grid-template-columns: minmax(0, 1fr); }
    .press-card .tit { font-size: 15px; }
    .press-section-head h3 { font-size: 20px; }
    .press-section.press-shorts { margin-bottom: 40px; padding-bottom: 36px; }
    .press-strip { grid-auto-columns: 42%; gap: 12px; }
    .strip-btn { display: none; }
    .press-card .play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}

@media screen and (max-width: 400px) {
    #sub .sub-nav li a { padding: 10px 7px; font-size: 13px; }
}
