.image-x-box {
    width: 100%;
    max-width: 17.5rem;
    aspect-ratio: 1 / 1;

    border: 2px solid var(--border-accent);
    position: relative;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease;
    margin: 0 auto;

    &:hover {
        transform: translateY(-5px) rotate(1deg);
    }

    .image-x-line1,
    .image-x-line2 {
        position: absolute;
        top: 50%;
        left: -14%;
        width: 128%;
        height: 1px;
        background-color: var(--border-color);
    }
    .image-x-line1 {
        transform: rotate(45deg);
    }
    .image-x-line2 {
        transform: rotate(-45deg);
    }

    .image-x-fallback {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    img {
        width: 100%;
        height: auto;
        max-width: 17.5rem;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        display: block;

        &:not([src]) {
            display: none;
        }
    }
}
