/* 会員情報ブロック用CSS */
.member-projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.member-project-item {
    padding: 0 2rem;
    /* border-top: 1px solid var(--wp--preset--color--custom-jia-color); */
}

.member-project-item .project-name {
    font-size: 1.25em !important;
    margin: 1rem 0;
    color: var(--wp--preset--color--custom-jia-color) ;
    padding-bottom: 5px;
    text-align: center;
    letter-spacing: 0;
}

.member-project-item .project-photo {
    margin: 15px 0;
}

.member-project-item .project-photo img {
    max-width: 100%;
    height: auto;
}

.member-project-item .project-comment {
    margin: 15px 0;
    line-height: 1.6;
}

.member-project-item .project-address,
.member-project-item .project-spec {
    margin: 10px 0;
    line-height: 1.6;
}

.member-project-item .project-address strong,
.member-project-item .project-spec strong {
    color: #666;
    display: inline-block;
    min-width: 80px;
}

/* ダミーコンテンツ用のスタイル */
.dummy-content {
    border: 2px dashed #ccc;
    background: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
}

.dummy-content .member-projects-list .member-project-item {
    background: #fff;
    opacity: 0.8;
}

/* ライトボックス用のスタイル */
.member-project-item .project-photo a {
    display: block;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.member-project-item .project-photo a:hover {
    transform: scale(1.02);
}

/* .member-project-item .project-photo a::after {
    content: "🔍";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
} */

.member-project-item .project-photo a:hover::after {
    opacity: 1;
}

/* GLightbox カスタムスタイル */
.gclose {
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    position: absolute !important;
    top: -25px !important;
    right: -25px !important;
    z-index: 99999 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.gclose:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1) !important;
}

.gclose svg {
    width: 24px !important;
    height: 24px !important;
}

/* オーバーレイのクリック領域を確実にする */
.goverlay {
    cursor: pointer !important;
    z-index: 9998 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    transition: opacity 0.3s ease !important;
}

/* GLightboxのフェード効果 */
.glightbox-container {
    transition: opacity 0.3s ease !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.gcontainer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
}

.glightbox-open .goverlay {
    opacity: 1 !important;
}

.glightbox-container.closing .goverlay {
    opacity: 0 !important;
}

/* スライドのフェード効果 */
.gslide {
    transition: opacity 0.3s ease !important;
}

.gslide.current {
    opacity: 1 !important;
}

.gslide-image img {
    transition: opacity 0.3s ease !important;
    max-height: 95vh !important;
    max-width: 95vw !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    position: relative !important;
    z-index: 1 !important;
}

/* ライトボックス内のコンテナを最大化 */
.ginner-container {
    max-width: 95vw !important;
    max-height: 95vh !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.gslide-inner-content {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
}

.gslide-image {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
}

/* 画像コンテナを写真に合わせたサイズにして、閉じるボタンの基準点にする */
.gslide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.gslide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ライトボックス使用説明のヒント */
.glightbox-container::before {
    content: "× 閉じる | ESC | 画面外クリック";
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out;
}

/* 説明文を完全に非表示 */
.gslide-description {
    display: none !important;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .member-project-item {
        padding: 15px;
    }

    .member-project-item .project-name {
        font-size: 1.3em;
    }

    .member-project-item .project-address strong,
    .member-project-item .project-spec strong {
        display: block;
        margin-bottom: 5px;
    }

    .member-project-item .project-photo a::after {
        opacity: 1;
        font-size: 12px;
        padding: 3px 6px;
    }
}
