@charset "UTF-8";

/* ==========================================================================
   화천(HWACHEON) Brand Archiving
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #ffffff !important;
    color: #111111;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.main-container {
    width: 100%;
    overflow-x: hidden;
    padding-top: 4.5rem;
    box-sizing: border-box;
}

.max-layout-width {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: #fafafa;
    padding: 7rem 0 9rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   1. 서브 히어로 배너
   ────────────────────────────────────────────────────────────────────────── */
.sub-hero-banner {
    width: 100%;
    background: #fafafa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 5rem 2rem 4.5rem;
    text-align: center;
    box-sizing: border-box;
}

.banner-inner {
    max-width: 800px;
    margin: 0 auto;
}

.sub-category-tag {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: #888888;
    display: block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.sub-page-title {
    font-family: 'Jost', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111111;
    margin: 0 0 1rem 0;
}

.sub-page-desc {
    font-size: 0.98rem;
    color: #666666;
    margin: 0;
    word-break: keep-all;
}

/* ──────────────────────────────────────────────────────────────────────────
   2. 와이어프레임 4-1: BRAND STORY 히어로 영역
   ────────────────────────────────────────────────────────────────────────── */
.story-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.story-hero-img-box {
    width: 100%;
    height: 520px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.story-hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-sub-tag {
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #888888;
    display: block;
    margin-bottom: 1rem;
}

.story-main-head {
    font-family: 'Jost', sans-serif;
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.25;
    color: #111111;
    margin: 0 0 2rem 0;
    letter-spacing: -0.01em;
}

.story-desc-text {
    font-size: 1rem;
    color: #444444;
    line-height: 1.85;
    margin: 0;
    word-break: keep-all;
}

/* ──────────────────────────────────────────────────────────────────────────
   3. 와이어프레임 4-2: 아카이빙 3열 갤러리 그리드
   ────────────────────────────────────────────────────────────────────────── */
.gallery-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #111111;
    margin: 0;
    letter-spacing: -0.02em;
}

.archiving-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.archive-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.archive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.archive-img-holder {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    overflow: hidden;
}

.archive-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-card:hover .archive-img-holder img {
    transform: scale(1.08);
}

.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.archive-card:hover .card-hover-overlay {
    opacity: 1;
}

.btn-view-story {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 0.2rem;
}

.archive-caption {
    padding: 1.8rem;
}

.archive-tag {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #888888;
    display: block;
    margin-bottom: 0.4rem;
}

.archive-title {
    font-size: 1.18rem;
    font-weight: 600;
    color: #111111;
    margin: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   4. 아카이빙 라이트박스 팝업 모달
   ────────────────────────────────────────────────────────────────────────── */
.archive-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.archive-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.archive-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.archive-modal-overlay.is-open .archive-modal-container {
    transform: translateY(0);
}

.btn-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    cursor: pointer;
    z-index: 20;
    line-height: 1;
    transition: color 0.2s ease;
}

.btn-modal-close:hover {
    color: #dddddd;
}

.archive-modal-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 520px;
}

.modal-img-holder {
    width: 100%;
    height: 100%;
    background: #111111;
}

.modal-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info-holder {
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.modal-category {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #888888;
    display: block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #111111;
    margin: 0 0 1.2rem 0;
    line-height: 1.3;
}

.modal-divider {
    width: 40px;
    height: 2px;
    background: #111111;
    margin-bottom: 1.8rem;
}

.modal-desc {
    font-size: 0.98rem;
    color: #444444;
    line-height: 1.85;
    margin: 0;
    word-break: keep-all;
    white-space: pre-line;
}

.reveal-element {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1023px) {
    .story-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .story-hero-img-box {
        height: 380px;
    }
    .archiving-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .archive-modal-body {
        grid-template-columns: 1fr;
    }
    .modal-img-holder {
        height: 320px;
    }
    .modal-info-holder {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 767px) {
    .sub-page-title {
        font-size: 2.1rem;
    }
    .story-main-head {
        font-size: 2.1rem;
    }
    .archiving-grid {
        grid-template-columns: 1fr;
    }
}