@charset "UTF-8";
/*==============
    photo
===============*/
h3{
    font-family: var(--ja);
    color: var(--black);
}
#photo ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
#photo ul li{
    width: calc(50% - 2.22vw);
    margin-bottom: 5%;
}
#photo ul li:last-child,
#photo ul li:nth-last-of-type(2){
    margin-bottom: 0;
}
#photo ul li a .ttl{
    font-size: 1.4rem;
    line-height: 1.5;
    margin-top: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    transition: 0.4s all;
}
#photo ul li:hover a .ttl {
    color: var(--color1);
}
#photo .gallery-list li a .imgWrap img {
    width: 100%;
    height: 100%;
    max-height: 300px;
    min-width: 270px;
    object-fit: cover;
    object-position: center;
}
.modaal-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 90vh;
    object-fit: contain;
    object-position: center;
}
#photo_detail .content .gallery .thumb{
    display: flex;
    flex-wrap: wrap;
    gap: 12px 1%;
    justify-content: flex-start;
    margin-bottom: 48px;
}
#photo_detail .content .gallery .thumb a {
    width: 24.25%;
}
#photo_detail .content .gallery .thumb a img{
    aspect-ratio: 1 / 1;
    object-position: 50% 20%;
    width: 100%;
    height: 100%;
    max-height: 250px;
    object-fit: cover;
}
#photo .gallery-list li a .thumbnail img{
    transition: 0.8s all;
}
#photo .gallery-list li:hover a .thumbnail img{
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    opacity: 1;
}
@media screen and (max-width: 1200px){
    #photo_detail .content .gallery .thumb a img {
        height: auto;
    }
}
@media screen and (max-width: 768px){
    #photo ul li{
        width: calc(50% - 12px);
        margin-bottom: 24px;
    }
    #photo_detail .content .gallery .thumb a {
        width: calc(98% / 2);
    }
    #photo_detail .content .gallery .thumb{
        gap: 5px 2%;
        margin-bottom: 32px;
        padding-bottom: 32px;
    }
}
@media screen and (max-width: 500px){
    #photo ul content {
        display: block;
    }
    #photo ul li {
        width: 100%;
    }
    #photo ul li a .ttl {
        -webkit-line-clamp: 3;
    }
}