/* 포토뉴스 스킨 1 - 갤러리형 */

.photo_skin_wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 0;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 그리드 레이아웃 */
.photo_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.photo_item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.photo_item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.photo_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 이미지 영역 */
.photo_image_wrap {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #000;
}

.photo_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo_item:hover .photo_image {
    transform: scale(1.05);
}

.photo_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.photo_item:hover .photo_overlay {
    opacity: 1;
}

.photo_badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 정보 영역 */
.photo_info {
    padding: 20px;
}

.photo_news_title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 44px;
}

.photo_link:hover .photo_news_title {
    color: #667eea;
}

.photo_summary {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 12px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.photo_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #95a5a6;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.photo_time,
.photo_views {
    font-weight: 500;
}

/* 반응형 */
@media (max-width: 1024px) {
    .photo_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .photo_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .photo_title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .photo_grid {
        grid-template-columns: 1fr;
    }
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
    padding: 20px 0;
}

.page_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    transition: all 0.2s;
}

.page_link:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #999;
}

.page_link.current {
    background: #5AB2FF;
    color: #fff;
    border-color: #5AB2FF;
    font-weight: 700;
}

.page_link.prev,
.page_link.next {
    font-weight: 700;
}

/* 페이지네이션 반응형 */
@media (max-width: 768px) {
    .pagination {
        gap: 3px;
    }
    
    .page_link {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

