@charset "utf-8";
/*==========================
gallery
==========================*/

.filters {
    margin-top: 48px;
    display: flex;
    gap: 16px 8px;
    flex-wrap: wrap;
}

.filter__button button {
    flex: none;
    font-family: "EB Garamond";
    font-size: 2.0rem;
    letter-spacing: 1.4px;
    padding: 6px 22px;
    align-items: center;
    border-radius: 28px;
    border: 1px solid #333;
}

.filter__button button.is-active {
    background-color: var(--primary-black);
    color: #fff;
}

.filter__button span {
    font-family: "Zen Old Mincho";
    font-size: 1.6rem;
    letter-spacing: 1.12px;
    margin-left: 16px;
}

.gallery {
    margin-left: -4px; 
    display: block;
    margin-top: 72px;
    position: relative;
    overflow: hidden;
}

.grid-sizer,
.gallery__item {
    width: 100%; 
    margin-left: 4px;
    float: left;
}

.gallery__item {
    margin-bottom: 8px;
}

.gallery__item img {
    width: 100%;
    height: auto;
    display: block;
}

.filter-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary-white);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.6s ease;
}


.filter-flash.is-active {
    opacity: 1;
}

/* タブレット */

@media screen and (min-width:768px) and (max-width:1023px) {
    .filters {
        margin-top: 80px;
        display: flex;
        gap: 16px;
    }

    .gallery {
        margin: 64px auto 0;
    }

    .grid-sizer,
    .gallery__item {
        width: calc(50% - 8px); /* 3カラム + ギャップ */
        margin-left: 4px;
        margin-right: 4px;
    }

    .gallery__item {
        margin-bottom: 8px;
    }

    .gallery__item img {
        width: 100%;
        height: auto;
        display: block;
    }
}


/* pc */
@media screen and (min-width:1024px) {

    .filters {
        margin-top: 80px;
        display: flex;
        gap: 16px;
    }

    .filter__button button:hover {
        color: #fff;
        background-color: var(--primary-black);
        transition: 0.4s ease;
    }
    
    .gallery {
        margin: 64px auto 0;
    }

    .grid-sizer,
    .gallery__item {
        width: calc(33.333% - 8px); /* 3カラム + ギャップ */
        margin-left: 4px;
        margin-right: 4px;
    }

    .gallery__item {
        margin-bottom: 8px;
    }
    
    .gallery__item img {
        width: 100%;
        height: auto;
        display: block;
    }

}