/* ============================================================
   画像＋テキスト横並びグリッド（media-row）
   イベント本文（.detail-content）内で使用。SPも横並びを維持する。
   ============================================================ */

.detail-content .media-row {
    display: flex;
    flex-direction: row;
    gap: 4.5%;
    align-items: flex-start;
    /* 前後の段落・グリッド同士との縦間隔（連続時はマージン相殺で2.4emに揃う） */
    margin: 2.4em 0;
}

.detail-content .media-row .media-row__img {
    flex: 0 0 38%;
    margin: 0;
    position: relative;
    cursor: zoom-in;
    line-height: 0;
}

.detail-content .media-row .media-row__img img {
    width: 100%;
    height: auto;
    display: block;
}

/* 拡大できることを示す虫めがねアイコン */
.detail-content .media-row .media-row__img::after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.45);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M20.5 20.5l-5.2-5.2M10.5 7.8v5.4M7.8 10.5h5.4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    pointer-events: none;
}

.detail-content .media-row .media-row__body {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
}

.detail-content .media-row .media-row__body h3 {
    margin-top: 0;
}

.detail-content .media-row .media-row__body p {
    margin-bottom: 0;
}

@media screen and (max-width: 600px) {
    body:not(.no-rp) .detail-content .media-row {
        gap: 12px;
    }

    body:not(.no-rp) .detail-content .media-row .media-row__img {
        flex-basis: 37%;
    }

    body:not(.no-rp) .detail-content .media-row .media-row__img::after {
        width: 22px;
        height: 22px;
        background-size: 12px 12px;
    }

    body:not(.no-rp) .detail-content .media-row .media-row__body h3 {
        margin-bottom: 0.6rem;
    }
}

/* ============================================================
   ライトボックス（タップで拡大・ピンチズーム対応）
   ============================================================ */

.frw-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 12, 20, 0.93);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.frw-lb[hidden] {
    display: none;
}

.frw-lb__stage {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.frw-lb__stage img {
    max-width: 92vw;
    max-height: 78vh;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.frw-lb__caption {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 10px 20px 2px;
    text-align: center;
}

.frw-lb__hint {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.1rem;
    padding: 0 20px calc(18px + env(safe-area-inset-bottom));
    text-align: center;
}

.frw-lb__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.frw-lb__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
