/* 페이지네이션 감싸는 영역 */
.pagination-wrapper {
    width: 100%;
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
    margin-top: 20px; /* 위쪽 여백 */
    font-family: roboto;
    background-color: rgba(255, 255, 255, 0.5);
    color: #a1c1e5;
}

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

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

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

/* 현재 페이지 스타일 */
.pagination .current {
    display: inline-block;
    padding: 8px 16px;
    background-color: #bccfe2;
    color: white;
    border-radius: 4px;
    font-weight: bold;
}

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

/* 게시글 레이아웃 스타일 */
.post-layout {
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center; /* 가운데 정렬 */
	justify-content: center; /* 가운데 정렬 */
    gap: 10px; /* 요소 간 간격 */
    font-family: roboto;
    margin: 100px auto 0;
    padding: 20px;
    max-width: 800px;
    border: 1px solid #ddd;
    border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.5);
	margin-bottom: 20px;
}

.post-layout img {
    max-width: 100%; /* 부모 요소의 너비에 맞춤 */
 height: auto; /* 비율 유지 */
            display: block;
            margin: 0 auto;
	object-fit: cover;
}


.post-layout h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
	color: #9cb1cc;
    margin-bottom: 5px; /* 제목과 날짜 간격 줄임 */
}

.post-layout p {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-top: 0; 
}

.post-layout .buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}



.post-content {
    font-size: 16px;
    color: #333;
    text-align: center;
    line-height: 1.6;
    margin-top:-20px;
}

.main-content {display: flex;
	flex-direction: column;
	margin-top: 20px;
	
}

.post-layout .like-button {
    display: inline-block;
    padding: 8px 8px;
    background-color: #c1d9f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.post-layout .like-button:hover {
    background-color: #bccfe2;
}


.button {
    display: inline-block;
    padding: 7px 16px;
    background-color: #b3cdf0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
	text-decoration: none;
}


.post-layout .center-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.post-layout .center-container .buttonlist {
    padding: 8px 16px;
    background-color: #c1d9f4;
    color: white;
    text-decoration: none;
    border: 1px solid #bccfe2;
    transition: background-color 0.3s ease, color 0.3s ease;
	font-family: roboto;
}

.post-layout .center-container .buttonlist:hover {
    background-color: #bccfe2;
}


/* 첨부 파일 숨기기 */
.post-thumbnail {
    display: none; /* 첨부 파일 영역 숨김 */
}


/* 썸네일 그리드 컨테이너 */
.gallery .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 기본 4개씩 정렬 */
    column-gap: 20px; /* 가로 간격 */
    row-gap: 10px; /* 세로 간격 */
    padding: 20px;
	margin-top:100px;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .gallery .grid {
        grid-template-columns: repeat(2, 1fr); /* 중간 화면: 2개씩 정렬 */
        column-gap: 15px; /* 중간 화면 가로 간격 */
        row-gap: 10px; /* 중간 화면 세로 간격 */
    }
}

@media (max-width: 600px) {
    .gallery .grid {
        grid-template-columns: 1fr; /* 작은 화면: 1개씩 정렬 */
        column-gap: 10px; /* 작은 화면 가로 간격 */
        row-gap: 10px; /* 작은 화면 세로 간격 */
    }
}



/* 목록 시트 */

main {margin-top:120px;
align-items: center;
    justify-content: center;}


/* 썸네일 개별 항목 */
.grid-item {
    position: relative;
    overflow: hidden;
    width: 250px; /* 고정 너비 */
    height: 250px; /* 고정 높이 */
    margin: auto; /* 자동 정렬 */
    background-color: #f4f4f4; /* 배경색 (이미지가 없을 경우 대비) */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #ddd; /* 테두리 */
    border-radius: 8px; /* 둥근 테두리 */
    transition: transform 0.3s ease; /* 호버 시 애니메이션 */
}

.grid-item img {
    width: 250px; /* 고정 너비 */
    height: 250px; /* 고정 높이 */
    object-fit: cover; /* 이미지 비율 유지하며 영역 채우기 */
    object-position: center; /* 중심으로 정렬 */
    border-radius: 8px; /* 선택: 둥근 모서리 */
}

/* 호버 시 제목 표시 */
.hover-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(171, 192, 216, 0.7); /* 반투명 배경 */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: center; /* 제목 중앙 정렬 */
    padding: 10px;
    font-size: 16px;
}

.grid-item:hover .hover-title {
    opacity: 1; /* 호버 시 나타남 */
}

/* 호버 시 썸네일 애니메이션 */
.grid-item:hover {
    transform: scale(1.05); /* 약간 확대 */
}


/* 글쓰기 시트 */

form {
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 5px;
    font-weight: bold;
}

form input, form textarea, form button {
    margin-bottom: 15px;
    padding: 10px;
    font-size: 16px;
}

form button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
