@charset "utf-8";

/* 갤러리 전체 영역 */
.juso-gallery {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    margin-right: -10px; /* 우측 여백 상쇄 */
}

/* 9열 그리드 설정 (100% / 9개 = 11.111%) */
.juso-gallery .list-row {
    float: left;
    width: 11.111%;
    padding-right: 10px; /* 아이템 간 간격 */
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* 개별 카드 디자인 */
.juso-gallery .list-item {
    border: 1px solid #e5e5e5;
    background: #fff;
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

/* 마우스 오버(Hover) 시 튀어나오는 효과 */
.juso-gallery .list-item:hover {
    border-color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

/* 이미지 영역 (비율 고정) */
.juso-gallery .img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 38%; /* 원본 사이트와 동일한 이미지 상하 비율 */
    overflow: hidden;
    background: #111; /* 로고 배경색을 검정으로 (흰색 원하면 #fff) */
}

.juso-gallery .img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 이미지가 잘리지 않고 꽉 차게 */
    padding: 5px;
    box-sizing: border-box;
}

.juso-gallery .no-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 11px;
}

/* 사이트 제목 */
.juso-gallery .site-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    padding: 8px 5px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 글자 길면 ... 처리 */
    border-bottom: 1px solid #f1f1f1;
}

/* 하단 정보 (작성자 & 댓글수) */
.juso-gallery .site-info {
    font-size: 11px;
    color: #888;
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
}

.juso-gallery .site-info .comment {
    color: #e53935;
    font-weight: bold;
}

/* ===============================
   모바일 & 태블릿 반응형 처리
   =============================== */
@media (max-width: 1200px) {
    .juso-gallery .list-row { width: 14.28%; } /* 태블릿 가로: 7칸 */
}
@media (max-width: 991px) {
    .juso-gallery .list-row { width: 20%; } /* 태블릿 세로: 5칸 */
}
@media (max-width: 768px) {
    .juso-gallery .list-row { width: 25%; } /* 모바일 가로: 4칸 */
    .juso-gallery .img-wrap { padding-bottom: 45%; }
}
@media (max-width: 480px) {
    .juso-gallery .list-row { width: 33.33%; } /* 아주 작은 폰: 3칸 */
}