* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Pretendard", sans-serif;
    background: #0b0f16;
    color: #eaf0ff;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 15, 22, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
}

.day-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.day-tabs button {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 999px;
    border: none;
    background: #eee;
}

.day-tabs button.active {
    background: #000;
    color: #fff;
}

.container {
    padding: 16px 14px 40px;
}

/* ✅ 기본은 숨기고 active만 보여줌 */
.day-section { display: none; }
.day-section.active { display: block; }

.gallery {
    display: grid;
    gap: 12px;
}

/* PC */
@media (min-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 태블릿 */
@media (min-width: 768px) and (max-width: 1023px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 모바일 */
@media (max-width: 767px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.item { width: 100%; }

.thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

/* VIDEO 썸네일 래퍼 + ▶ 아이콘 */
.video-thumb-wrapper {
    position: relative;
    cursor: pointer;
}

.play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    padding: 18px;
}

.modal.open { display: flex; }

.modal-close {
    position: fixed;
    top: 12px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.modal-media {
    display: none;
    max-width: min(1100px, 96vw);
    max-height: 86vh;
    border-radius: 14px;
    background: #000;
}

#modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#modal img,
#modal video {
    max-width: 100%;
    max-height: 100%;
}
