/* 기본 스타일 */
body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 히어로 섹션 */
.hero {
    background-color: #FFE4E1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 모바일 화면을 위한 미디어 쿼리 수정 */
@media screen and (max-width: 1024px) {
    .hero {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .hero-content {
        width: 100%;
        text-align: center;
        max-width: 100%;
    }

    .hero-content h1 {
        text-align: center;
    }

    .hero-content p {
        text-align: center;
    }

    .hero-image {
        width: 100%;
        min-width: auto;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        width: 330px;
        max-width: 100%;
    }

    .hero-image video {
        width: 330px;
        height: auto;
        object-fit: cover;
    }
}

.hero-content {
    text-align: left;
    flex: 1;
    padding: 0 20px;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5em;
    margin: 0;
    line-height: 1.2;
    padding: 0;
}

.hero-content p {
    font-size: 1.5em;
    margin-top: 20px;
}

.hero-image {
    flex: 1;
    min-width: 330px;
}

.hero-image img {
    width: 330px;
    height: auto;
}

.hero-image video {
    width: 450px;
    height: auto;
    object-fit: cover;
}

/* 이미지 그리드 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.image-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* 오버레이 텍스트 스타일 수정 */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
}

.image-overlay h3 {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.image-overlay p {
    margin: 2px 0 0 0;
    padding: 0;
    width: 100%;
    text-align: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.image-item:hover .image-overlay {
    opacity: 1;
}

.image-item:hover img {
    transform: scale(1.05);
}

/* 로딩 스피너 스타일 추가 */
.loading-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0099ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}