@charset "utf-8";

/* Barog popup image lightbox: enabled only by [data-popup-lightbox]. */
html.barogPopupLightboxOpen,
body.barogPopupLightboxOpen {
    overflow: hidden;
}

[data-popup-lightbox] .swiper-slide a,
[data-popup-lightbox] .bnr_img,
[data-popup-lightbox] .bnr_img img {
    cursor: pointer !important;
}

[data-popup-lightbox] .swiper-slide a:focus-visible {
    outline: 3px solid var(--point-color-primary, #ffcc00);
    outline-offset: -3px;
}

.barogPopupLightbox[hidden] {
    display: none !important;
}

.barogPopupLightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    color: var(--mono-ff, #fff);
    font-family: "Pretendard", "맑은 고딕", "malgun gothic", sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms ease;
}

.barogPopupLightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.barogPopupLightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.barogPopupLightbox__panel {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    width: min(1100px, 100%);
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    padding: 56px 24px 12px;
    box-sizing: border-box;
}

.barogPopupLightbox__srOnly {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.barogPopupLightbox__close,
.barogPopupLightbox__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    color: var(--mono-ff, #fff);
    background: rgba(0, 0, 0, 0.52);
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease, opacity 200ms ease;
}

.barogPopupLightbox__close svg,
.barogPopupLightbox__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.barogPopupLightbox__close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 4;
}

.barogPopupLightbox__close:hover,
.barogPopupLightbox__arrow:not(:disabled):hover {
    border-color: var(--point-color-primary, #ffcc00);
    color: var(--mono-00, #000);
    background: var(--point-color-primary, #ffcc00);
}

.barogPopupLightbox__close:focus,
.barogPopupLightbox__arrow:focus,
.barogPopupLightbox__tab:focus {
    outline: none;
}

.barogPopupLightbox__close:focus-visible,
.barogPopupLightbox__arrow:focus-visible,
.barogPopupLightbox__tab:focus-visible {
    outline: 2px solid var(--mono-ff, #fff);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--point-color-primary, #ffcc00);
}

.barogPopupLightbox__arrow:disabled {
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.28);
    cursor: default;
}

.barogPopupLightbox__viewer {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 900px) 44px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.barogPopupLightbox__swiper {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.barogPopupLightbox__track {
    height: 100%;
    min-height: 0;
}

.barogPopupLightbox__slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
}

.barogPopupLightbox__imageWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.barogPopupLightbox__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 250ms ease;
}

.barogPopupLightbox__slide.is-loaded .barogPopupLightbox__image {
    opacity: 1;
}

.barogPopupLightbox__slide.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -16px 0 0 -16px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: var(--point-color-primary, #ffcc00);
    border-radius: 50%;
    animation: barogPopupLightboxSpin 800ms linear infinite;
}

.barogPopupLightbox__error {
    margin: 0;
    color: var(--mono-ff, #fff);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.barogPopupLightbox__slide.is-error .barogPopupLightbox__imageWrap {
    display: none;
}

/*
    탭 바는 패널 형제라 화면 전체 폭을 그대로 씁니다.
    옆으로 굴리는 대신 줄바꿈으로 펼칩니다. 21개가 대부분의 PC 화면에서 두 줄에 들어갑니다.
    화면이 좁아 줄이 더 늘어나면 그때만 세로로 스크롤합니다.
*/
.barogPopupLightbox__tabs {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    max-height: min(30vh, 200px);
    margin: 0 auto;
    padding: 4px 20px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 204, 0, 0.72) rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
}

.barogPopupLightbox__tabsRow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
}

.barogPopupLightbox__tabsRow[hidden] {
    display: none;
}

.barogPopupLightbox__tabs::-webkit-scrollbar {
    width: 4px;
}

.barogPopupLightbox__tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.12);
}

.barogPopupLightbox__tabs::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(255, 204, 0, 0.72);
}

.barogPopupLightbox__tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-8, 8px);
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}

/*
    이벤트 이름이 길어도 탭 하나가 줄을 다 잡아먹지 않도록 잘라 줍니다.
    잘린 이름은 마우스를 올리면 전체가 뜹니다(버튼의 title).
    버튼이 inline-flex 라 글자를 감싼 span 에 걸어야 말줄임이 동작합니다.
*/
.barogPopupLightbox__tabText {
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.barogPopupLightbox__tab:hover {
    border-color: rgba(255, 255, 255, 0.52);
    color: var(--mono-ff, #fff);
    background: rgba(255, 255, 255, 0.14);
}

.barogPopupLightbox__tab.is-active {
    border-color: var(--point-color-primary, #ffcc00);
    color: var(--mono-00, #000);
    background: var(--point-color-primary, #ffcc00);
}


/* ------------------------------------------------------------------
   위치 표시 (예: 5 / 21)
   탭이 21개면 한 화면에 다 들어가지 않습니다.
   지금 몇 번째를 보고 있는지 숫자로 알려 줍니다.
------------------------------------------------------------------ */
.barogPopupLightbox__counter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    background: rgba(0, 0, 0, 0.62);
    font-size: 13px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.barogPopupLightbox__counter[hidden] {
    display: none;
}

.barogPopupLightbox__counterCurrent {
    color: var(--mono-ff, #fff);
    font-weight: 700;
}

.barogPopupLightbox__counterDivider {
    color: rgba(255, 255, 255, 0.34);
}

/* ------------------------------------------------------------------
   탭바 좌우 끝 흐림
   잘린 자리가 뚝 끊겨 보이면 여기서 끝인 줄 압니다.
   끝까지 스크롤한 쪽은 흐리게 하지 않습니다.
------------------------------------------------------------------ */
.barogPopupLightbox__tabs.is-overflow {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}

.barogPopupLightbox__tabs.is-overflow.is-start {
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(180deg, #000 calc(100% - 16px), transparent 100%);
}

.barogPopupLightbox__tabs.is-overflow.is-end {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px);
    mask-image: linear-gradient(180deg, transparent 0, #000 16px);
}

.barogPopupLightbox__tabs.is-overflow.is-start.is-end {
    -webkit-mask-image: none;
    mask-image: none;
}

/* 1500px 아래에서는 탭을 살짝 조여 두 줄을 유지합니다. */
@media (max-width: 1499px) {
    .barogPopupLightbox__tabs {
        gap: 5px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .barogPopupLightbox__tab {
        padding: 0 10px;
        font-size: 12px;
    }
}

@keyframes barogPopupLightboxSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .barogPopupLightbox__panel {
        width: 100%;
        padding: 56px 12px 12px;
        gap: 8px;
    }

    .barogPopupLightbox__close {
        top: 10px;
        right: 10px;
    }

    .barogPopupLightbox__viewer {
        display: block;
        width: 100%;
        min-height: 0;
    }

    .barogPopupLightbox__arrow {
        display: none;
    }

    .barogPopupLightbox__image {
        max-height: calc(100vh - var(--barog-lightbox-chrome, 132px));
        max-height: calc(100dvh - var(--barog-lightbox-chrome, 132px));
    }

    /* 모바일에서는 탭을 감춥니다. 스와이프와 "3 / 21" 숫자로 이동합니다. */
    .barogPopupLightbox__tabs {
        display: none;
    }

    .barogPopupLightbox__counter {
        top: 8px;
        right: 8px;
        padding: 5px 12px;
        font-size: 12px;
    }

    .barogPopupLightbox__tab {
        max-width: 100%;
        padding: 0 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .barogPopupLightbox,
    .barogPopupLightbox__close,
    .barogPopupLightbox__arrow,
    .barogPopupLightbox__image,
    .barogPopupLightbox__tab {
        transition: none;
    }

    .barogPopupLightbox__slide.is-loading::before {
        animation: none;
    }
}
