/* 치질,항문질환의 모든것 > 뉴스&보도자료 / 네이버 클립(세로영상) / 블로그 / 유튜브(가로영상·쇼츠) */

/* 빈 목록 */
.press-empty {
    padding: 100px 0;
    border-top: 2px solid #333;
    border-bottom: 1px solid #f4f4f4;
    text-align: center;
    font-size: 17px;
    color: #888;
}

.table-wrap li.press-empty-row {
    padding: 60px 20px;
    cursor: default;
    text-align: center;
    font-size: 17px;
    color: #888;
}

/* 카드 그리드 */
.press-grid {
    display: grid;
    gap: 50px 24px;
    margin: 0;
    padding: 30px 0 0;
    border-top: 2px solid #333;
    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: 10px;
    background: #eef6f6;
    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-grid.is-vertical .press-card .thumb.is-shorts img { object-fit: cover; }

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

.press-card .no-thumb {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #39A9AD;
    font-weight: 700;
    text-align: center;
}

/* 재생 아이콘 */
.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: #39A9AD; }

.press-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    border: 1px solid #0fa29f;
    background: #fff;
    color: #0fa29f;
    font-size: 13px;
    font-weight: 500;
}

.press-card .info { padding: 16px 2px 0; text-align: left; }

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

.press-card a:hover .tit { color: #0fa29f; transition: .2s; }

.press-card .desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    word-break: keep-all;
}

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

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

/* 유튜브: 섹션 제목 */
.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: #39A9AD;
}

.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: #39A9AD; }

.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; }
.press-strip .press-card .desc { display: none; }

/* board.css 의 button 공통 스타일(크기·글자색)을 덮어씀 */
.press-strip-wrap .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 !important;
    font-size: 26px;
    line-height: 40px;
    cursor: pointer;
}

.press-strip-wrap .strip-btn.prev { left: -22px; }
.press-strip-wrap .strip-btn.next { right: -22px; }
.press-strip-wrap .strip-btn:hover { border-color: #39A9AD; color: #39A9AD !important; }
.press-strip-wrap .strip-btn:disabled { display: none; }

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

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

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

.press-link {
    padding: 30px 20px;
    border-bottom: 1px solid #ededed;
    text-align: center;
}

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

.press-link a:hover {
    background: #39A9AD;
    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: 30px 14px; padding-top: 20px; }
    .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: 16px; }
    .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; }
    .press-strip-wrap .strip-btn { display: none; }
    .press-card .play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
    .press-empty { padding: 70px 0; font-size: 15px; }
}
