/* ホバー効果 */
.clickable-image {
    transition: transform 0.3s ease-in-out; /* スムーズなアニメーション */
    cursor: pointer; /* カーソルをポインターにする */
}

.clickable-image:hover {
    transform: scale(1.05); /* ホバー時に少し拡大 */
}

/* 拡大表示用オーバーレイ */
.global-image-overlay {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明の黒背景 */
    justify-content: center; /* flexboxで水平方向中央揃え */
    align-items: center; /* flexboxで垂直方向中央揃え */
    z-index: 1000; /* 最前面に表示 */
}

.enlarged-image-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* 画像全体を表示 */
}

/* 閉じるボタン */
.close-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001; /* オーバーレイより手前に表示 */
}

.close-overlay:hover,
.close-overlay:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}