.focused {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;

    position: fixed;
    top: 0;
    left: 0;
    transform: none;

    z-index: 1050;
    overflow: auto;

    background-color: white;
    border-radius: 0;          /* remove rounded corners */
    box-shadow: none;          /* optional: remove shadow */

    transition: all 0.4s ease;
}

/* Default stays 822px from inline style */

/* Fullscreen ONLY when focused */
.card.focused {
    width: 100vw;
    height: 100vh !important;     /* overrides inline height */
    max-width: none;
    max-height: none;

    position: fixed;
    top: 0;
    left: 0;
    transform: none;

    z-index: 1050;
    background: white;
    border-radius: 0;
    box-shadow: none;

    overflow: hidden;             /* prevents double scroll */
    margin: 0;
}

/* Overlay style */
.focused_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black background */
    z-index: 1049; /* Below the card but above other content */
    display: none; /* Keep it hidden initially */
    opacity: 0; /* Start with no opacity */
    transition: opacity 0.3s ease, display 0s 0.3s; /* Transition for opacity and delay hiding */
}

/* When active, the overlay becomes visible */
.focused_overlay.active {
    display: block; /* Only show overlay when active */
    opacity: 1;
    transition: opacity 0.3s ease; /* Transition for opacity */
}