#crd-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.7s ease;
    cursor: pointer;
    overflow: hidden;
}

#crd-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.9s ease;
    max-width: 90vw;
}

#crd-img {
    display: block;
    margin: 0 auto;
    max-height: 58vh;
    max-width: 100%;
    object-fit: contain;
}

#crd-text {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fff;
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.15;
}

#crd-line {
    font-size: clamp(16px, 5vw, 50px);
    font-weight: 400;
    letter-spacing: 0.02em;
}

#crd-overlay.crd-active {
    opacity: 1;
}

#crd-overlay.crd-content-in #crd-body {
    opacity: 1;
}
