/* Info-Mods : carte logitheque a deux niveaux et image originale en lightbox. */
.phoenix-download-card .phoenix-card-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding: 10px 16px 12px;
    align-items: center;
}
.phoenix-download-card .phoenix-card-meta-time {
    grid-column: 1;
    min-width: 0;
    justify-self: start;
    font-size: 12px;
}
.phoenix-download-card .phoenix-card-meta-views {
    grid-column: 2;
    min-width: 0;
    justify-self: end;
    color: #506c88;
    font-size: 11px;
    white-space: nowrap;
}
.phoenix-download-card .phoenix-card-meta-comments {
    display: block;
    grid-column: 1 / -1;
    justify-self: stretch;
    padding-top: 8px;
    border-top: 1px solid #e6edf4;
    color: #355370;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: break-word;
}
html[data-theme="dark"] .phoenix-download-card .phoenix-card-meta-views,
html[data-theme="dark"] .phoenix-download-card .phoenix-card-meta-comments {
    color: #d1deeb;
}
html[data-theme="dark"] .phoenix-download-card .phoenix-card-meta-comments {
    border-top-color: #354a63;
}
@media (max-width: 420px) {
    .phoenix-download-card .phoenix-card-meta {
        grid-template-columns: 1fr;
    }
    .phoenix-download-card .phoenix-card-meta-time,
    .phoenix-download-card .phoenix-card-meta-views {
        grid-column: 1;
        justify-self: start;
    }
}

/* Vraie superposition plein ecran, hors de la largeur limitee des colonnes. */
dialog.phoenix-download-lightbox:not([open]) { display: none; }
dialog.phoenix-download-lightbox[open] {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 66px 20px 36px;
    border: none;
    border-radius: 0;
    overflow: auto;
    background: rgba(7, 15, 29, .96);
    color: #f4f8ff;
    box-shadow: none;
}
dialog.phoenix-download-lightbox::backdrop {
    background: rgba(6, 14, 28, .90);
}
.phoenix-download-lightbox-content {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
dialog.phoenix-download-lightbox img {
    box-sizing: border-box;
    display: block;
    width: auto;
    height: auto;
    max-width: min(95vw, 1800px);
    max-height: calc(100vh - 142px);
    max-height: calc(100dvh - 142px);
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: 0 8px 35px rgba(0,0,0,.35);
    object-fit: contain;
}
.phoenix-download-lightbox-close {
    position: fixed;
    z-index: 3;
    top: 18px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.36);
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    color: #fff;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}
.phoenix-download-lightbox-close:hover,
.phoenix-download-lightbox-close:focus-visible {
    background: #fff;
    color: #092443;
    outline: 3px solid #70bfff;
    outline-offset: 3px;
}
.phoenix-download-lightbox-hint {
    margin: 0;
    color: #d9e3f0;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}
@media (max-width: 620px) {
    dialog.phoenix-download-lightbox[open] { padding: 66px 12px 25px; }
    dialog.phoenix-download-lightbox img {
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 130px);
    }
    .phoenix-download-lightbox-close { top: 12px; right: 12px; }
}
