/**
 * ギャラリー部
 */
#fuw_report_gallery_container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#fuw_report_gallery_container .fuw_report_gallery_item {
    width: calc((100% - 20px) / 3);
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}
#fuw_report_gallery_container .fuw_report_gallery_item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    vertical-align: bottom;
    aspect-ratio: 1 / 1;
}
@media print, screen and (max-width: 768px) {
    #fuw_report_gallery_container .fuw_report_gallery_item {
        width: calc((100% - 10px) / 2);
    }
}

/**
 * モーダル部
 */
#fuw_report_gallery_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_close {
    position: absolute;
    top: -32px;
    right: 0;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background-color: #fff;
    display: block;
    transform-origin: center;
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_img {
    width: 40vw;
    height: 60vh;
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_img img {
    width: 100%;
    height: 100%;
    vertical-align: bottom;
    object-fit: contain;
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_message {
    position: absolute;
    top: 100%;
    left: 0;
    padding: 14px;
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_message p {
    font-size: 14px;
    color: #fff;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_prev,
#fuw_report_gallery_modal .fuw_report_gallery_modal_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: unset;
    width: 28px;
    height: 51px;
    background-size: 28px 51px;
    cursor: pointer;
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_prev {
    background-image: url(../../img/gallery/arrow_left.png);
    left: -48px;
}
#fuw_report_gallery_modal .fuw_report_gallery_modal_next {
    background-image: url(../../img/gallery/arrow_right.png);
    right: -48px;
}
@media print, screen and (max-width: 768px) {
    #fuw_report_gallery_modal .fuw_report_gallery_modal_img {
        width: 100vw;
        height: 60vh;
    }
    #fuw_report_gallery_modal .fuw_report_gallery_modal_message {
        padding: 12px;
    }
    #fuw_report_gallery_modal .fuw_report_gallery_modal_message p {
        font-size: 12px;
    }
    #fuw_report_gallery_modal .fuw_report_gallery_modal_prev,
    #fuw_report_gallery_modal .fuw_report_gallery_modal_next {
        position: absolute;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background-size: calc(28px / 3) calc(51px / 3);
        background-color: rgba(0, 0, 0, 0.7);
        background-repeat: no-repeat;
        background-position: center;
    }
    #fuw_report_gallery_modal .fuw_report_gallery_modal_prev {
        left: 16px;
    }
    #fuw_report_gallery_modal .fuw_report_gallery_modal_next {
        right: 16px;
    }
}
