/**
 * Sub0301 - 시공사례 페이지 스타일
 */

/* ==========================================================================
   1. Page Title Section
   ========================================================================== */
.page-title-section {
    padding: 90px 0 60px;
    background-color: #ffffff;
}

.page-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.4;
    color: #2d2d2d;
    margin: 0;
}

/* ==========================================================================
   2. Gallery Section
   ========================================================================== */
.gallery-section {
    padding: 0 0 120px;
    background-color: #ffffff;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
    margin-bottom: 80px;
}

/* Gallery Item */
.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #F6F8FC;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-caption {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #1B1B1B;
    margin: 0;
    word-break: keep-all;
}

/* ==========================================================================
   3. Pagination
   ========================================================================== */
/* Pagination 컴포넌트는 components.css에 정의되어 있습니다 */

/* ==========================================================================
   4. Contact Section
   ========================================================================== */
/* Contact Section 컴포넌트는 components.css에 정의되어 있습니다 */
/* 페이지별 배경 이미지만 오버라이드 */
.contact-bg {
    background-image: url('/assets/img/sub0301/contact-bg.jpg');
}

/* ==========================================================================
   5. Responsive
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .page-title {
        font-size: 36px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 16px;
        margin-bottom: 60px;
    }

    .gallery-caption {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .page-title-section {
        padding: 40px 0 20px;
    }

    .page-title {
        font-size: 28px;
    }

    .gallery-section {
        padding: 0 0 60px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .gallery-item {
        gap: 16px;
    }

    .gallery-caption {
        font-size: 15px;
    }
}
