#hd {
                min-width: auto;
            }

            .container-fluid.fixed-top {
                z-index: 999;
            }

.modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: none;
        justify-content: center;
        align-items: center;
    }

    .modal-custom {
        position: relative;
        background: #fff;
        padding: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        max-width: 400px;
        text-align: center;
        overflow: hidden;
    }

    .modal-popup-content {
        overflow: auto;
    }

    .modal-popup-content img {
        width: 100%;
        height: auto;
        display: block;
    }

    .modal-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: #f9f9f9;
    }

    .close-modal-btn {
        background-color: black;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: bold;
        color: white;
        cursor: pointer;
        padding: 2px 10px;
    }

    .close-modal-btn:hover {
        color: gray;
    }

    .hide-today-label {
        font-size: 14px;
        color: #333;
        display: flex;
        align-items: center;
    }

    .hide-today-label input[type="checkbox"] {
        margin-left: 5px;
        margin-right: 5px;
    }

    /* ── Instagram Slider (owl-carousel 사이즈 맞춤) ── */
    .ig-section {
        padding: 0;
        background: transparent;
        width: 33.333%;
        flex: 0 0 33.333%;
    }

    /* ── Slider Container ── */
    .ig-slider-wrap {
        width: 100%;
        margin: 0 auto;
        position: relative;
        padding: 0 30px;
    }

    .ig-slider {
        overflow: hidden;
        border-radius: 8px;
        position: relative;
        background: #fff;
    }

    .ig-slider-track {
        display: flex;
        transition: transform .5s cubic-bezier(.25, .1, .25, 1);
        will-change: transform;
    }

    .ig-slide {
        min-width: 100%;
        position: relative;
    }

    .ig-slide a {
        display: block;
        text-decoration: none;
        position: relative;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background: #f3f4f6;
    }

    .ig-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    /* ── Slide Overlay ── */
    .ig-slide .ig-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px;
        background: linear-gradient(transparent, rgba(0, 0, 0, .7));
        opacity: 0;
        transition: opacity .3s ease;
    }

    .ig-slide:hover .ig-overlay,
    .ig-slide a:focus .ig-overlay {
        opacity: 1;
    }

    .ig-overlay .ig-user {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }

    .ig-overlay .ig-user i {
        color: #fff;
        font-size: 16px;
    }

    .ig-overlay .ig-user span {
        color: #fff;
        font-size: 12px;
        font-weight: 600;
    }

    .ig-overlay .ig-caption {
        color: rgba(255, 255, 255, .9);
        font-size: 12px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ig-slide .ig-video-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, .5);
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ig-video-badge i {
        color: #fff;
        font-size: 11px;
    }

    /* ── Navigation Arrows ── */
    .ig-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .9);
        border: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        transition: background .2s, transform .2s;
    }

    .ig-nav:hover {
        background: #fff;
        transform: translateY(-50%) scale(1.1);
    }

    .ig-nav-prev {
        left: 2px;
    }

    .ig-nav-next {
        right: 2px;
    }

    .ig-nav svg {
        width: 14px;
        height: 14px;
        fill: #262626;
    }

    /* ── Dots ── */
    .ig-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 12px;
    }

    .ig-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #dbdbdb;
        border: none;
        cursor: pointer;
        padding: 0;
        transition: background .3s, transform .3s;
    }

    .ig-dot.active {
        background: #E1306C;
        transform: scale(1.3);
    }

    /* ── Loading ── */
    .ig-loading {
        text-align: center;
        padding: 40px 0;
    }

    .ig-loading .spinner {
        display: inline-block;
        width: 28px;
        height: 28px;
        border: 3px solid #dbdbdb;
        border-top-color: #E1306C;
        border-radius: 50%;
        animation: ig-spin .8s linear infinite;
    }

    @keyframes ig-spin {
        to {
            transform: rotate(360deg);
        }
    }

    .ig-loading p {
        color: #8e8e8e;
        font-size: 12px;
        margin-top: 8px;
    }

    /* ── Responsive ── */
    @media (max-width: 991px) {
        .ig-section {
            width: 50%;
            flex: 0 0 50%;
        }
    }

    @media (max-width: 767px) {
        .ig-section {
            width: 100%;
            flex: 0 0 100%;
            margin-bottom: 20px;
        }

        .ig-slider-wrap {
            padding: 0 30px;
            max-width: 400px;
        }
    }

    @media (max-width: 480px) {
        .ig-nav {
            width: 28px;
            height: 28px;
        }

        .ig-slider-wrap {
            padding: 0 25px;
        }
    }
/* ── GNB 2차 메뉴 — 담당자 지적사항 수정 ──
   원본은 2차 메뉴를 가로 한 줄(높이 19px)로 펼치고, 마지막 '참여공간'은
   left:-1014px 로 화면 왼쪽까지 끌어와 마우스로 진입하기가 어렵다.
   메뉴 바로 아래에 세로로 펼쳐지도록 바꾼다. */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        flex-direction: column;
        width: max-content;
        min-width: 190px;
        padding: 6px 0;
        background: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    }

    /* 마지막 메뉴는 화면 밖으로 나가지 않게 오른쪽 끝에 맞춘다.
       원본 style.css 가 left:-1014px !important 로 박아둬서 클래스를 하나 더 얹어 이긴다 */
    .navbar .nav-item:last-child .dropdown-menu.border-light {
        left: auto !important;
        right: 0 !important;
    }

    .navbar .nav-item .dropdown-menu .dropdown-item {
        padding: 8px 18px;
        white-space: nowrap;
    }
}

/* P/G 신청 — 상위 탭이 3개(스트레스 샤워 / 안녕히주무셨어요? / 아동 청소년)가 되면서
   원본의 li{width:50%} 로는 두 줄로 접힌다. 바깥 탭줄만 3등분한다.
   '아동 청소년' 안에 든 두 번째 탭줄(.pg_tab 중첩)은 2개 그대로라 건드리지 않는다. */
.pg_menu > .pg_tab > .tab-nav > .tnb { width: 33.3333%; }

/* 좁은 화면에서는 3등분한 칸에 '안녕히주무셨어요?' 가 안 들어가 두 줄로 접힌다 — 글자만 줄인다 */
@media (max-width: 768px) {
  .pg_menu > .pg_tab > .tab-nav > .tnb a { font-size: 0.82rem; letter-spacing: -0.02em; }
}
