@charset "utf-8";
@import "anime.css";

/*
------------
works.css
------------
*/
/* post_list */
#post_list {
    margin: 45px 0 0 0;
}
#post_list .inner {
    width: calc(100vw * 1100 / 1400);
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: min(calc(100vw * 20 / 1400), 20px);
}
#post_list .inner a {
    display: block;
    width: calc(100vw * 260 / 1400);
    max-width: 260px;
    height: auto;
    aspect-ratio: 1 / 1;
}
#post_list .inner a figure {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--white);
}
#post_list .inner a figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease, opacity .3s ease;
}
#post_list .inner a:hover figure img {
    transform: scale(1.05);
    opacity: .6;
}
@media only screen and (max-width: 768px) {
    #post_list {
        margin: 30px 0 0 0;
    }
    #post_list .inner {
        width: 85vw;
        max-width: 85vw;
        gap: 2vw;
    }
    #post_list .inner a {
        width: calc((100% / 2) - 1vw);
        max-width: calc((100% / 2) - 1vw);
    }
    #post_list .inner a figure img {
        transition: none;
    }
    #post_list .inner a:hover figure img {
        transform: scale(1);
        opacity: 1;
    }
}