/**
 * community-before-after.css
 * 커뮤니티 게시판 통합 스타일
 */

/* ===================================================================
   커뮤니티 게시판 통합 스타일
   ================================================================ */

/* 기본 영역 스타일 */
.cont-wrap {
    margin-bottom: 0;
    padding-bottom: 110px;
    background: #f5f5f5;
}

/* 상단 비주얼 */
.is-sub-visual-area.info {
    background: center / cover no-repeat url(/assets/images/all/top_hero_001.png);
    height: 400px;
    display: flex;
    align-items: center;
}

.is-sub-visual-area .is-text p {
    font-size: 72px;
    font-weight: 700;
    color: #000;
    line-height: normal;
}

.is-sub-visual-area .is-text span {
    font-size: 32px;
    color: #000;
    display: inline-block;
    margin-top: 10px;
}

/* 타이틀 영역 */
.title-info-area {
    margin-top: -110px;
    text-align: center;
    padding: 60px 0;
}

.title-info-area h3 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.title-info-area p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* 갤러리/리뷰 영역 */
.gallery-area,
.review-area {
    padding: 0 0 80px 0;
    background: #f5f5f5;
}

.gallery-area .container,
.review-area .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 그리드 레이아웃 */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 -9px;
}

.gallery-grid li {
    width: calc(25% - 18px);
    margin: 0 9px 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-grid li:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.gallery-grid li a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 이미지 영역 */
.gallery-grid .is-img {
    position: relative;
    height: 295px;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-grid .is-img img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-grid li:hover .is-img img {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 비디오 재생 오버레이 */
.gallery-grid .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.gallery-grid li:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.gallery-grid .play-overlay i {
    font-size: 60px;
    color: #fff;
    transition: all 0.3s;
}

.gallery-grid li:hover .play-overlay i {
    font-size: 70px;
}

/* 텍스트 영역 */
.gallery-grid .is-text {
    padding: 20px;
    background: #fff;
}

.gallery-grid .is-text .title,
.gallery-grid .is-text p:first-child {
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.gallery-grid .is-text .name,
.gallery-grid .is-text p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.6;
}

.gallery-grid .is-text .name b,
.gallery-grid .is-text p b {
    color: #a0a3ff;
    font-weight: 600;
}

.gallery-grid .is-text .date {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* 빈 상태 */
.gallery-grid .empty-state {
    width: 100%;
    text-align: center;
    padding: 100px 0;
    color: #999;
    font-size: 16px;
}

/* 페이지네이션 */
.is-pagenation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    padding-bottom: 40px;
}

.is-pagenation .ui-pagenate {
    display: flex;
    align-items: center;
    gap: 5px;
}

.is-pagenation .ui-pagenate .dir {
    display: flex;
    align-items: center;
}

.is-pagenation .ui-pagenate a,
.is-pagenation .ui-pagenate strong {
    font-size: 17px;
    padding: 8px 12px;
    margin: 0;
    height: auto;
    line-height: inherit;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    background: none;
}

.is-pagenation .ui-pagenate strong {
    color: #a0a3ff;
    font-weight: 700;
}

.is-pagenation .ui-pagenate a {
    color: #111;
}

.is-pagenation .ui-pagenate a:hover {
    color: #a0a3ff;
}

.is-pagenation .ui-pagenate a.txt {
    font-size: 15px;
}

/* ===================================================================
   반응형 디자인
   ================================================================ */

/* 태블릿 (992px 이하) */
@media (max-width: 992px) {
    .is-sub-visual-area {
        height: 350px;
    }

    .is-sub-visual-area .is-text p {
        font-size: 56px;
    }

    .is-sub-visual-area .is-text span {
        font-size: 26px;
    }

    .title-info-area {
        margin-top: -90px;
        padding: 50px 20px;
    }

    .title-info-area h3 {
        font-size: 32px;
    }

    .title-info-area p {
        font-size: 17px;
    }

    .gallery-area,
    .review-area {
        padding: 0 0 60px 0;
    }

    .gallery-grid li {
        width: calc(33.333% - 18px);
    }

    .gallery-grid .is-img {
        height: 250px;
    }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    .is-sub-visual-area {
        height: 300px;
    }

    .is-sub-visual-area .is-text p {
        font-size: 40px;
    }

    .is-sub-visual-area .is-text span {
        font-size: 20px;
        margin-top: 8px;
    }

    .title-info-area {
        margin-top: -80px;
        padding: 40px 20px;
    }

    .title-info-area h3 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .title-info-area p {
        font-size: 16px;
    }

    .gallery-area,
    .review-area {
        padding: 0 0 50px 0;
    }

    .gallery-area .container,
    .review-area .container {
        padding: 0 15px;
    }

    .gallery-grid {
        margin: 0 -7.5px;
    }

    .gallery-grid li {
        width: calc(50% - 15px);
        margin: 0 7.5px 30px;
    }

    .gallery-grid .is-img {
        height: 200px;
    }

    .gallery-grid .is-text {
        padding: 15px;
    }

    .gallery-grid .is-text .title,
    .gallery-grid .is-text p:first-child {
        font-size: 15px;
    }

    .gallery-grid .is-text .name,
    .gallery-grid .is-text p {
        font-size: 13px;
    }

    .gallery-grid .play-overlay i {
        font-size: 50px;
    }

    .gallery-grid li:hover .play-overlay i {
        font-size: 55px;
    }

    .is-pagenation {
        margin-top: 30px;
        padding-bottom: 30px;
    }

    .is-pagenation .ui-pagenate a,
    .is-pagenation .ui-pagenate strong {
        font-size: 15px;
        padding: 6px 10px;
    }

    .is-pagenation .ui-pagenate a.txt {
        font-size: 13px;
    }
}

/* 스마트폰 (480px 이하) */
@media (max-width: 480px) {
    .is-sub-visual-area {
        height: 250px;
    }

    .is-sub-visual-area .is-text p {
        font-size: 32px;
    }

    .is-sub-visual-area .is-text span {
        font-size: 16px;
    }

    .title-info-area {
        margin-top: -70px;
        padding: 30px 15px;
    }

    .title-info-area h3 {
        font-size: 24px;
    }

    .title-info-area p {
        font-size: 15px;
    }

    .gallery-grid li {
        width: calc(50% - 15px);
    }

    .gallery-grid .is-img {
        height: 180px;
    }

    .gallery-grid .is-text {
        padding: 12px;
    }

    .gallery-grid .is-text .title,
    .gallery-grid .is-text p:first-child {
        font-size: 14px;
    }

    .gallery-grid .is-text .name,
    .gallery-grid .is-text p {
        font-size: 12px;
    }

    .gallery-grid .is-text .date {
        font-size: 12px;
    }
}
