@charset "utf-8";

/* 전단지(Weekly Flyer) 갤러리 - PC/모바일 공용 반응형 스타일 */

.flyer-page {
    width: 94%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px 0 60px;
    box-sizing: border-box;
}

/* 상단 컨텐츠 ---------------------------------------------------------- */
.flyer-intro {
    max-width: 850px;
    margin: 0 auto 32px;
    text-align: center;
}

.flyer-intro-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

.flyer-intro-body {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    word-break: break-word;
}

.flyer-intro-body img {
    max-width: 100%;
    height: auto;
}

/* PDF 다운로드 버튼 ----------------------------------------------------- */
.flyer-pdf {
    text-align: right;
    margin-bottom: 12px;
}

.flyer-pdf img {
    max-width: 100%;
    height: auto;
}

/* masonry 그리드 -------------------------------------------------------- */
.flyer-masonry {
    column-count: 4;
    column-gap: 20px;
}

.flyer-panel {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
    transition: box-shadow .3s ease, transform .3s ease;
}

.flyer-panel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    transform: translateY(-2px);
}

.flyer-panel a {
    display: block;
    line-height: 0;
}

.flyer-panel img {
    width: 100%;
    height: auto;
    display: block;
}

.flyer-empty {
    padding: 80px 20px;
    text-align: center;
    color: #888;
    font-size: 15px;
}

/* 세로로 긴 패널: 칼럼 균형을 무너뜨리므로 전체 폭 띠로 분리 배치 */
.flyer-panel-tall {
    column-span: all;
    max-width: 700px;
    margin: 0 auto 20px;
}

/* 반응형 ---------------------------------------------------------------- */
@media (min-width: 1700px) {
    .flyer-masonry { column-count: 5; }
}

@media (max-width: 1200px) {
    .flyer-masonry { column-count: 3; }
}

@media (max-width: 768px) {
    .flyer-page { width: 96%; padding: 12px 0 40px; }
    .flyer-masonry { column-count: 2; column-gap: 12px; }
    .flyer-panel { margin-bottom: 12px; }
    .flyer-panel-tall { max-width: 100%; margin-bottom: 12px; }
    .flyer-intro-title { font-size: 22px; }
    .flyer-intro-body { font-size: 14px; }
}

@media (max-width: 480px) {
    .flyer-masonry { column-count: 1; }
}

/* Fancybox 버튼 다듬기 --------------------------------------------------- */
.fancybox__container .f-button {
    background: rgba(255, 255, 255, .9);
    color: #555;
    border-radius: 50%;
    transition: background-color .3s ease, transform .2s ease;
}

.fancybox__container .f-button:hover {
    background: #fff;
    color: #222;
    transform: scale(1.08);
}
