/* Shared fullscreen card-image viewer -- see Pages/Shared/_CardImageViewer.cshtml. Loaded
   globally (via _Layout.cshtml) since the viewer itself is injected once, sitewide, and its
   eye-icon trigger button can appear on any page. Flip mechanics are NOT defined here -- they
   come from binder-spread.css's canonical .ce-mobile-sheet-art/.ce-mobile-card-front/-back/
   .is-flipped rules, which any page using this viewer must already load (every page that renders
   a .cd-eye-btn trigger today also loads binder-spread.css for its own card art). */

.cd-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-image-viewer[hidden] {
    display: none;
}

.cd-image-viewer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(3, 7, 14, 0.85);
    cursor: pointer;
}

.cd-image-viewer-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: min(92vw, 594px);
    padding: 20px;
}

.cd-image-viewer-art {
    width: 100%;
    max-width: 513px;
    aspect-ratio: 2.5 / 3.5;
    border-radius: 16px;
    border: 1px solid rgba(212, 168, 83, 0.32);
    background: #080d16;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.cd-image-viewer-art img {
    border-radius: 16px;
}

.cd-image-viewer-close {
    position: absolute;
    top: -46px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(10, 15, 26, 0.85);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.cd-image-viewer-caption {
    color: #f5f3ed;
    font-size: 0.92rem;
    font-weight: 900;
    text-align: center;
}

.cd-image-viewer-flip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(212, 168, 83, 0.42);
    border-radius: 999px;
    background: rgba(3, 7, 14, 0.78);
    color: #f4cf80;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 950;
    cursor: pointer;
}

.cd-image-viewer-flip svg {
    width: 16px;
    height: 16px;
}

.cd-eye-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(3, 7, 14, 0.72);
    color: #fff;
    padding: 0;
    cursor: pointer;
}

.cd-eye-btn svg {
    width: 15px;
    height: 15px;
}
