@charset "utf-8";
/* CSS Document */
.youtube-box {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 10px;
	border: 1px solid #d0ddec;
    overflow: hidden;
}

.youtube-box iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wbtn {
    font-size: 12px;
    padding: 8px 16px;
    color: #fff;
    background-color:#d9e7f6;
    border: 1px solid #d0ddec;
    text-decoration: none;
    transition: 0.3s ease;
}

.wbtn:hover {
    color: #fff;
    background-color:#afbac7;
}

.ytv {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 자동으로 열 조정 */
    gap: 20px; /* 카드 간 간격 */
    justify-content: center; /* 가운데 정렬 */
    width: 80%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.content-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.grid-item, .grid-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px;
}

.grid-item p {
    text-align: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.grid-item {
    position: relative;
    width: 250px; /* 반응형: 그리드 셀 크기 */
    height: 250px;
    overflow: hidden;
    border: 2px solid #d3dce2;
    border-radius: 10px;
    background-color: #c6d6e2; /* 유튜브 배경 색상 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hover-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(193, 217, 244, 0.5);
    color: white;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.youtube-box:hover .hover-title {
    opacity: 1;
}

.grid-info {
    border: 1px solid #d3dce2;
    border-radius: 10px;
    width: 250px;
    height: 120px; /* 컨텐츠 영역 고정 높이 */
    overflow: hidden;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    background: #f0f3f8;
}

.mymemo {
    white-space: nowrap;
	font-size: 12px;
	font-weight: 700;
	color: #708dad;
}

.content-preview {
    height: auto;
}


/* 좋아요 버튼 */
.like-section {
    margin-top: 10px;
    text-align: center;
}

.like-section .like-button {
    display: inline-flex;
    padding: 4px 8px;
    background-color: #a4c2dd;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    justify-content: center; /* 가로 중앙 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
}

.like-section .like-button:hover {
    background-color: #b3cdf0;
}

.edit-btn .delete-btn {
    font-size: 12px;
    text-decoration: none;
    color: #C7D1E1;
}

/* 페이지네이션 */
.pagination-wrapper {
    width: 100%;
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
    margin-top: 20px; /* 위쪽 여백 */
    font-family: roboto;
    color: #fff;
}

/* 페이지네이션 스타일 */
.pagination {
    display: flex;
    gap: 10px; /* 버튼 간격 */
    padding: 10px 20px;
    color: #fff;
    list-style: none; /* 번호 앞의 점 제거 */
}

/* 페이지 링크 스타일 */
.pagination a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: #fff;
    border: 1px solid #e9eef4;
    background-color: #cad9e9;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #a1c1e5;
    color: white;
}

/* 현재 페이지 스타일 */
.pagination .current {
    display: inline-block;
    color: white;
    font-weight: bold;
}

.pagination a, .pagination .current {
    font-size: 14px; /* 원하는 크기로 변경 */
}

/* 반응형 처리 */
@media screen and (max-width: 768px) {
	
	.ytv {
    margin-top: 90px;
}

	
	.youtube-box {
    width: 100%;
}
	
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(95%, 1fr)); /* 줄바꿈 처리 */
    }
    .grid-item, .grid-info {
        width: 100%; /* 가로 크기 조정 */
    }
}

@media screen and (max-width: 480px) {
		.ytv {
    margin-top: 90px;
}
		.youtube-box {
    width: 100%;
}

    .grid {
        grid-template-columns: 1fr; /* 세로로 정렬 */
    }
    .grid-item, .grid-info {
        width: 100%; /* 모바일 화면에 맞춤 */
    }
}