* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: "Nanum Gothic", Arial, sans-serif;
    background-color: #f1f1f1;
}

.myphotos-desc {
    margin-bottom: 20px;
}

#header p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.column {
    float: left;
    width: 25%;
    padding: 10px;
    display: none;
}

.show {
    display: block;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.photo_content {
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    overflow: hidden;
}

.photo_content:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.enlarge {
    width: 100%;
    height: 180px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.enlarge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pic_title {
    font-size: 1rem;
    font-weight: bold;
    margin: 10px 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.pic_info {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 6px;
}

.pic_date,
.pic_read {
    font-size: 0.85rem;
    color: #777;
    white-space: nowrap;
    flex-shrink: 0;
}

.pic_place {
    color: #569cd6;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    min-width: 0;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 10px 5px;
    }
    .column {
        width: 50%;
        padding: 5px;
    }
    .enlarge {
        height: auto !important;
        aspect-ratio: 4 / 3;
    }
    .pic_place {
        display: none !important;
    }
    .pic_info {
        justify-content: space-between;
    }
}

/* ---------------------------------------------------------
    페이지네이션 스타일
    --------------------------------------------------------- */
.pagination-area {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    clear: both;
    font-size: 0; /* 인라인 블록 간격 제거 */
    color: #333;
}

/* 공통 버튼 스타일 */
.pagination-area a,
.pagination-area span {
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    margin: 0 3px;
}

/* 숫자 버튼 (기본) - 투명 배경, 숫자만 표시 */
.page-num {
    width: 36px;
    height: 36px;
    line-height: 34px; /* border 고려하여 높이 맞춤 */
    text-align: center;
    border-radius: 4px;
    border: 1px solid transparent; /* 공간 확보용 */
    transition: all 0.2s ease;
}

/* [Hover] 마우스 올렸을 때 - 검은색 배경 (이미지 2번 참조) */
.pagination-area a.page-num:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* [Active] 현재 페이지 - 흰색 그라데이션 박스 + 회색 테두리 (이미지 1번 참조) */
.pagination-area span.page-num.active {
    background: linear-gradient(to bottom, #ffffff 0%, #f1f1f1 100%);
    border: 1px solid #ccc;
    color: #333;
    cursor: default;
    font-weight: normal;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 이전/다음 텍스트 버튼 */
.page-nav-text {
    padding: 0 10px;
    margin: 0 10px;
    line-height: 36px;
    color: #555;
}

.pagination-area a.page-nav-text:hover {
    color: #000;
    text-decoration: underline;
}

/* ... (말줄임표) */
.page-dots {
    width: 30px;
    line-height: 36px;
    text-align: center;
    color: #999;
    cursor: default;
}