.gallery .main-visual-section .bg-area {
    background: url(../img/GALLERY/main-visual-gallery.png) center no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;
}

.archive-gallery-section .wrapper {
    padding: 150px 0;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    max-height: 400px;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    cursor: pointer;
}

@media (any-hover: hover) {
    .gallery-wrap:hover {
        filter: grayscale(0%);
    }
}

.w-1 {
    width: calc(20% - 8px);
    /* 5列分 */
}

.w-2 {
    width: calc(33.333% - 8px);
    /* 3列分 */
}

.w-3 {
    width: calc(25% - 8px);
}

.gallery-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item__details {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 0;
    padding: 5px 15px;
    color: #333;
    background: #fff;
    font-size: 14px;
}

.item__details p {
    font-weight: 700;
    letter-spacing: 0.05em;
}

.page-numbers {
    color: #333333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 998;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    height: 100%;
    position: relative;
    text-align: center;
    align-content: center;
}

.modal-content img {
    width: auto;
    height: 80%;
}

.modal-close {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    cursor: pointer;
    background: #D9A8B2;
    border-radius: 999px;
    height: 50px;
    width: 50px;
    transition: background .3s;
}

.modal-close::before,
.modal-close::after {
    /* 共通設定 */
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    /* 棒の幅（太さ） */
    height: 20px;
    /* 棒の高さ */
    background: #fff;
    transition: background .3s;
} 

.modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (any-hover: hover) {
    .modal-close:hover {
        background: #fff;
    }
    .modal-close:hover::before,
    .modal-close:hover::after {
        background: #D9A8B2;
    }

}

