/* GALLERY — 상단 GNB·히어로·푸터는 impact 페이지와 같은 규칙을 그대로 가져왔어요. */
.pc-gallery {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    font-size: var(--fs-16);
    color: var(--color-gray-100);
    font-family: var(--font-pretendard);
}
.acf-gnb-parent {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--gnb-h) + var(--section-py)) var(--padding-0) var(--section-py);
    background-color: var(--color-gray-300);
    background-image: url("media/hero.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.acf-gnb {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--gnb-h);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background-color: var(--color-gray-600);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--side);
    box-sizing: border-box;
    gap: var(--gap-20);
}
.icon {
    height: 40px;
    width: 101px;
    position: relative;
    object-fit: cover;
    flex-shrink: 0;
}
.impact-parent {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4.17vw, 80px);
    flex-shrink: 0;
}
.impact {
    position: relative;
    line-height: 120%;
    font-weight: 700;
    color: var(--color-deeppink);
}
.gallery {
    position: relative;
    line-height: 120%;
    font-weight: 400;
}
.impact2 {
    align-self: stretch;
    position: relative;
    padding: 0 var(--gutter);
    font-size: clamp(48px, 5vw, 96px);
    line-height: 120%;
    font-family: var(--font-dunkelsans);
    font-weight: 900;
    font-style: normal;
    color: var(--color-white);
}
.impact2 {
    margin: 0;
}

.footer-container {
    align-self: stretch;
    background-color: var(--color-gray-300);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--section-py) var(--padding-0);
    gap: 60px;
    text-align: left;
    font-size: var(--fs-14);
    font-family: var(--font-montserrat);
}
.text-input8 {
    align-self: stretch;
    height: 1px;
    position: relative;
    border-top: 1px solid var(--color-gray-400);
    box-sizing: border-box;
}
.text-input-container2 {
    width: min(var(--content-w), calc(100% - var(--gutter) * 2));
    display: flex;
    align-items: flex-start;
    gap: 65px;
}
.text-input-icon {
    height: auto;
    width: 224px;
    position: relative;
    flex-shrink: 0;
    color: var(--color-gray-100);
}
.text-input-container3 {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gap-20);
}
.text-input-container4 {
    width: 338px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-20);
}
.term-address-parent {
    display: flex;
    align-items: center;
    gap: 34px;
}
.term-address {
    height: var(--height-25_5);
    width: 76.2px;
    position: relative;
    line-height: 120%;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.details {
    position: relative;
    line-height: 120%;
}
.term-tel-parent {
    width: 206.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-20);
}
.term-tel {
    height: var(--height-25_5);
    width: 28.4px;
    position: relative;
    line-height: 120%;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.details-tel {
    height: var(--height-25_5);
    width: 96.5px;
    position: relative;
    line-height: 120%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.term-fax-parent {
    width: 212.2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-20);
}
.term-fax {
    height: var(--height-25_5);
    width: 30.6px;
    position: relative;
    line-height: 120%;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.details-fax {
    height: var(--height-25_5);
    width: 102.2px;
    position: relative;
    line-height: 120%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.term-e-mail-parent {
    display: flex;
    align-items: center;
    gap: 62px;
}
.term-e-mail {
    height: var(--height-25_5);
    width: 48px;
    position: relative;
    line-height: 120%;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.text-input-container5 {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gap-20);
    font-size: var(--fs-18);
    font-family: var(--font-pretendard);
}
.text-input9 {
    display: flex;
    align-items: flex-start;
    gap: 40px; /* 글자 폭이 달라도 메뉴 사이 간격이 같게 */
}
.contact {
    align-self: stretch;
    width: auto;
    position: relative;
    line-height: 120%;
    display: inline-block;
    flex-shrink: 0;
}
.instagram {
    height: 24px;
    width: auto;
    position: relative;
    line-height: 120%;
    display: inline-block;
    flex-shrink: 0;
}
.text-input10 {
    height: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    font-size: var(--fs-14);
}
.paragraph-container {
    display: flex;
    align-items: center;
    gap: var(--gap-16);
}
.div28 {
    height: 17px;
    width: var(--width-100);
    position: relative;
    line-height: 120%;
    display: inline-block;
    flex-shrink: 0;
}
.div29 {
    position: relative;
    text-align: left;
}


a.gallery {
    color: inherit;
    text-decoration: none;
}

.acf-gnb a {
    transition: opacity 0.2s;
}
.acf-gnb a:hover {
    opacity: 0.6;
}


@media (max-width: 1024px) {
    .text-input-container2 {
        flex-direction: column;
        gap: 48px;
    }
    .text-input-container3 {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .icon {
        height: 32px;
        width: auto;
    }
    .impact-parent {
        font-size: var(--fs-14);
    }
    .text-input-container {
        flex-wrap: wrap;
        row-gap: var(--gap-40);
    }
    .text-input,
    .text-input5 {
        flex: 1 1 40%;
    }
    .text-input2 {
        display: none;
    }
    .text-input-icon {
        width: 160px;
    }
    .text-input-container3 {
        flex-direction: column;
        gap: var(--gap-40);
    }
    .text-input9 {
        flex-wrap: wrap;
    }
    .paragraph-container {
        flex-wrap: wrap;
        gap: 8px;
    }
}


.count {
    font-variant-numeric: tabular-nums;
}

/* 푸터 링크 (원본은 <b> 였음) */
a.contact,
a.instagram {
    font-weight: 700;
}
.details a:hover,
.details-tel a:hover {
    text-decoration: underline;
}
a.contact,
a.instagram {
    transition: opacity 0.2s;
}
a.contact:hover,
a.instagram:hover {
    opacity: 0.6;
}

/* 에크페(핑크) 숫자: 막대가 다 차오른 뒤에 나타남 */
.has-ico {
  display: inline-flex;
  align-items: center;
}
.ico-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transform: translateY(0.5px); /* 글자 대문자 중심에 맞추는 광학 보정 */
}
@media (max-width: 768px) {
  .impact-parent .ico-arrow {
    width: 20px;
    height: 20px;
  }
}

/* 푸터(글자 18px): 아이콘도 같은 비율(글자의 1.5배 = 27px), 위치 보정 없음 */
.text-input-container5 .ico-arrow {
    width: 27px;
    height: 27px;
    /* 줄 높이(18px × 120% = 21.6px)에 영향이 없게 위아래 균등하게 뺌 → 다른 메뉴와 글자 높이 동일 */
    margin: calc((21.6px - 27px) / 2) 0;
    transform: translateY(0);
}

/* 푸터 메뉴 줄: 다른 메뉴처럼 글자를 위쪽 기준으로 (줄이 24px로 늘어나도 세로 가운데로 내려가지 않게) */
.text-input9 a.has-ico {
    align-items: flex-start;
}

/* ===== 갤러리 ===== */
.gallery-section {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-80);
    padding: var(--section-py) var(--gutter);
    background-color: var(--color-gray-300);
}
.gallery-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-8);
}
.gallery-kicker {
    margin: 0;
    font-size: var(--fs-32);
    font-weight: 400; /* 서브타이틀 Regular */
    line-height: 150%;
    letter-spacing: -0.03em;
    color: var(--color-gray-200);
}
.gallery-title {
    margin: 0;
    font-size: var(--fs-40);
    font-weight: 700;
    line-height: 150%;
    color: var(--color-white);
}
/* 4열 그리드 (피그마 289 × 368, 간격 20). 사진을 누르면 팝업(.lightbox)으로 큰 사진이 떠요. */
.photo-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    width: min(var(--content-w), 100%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap-20);
}
.photo-grid li {
    min-width: 0;
}
.photo-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--br-16);
    overflow: hidden;
    background: #1b1b1b;
    cursor: zoom-in;
    aspect-ratio: 289 / 368;
}
.photo-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.photo-button:hover img {
    transform: scale(1.04);
}
.photo-button:focus-visible {
    outline: 3px solid var(--color-deeppink);
    outline-offset: 3px;
}
@media (max-width: 768px) {
    .gallery-section {
        gap: var(--gap-40);
    }
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* ── 사진 팝업(라이트박스) ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.lightbox[hidden] {
    display: none;
}
.lightbox.is-open {
    opacity: 1;
}
.lightbox__frame {
    position: relative;
    line-height: 0;
    transform: scale(0.96);
    transition: transform 0.25s ease;
}
.lightbox.is-open .lightbox__frame {
    transform: none;
}
.lightbox__img {
    display: block;
    /* 확대 사진 크기 1136 × 756 (작은 화면에서는 같은 비율로 줄어듦) */
    width: min(1136px, calc(100vw - clamp(16px, 4vw, 48px) * 2));
    height: auto;
    aspect-ratio: 1136 / 756;
    object-fit: cover;
    max-height: calc(100vh - clamp(16px, 4vw, 48px) * 2);
    max-height: calc(100dvh - clamp(16px, 4vw, 48px) * 2);
    border-radius: var(--br-16);
    background: #1b1b1b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
}
.lightbox.is-loading .lightbox__img {
    opacity: 0;
}
.lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(12, 12, 12, 0.6);
    color: var(--color-white);
    cursor: pointer;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease;
}
.lightbox__close svg {
    width: 20px;
    height: 20px;
}
.lightbox__close:hover {
    background: var(--color-deeppink);
}
.lightbox__close:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}
/* 큰 사진을 받는 동안 보이는 로딩 표시 */
.lightbox.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: lightbox-spin 0.8s linear infinite;
}
@keyframes lightbox-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .photo-button img,
    .lightbox,
    .lightbox__frame,
    .lightbox__img {
        transition: none;
    }
    .lightbox__frame {
        transform: none;
    }
    .lightbox.is-loading::after {
        animation-duration: 2s;
    }
}

/* 상단 메뉴 호버: 선택된 메뉴와 같은 핑크 + 굵기 700 (평소 400) */
.impact-parent a {
    transition: color 0.2s;
}
.impact-parent a:hover,
.impact-parent a:active,
.impact-parent a:focus-visible {
    color: var(--color-deeppink);
    font-weight: 700;
}

/* 유튜브 하이라이트 영상 (사진 그리드 위, 그리드와 같은 폭, 16:9) */
.gallery-video {
    width: min(var(--content-w), 100%);
    aspect-ratio: 16 / 9;
    border-radius: var(--br-16);
    overflow: hidden;
    background: #000;
}
.gallery-video__play {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}
.gallery-video__play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.gallery-video__play svg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 48px;
    margin: -24px 0 0 -34px;
}
.gallery-video__play:hover img,
.gallery-video__play:focus-visible img {
    opacity: 1;
}
.gallery-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 둔켈산스 로딩 중에는 큰 제목을 숨겼다가(기본 글꼴 → 둔켈산스로 바뀌며 크기가 튀는 현상 방지) 로딩되면 부드럽게 표시.
   Adobe 로더가 <html> 에 wf-loading → wf-active(또는 3초 넘으면 wf-inactive) 클래스를 붙임 */
.impact2 {
    transition: opacity 0.25s ease;
}
.wf-loading .impact2 {
    opacity: 0;
}
