.main {
    margin: 0 auto;
}


.main-container {
    max-width: 88%;
    margin: 60px auto 80px;
}

.gallery-title {
    font-size: 4.2rem;
    font-weight: 500;
    line-height: 1.0;
}

.gallery-subtitle {
    margin-top: 20px;
    font-size: 1.6rem;
    line-height: 1.0;

}

.gallery-description {
    margin-top: 80px;

}

.gallery-index {
    font-size: 1.8rem;
    line-height: 1.2;
}

.gallery-index::after {
    content: "";
    width: 100%;
    height: 1px;
    background: #707070;
    display: block;
    margin-top: 50px;
}

.description {
    font-size: 1.4rem;
    margin-top: 40px;
    line-height: 2.2;
    margin-bottom: 80px;
}

.button {
    text-align: center;
    margin-bottom: 30px;
}

.portrait-btn,
.landscape-btn,
.stage-btn,
.food-btn {
    display: block;
    margin: 0 auto;
    width: 200px;
    border-top: solid 1px #333;
    border-bottom: solid 1px #333;
    margin-bottom: 60px;
    padding: 16px;
    font-size: 2.2rem;
}

.portrait-btn:hover,
.landscape-btn:hover,
.stage-btn:hover,
.food-btn:hover {
    background-color: #F4DB22;
}

.portrait-btn a,
.landscape-btn a,
.stage-btn a,
.food-btn a {
    color: #333;
    opacity: 1.0;
}

.photo-gallery h3,
.landscape-gallery h3,
.stage-gallery h3,
.food-gallery h3 {
    font-size: 2.4rem;
    font-weight: 500;
}

.photo-gallery h3::after,
.landscape-gallery h3::after,
.stage-gallery h3::after,
.food-gallery h3::after {
    content: "";
    width: 100%;
    height: 1px;
    background: #707070;
    display: block;
    margin-top: 20px;
    margin-bottom: 30px;
}

.portrait-main,
.landscape-main,
.stage-main,
.food-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px 5px;
    margin: 0 auto 100px;
    max-width: 410px;
}

.portrait-main li,
.landscape-main li,
.stage-main li,
.food-main li {
    list-style: none;
    max-width: 100px;
    max-height: 100px;

}


.image-container {
    position: relative;
    min-width: 100px;
    min-height: 100px;
}

.portrait-main li img,
.landscape-main li img,
.stage-main li img,
.food-main li img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.portrait-main::after,
.landscape-main::after {
    content: "";
    display: block;
    width: 100px;
    height: 100px;
    background: #f5f5f5;
}



@media(min-width: 600px) {
    .gallery-main-image {
        display: none;
    }

    .main-container {
        max-width: 90%;
    }

    .gallery-index {
        font-size: 2.0rem;
        margin-top: 0;
    }

    .description {
        font-size: 1.6rem;
        margin-bottom: 160px;
    }

    .gallery-description {
        margin-top: 0;
        margin-left: 50%;
    }

    .button {
        max-width: 100%;
        display: flex;
        justify-content: space-between;
        margin-bottom: 80px;
        gap: 10px;
    }


    .photo-gallery h3::after,
    .landscape-gallery h3::after,
    .stage-gallery h3::after,
    .food-gallery h3::after {
        margin-bottom: 100px;
    }

    .portrait-main,
    .landscape-main,
    .stage-main,
    .food-main {
        gap: 60px 30px;
        margin: 0 auto 220px;
        max-width: 600px;
    }

    .portrait-main li,
    .landscape-main li,
    .stage-main li,
    .food-main li {
        max-width: 150px;
        max-height: 150px;
    }

    .image-container {
        min-width: 150px;
        min-height: 150px;
    }

    .portrait-main::after,
    .landscape-main::after,
    .food-main::after {
        width: 150px;
        height: 150px;
    }

}

@media(min-width: 960px) {
    .main-container {
        margin-top: 100px;
    }

    .portrait-main,
    .landscape-main,
    .stage-main,
    .food-main {
        gap: 60px 40px;
        margin-bottom: 220px;
        max-width: 1280px;
    }

    .portrait-main li,
    .landscape-main li,
    .stage-main li,
    .food-main li {
        max-width: 250px;
        max-height: 250px;
    }

    .image-container {
        width: 250px;
        height: 250px;
    }

    .portrait-main::after,
    .landscape-main::after {
        width: 250px;
        height: 250px;
    }

}

@media(min-width:1280px) {
    .main-container {
        max-width: 1280px;
    }


    .button {
        max-width: 1280px;
    }


    .portrait-main,
    .landscape-main,
    .stage-main,
    .food-main {
        gap: 60px 40px;
        margin-bottom: 220px;
        max-width: 1280px;
    }


    .portrait-main::after {
        width: 560px;
    }

    .food-main::after {
        width: 250px;
        height: 250px;
    }


}