/* 팝업 공지 카드 스타일 - 모든 카드 332px 고정 크기 */
.popup-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 332px);
    gap: 20px;
    justify-content: center;
    position: relative;
}

.popup-notice-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 5;
    width: 332px;
    height: 415px;
}

.popup-notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.popup-card-content {
    width: 100%;
    height: 100%;
    position: relative;
}

/* MP4 비디오 타입 */
.popup-video {
    background: #000;
}

.popup-mute-toggle {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.popup-mute-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

/* IMAGE 타입 */
.popup-image {
    background: #f5f5f5;
}

/* IMGTXT 타입 */
.popup-image-text {
    position: relative;
}

.popup-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
}

.popup-image-text .popup-text-content {
    color: white;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    max-height: 100%;
    overflow: hidden;
    font-weight: 500;
}

/* TEXT 타입 */
.popup-text-only {
    background: #000;
    border: 4px solid #FFCE00;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.popup-text-only .popup-text-content {
    color: white;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    max-height: 100%;
    overflow: auto;
}

/* 반응형 - PC (4열) */
@media (min-width: 1400px) {
    .popup-cards-grid {
        grid-template-columns: repeat(4, 332px);
    }
}

/* 반응형 - 태블릿 큰 화면 (3열) */
@media (min-width: 1050px) and (max-width: 1399px) {
    .popup-cards-grid {
        grid-template-columns: repeat(3, 332px);
    }
}

/* 반응형 - 태블릿 (2열) */
@media (min-width: 700px) and (max-width: 1049px) {
    .popup-cards-grid {
        grid-template-columns: repeat(2, 332px);
    }
}

/* 반응형 - Mobile (1열) */
@media (max-width: 699px) {
    .popup-cards-grid {
        grid-template-columns: 332px;
    }

    .popup-text-overlay .popup-text-content {
        font-size: 14px;
    }

    .popup-text-only .popup-text-content {
        font-size: 16px;
        padding: 20px;
    }
}

/* 스크롤바 스타일 (텍스트 오버플로우시) */
.popup-text-content::-webkit-scrollbar {
    width: 6px;
}

.popup-text-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.popup-text-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}