@charset "utf-8";

/* ==========================================================================
   1. 一覧画面：画像比率（4:3）とテキストの中央揃え
   ========================================================================== */
.accomplishment_list li a {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
    text-align: center !important; /* 文字を中央寄せ */
}

.accomplishment_list li a div {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f0f0f0 !important;
}

.accomplishment_list li a div img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.accomplishment_list li a p {
    flex-grow: 1 !important;
    padding: 15px 10px !important; /* 左右の余白を調整 */
    background: #fff !important;
    font-size: 14px !important;
    line-height: 1.4 !important; /* 行間を少し詰めて読みやすく */
    margin: 0 !important;
}

.accomplishment_list li a p small {
    display: block !important;
    margin-top: 5px !important;
    color: #888 !important;
}

/* 拡大表示中のタイトル表示 */
.viewer-title {
    opacity: 1 !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

/* caption */
.viewer-title .v-cap-main {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 4px !important;
}

/* location */
.viewer-title .v-cap-sub {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.8) !important;

}

/* Viewer.js の背景部分でブラウザのスクロールを止めてスワイプを優先させる */
.viewer-canvas {
    touch-action: none;
}

/* キャプションの見た目調整（index.html内のクラスに合わせて） */
.v-cap-main {
    font-weight: bold;
    font-size: 1.1em;
}
.v-cap-sub {
    font-size: 0.9em;
    color: #ccc;
    margin-top: 4px;
}

/* 背景の黒さを強くする（デフォルトは 0.5 程度） */
.viewer-backdrop {
    background-color: rgba(0, 0, 0, 0.9) !important;
}
