@charset "utf-8";

/* 유튜브 최신글 스킨 (latest) */
.you_lt {
    position: relative;
    margin-top: 20px;
    margin-bottom: 10px;
    background: #fff;
    padding: 0 10px;
}

.you_title {
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    justify-content: space-between; /* 제목과 더보기 링크를 양쪽으로 배치 */
    font-size: 1.2em;
    background-color: #e6e3e3; 
    margin-bottom: 10px; /* 제목과 콘텐츠 사이의 간격 설정 */
}

.you_title img {
    margin-right: 5px; /* 이미지와 제목 사이에 간격 추가 */
    margin-left: 10px;
    width: 32px;   /* 원하는 너비 (픽셀 단위) */
    height: 32px;  /* 원하는 높이 (픽셀 단위) */
    }

.board-title {
    color: #000;
    text-decoration: none; /* 링크의 기본 밑줄 제거 */
    flex: 1; /* 제목이 가능한 최대 너비를 가지도록 설정 */
}

.lt_more {
    color: #253dbe;
    border-radius: 3px;
    text-align: center;
    display: inline-block;
    padding: 5px 15px; /* 적절한 패딩 추가 */
    font-size: 0.9rem; /* 폰트 크기 조정 */
    transition: color 0.3s, background-color 0.3s; /* 호버 효과에 부드러운 전환 추가 */
    text-decoration: none; /* 링크의 기본 밑줄 제거 */
}

.lt_more:hover {
    color: #777;
    background-color: #e0e0e0; /* 호버 시 배경 색상 변경 */
}

.you_lt ul:after {display:block;visibility:hidden;clear:both;content:""}
.you_lt ul {margin: 0 0px}

.you_lt li {float:left;width:25%;padding:0 5px} /* 한줄에 4개 배치 */

.you_lt li.gallery_li:nth-child(4n+1) {clear: both!important}
.you_lt li .lt_img {margin:5px 0;display:block}
.you_lt li .lt_img img, .you_lt li .lt_img video {width:100%;height:auto}
.you_lt li a:hover {color:#a22121}
.you_lt li .fa-heart {color:#ff0000}
.you_lt li .fa-lock {display:inline-block;line-height:14px;width:16px;color:#4f818c;background:#cbe3e8;text-align:center;border-radius:2px;font-size:12px;border:1px solid #cbe3e8;vertical-align:middle}
.you_lt li .new_icon {display:inline-block;width:16px;line-height:16px;font-size:0.833em;color:#23db79;background:#b9ffda;text-align:center;border-radius:2px;margin-left:2px;font-weight:bold;vertical-align:middle}
.you_lt li .hot_icon {display:inline-block;width:16px;line-height:16px;font-size:0.833em;color:#ff0000;background:#ffb9b9;text-align:center;border-radius:2px;vertical-align:middle}
.you_lt li .fa-caret-right {color:#bbb}
.you_lt li .fa-download {display:inline-block;width:16px;line-height:16px;font-size:0.833em;color:#daae37;background:#ffefb9;text-align:center;border-radius:2px;vertical-align:middle}
.you_lt li .fa-link {display:inline-block;width:16px;line-height:16px;font-size:0.833em;color:#b451fd;background:#edd3fd;text-align:center;border-radius:2px;vertical-align:middle}

.you_lt .profile_img img{border-radius:50%}

.lt_info {padding:10px 0}
.lt_info .lt_nick {}
.lt_info .lt_date {color:#888}

.you_lt .empty_li {line-height:145px ;color:#666;text-align:center;padding:0}
.you_lt .empty_li:before {background:none;padding:0}

.you_lt .lt_cmt {background:#e9eff5;color:#3a8afd;font-size:11px;height:16px;line-height:16px;padding:0 5px;border-radius:3px;vertical-align:middle}

/* 썸네일 이미지와 제목 래핑 */
.youtube-wrap {
    position: relative;
    display: block;
}

/* 썸네일 이미지 스타일 */
.youtube-wrap .lt_img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 제목 스타일 - 이미지 위에 표시 */
.youtube-title {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%); /* 중앙 정렬을 위한 변환 */
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-family: TheJamsil, Noto Sans;
    letter-spacing: 0em; /* 자간 조정 */
    font-size: 0.8rem;
    text-align: center;
    z-index: 10;
    box-sizing: border-box; /* 패딩을 포함한 전체 너비 계산 */
    bottom: 0px; /* 하단에 10px 여백 추가 */
    transform: translate(-50%, 0); /* 수직 중앙 정렬 해제 */
    white-space: nowrap; /* 텍스트를 한 줄로 표시 */
    overflow: hidden; /* 넘치는 텍스트를 숨김 */
    text-overflow: ellipsis; /* 넘치는 텍스트를 '...'으로 표시 */
}

@media (max-width: 767px) {
.youtube-title {
    max-width: 150px; /* 필요한 경우 너비를 조정 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

   padding: 2px 10px;
   bottom: 2px;
   font-size: .825rem;
}

.you_title {
    margin: 0px 10px 0px 10px;
    font-size: 1.1em;
    margin-bottom: 5px; /* 제목과 콘텐츠 사이의 간격 설정 */
}
.you_title img {
    margin-right: 2px; /* 이미지와 제목 사이에 간격 추가 */
    width: 24px;   /* 원하는 너비 (픽셀 단위) */
    height: 24px;  /* 원하는 높이 (픽셀 단위) */
    }
.you_lt {
padding: 0px 0px;
 margin-bottom: 10px;
}
 .you_lt ul {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
    }
    .you_lt li {
        width: 50%; /* 한줄에 2개 배치 */
        padding: 0 5px;
        box-sizing: border-box;
    }
}
