.main-photo-gallery {
    width: 100%;
    padding: 90px 0 100px;
    background: #fff;
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
    box-sizing: border-box;
}

.main-photo-head {
    margin-bottom: 50px;
    text-align: center;
}

.main-photo-head span {
    display: block;
    margin-bottom: 8px;
    color: #888;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.main-photo-head h2 {
    margin: 0;
    color: #111;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.2;
}

.main-photo-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px 24px;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

.main-photo-item {
    display: block;
    color: #111;
    text-decoration: none;
}

.main-photo-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
}

.main-photo-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.main-photo-item:hover .main-photo-img img {
    transform: scale(1.06);
}

.main-photo-item p {
    margin: 13px 0 0;
    color: #222;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-photo-empty {
    grid-column: 1 / -1;
    padding: 50px 20px;
    color: #777;
    font-size: 16px;
    text-align: center;
    background: #f7f7f7;
}

/* 큰 화면 */
@media (min-width: 1600px) {
    .main-photo-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 태블릿 */
@media (max-width: 1200px) {
    .main-photo-list {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 24px;
        gap: 28px 18px;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    .main-photo-gallery {
        padding: 60px 0 70px;
    }

    .main-photo-head {
        margin-bottom: 32px;
    }

    .main-photo-head span {
        font-size: 14px;
    }

    .main-photo-head h2 {
        font-size: 30px;
    }

    .main-photo-list {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 14px;
        gap: 22px 10px;
    }

    .main-photo-item p {
        margin-top: 9px;
        font-size: 14px;
    }
}