.sp-image-container {
    display: none;
    margin-bottom: 40px;
    margin-left: 20px;
}

.sp-image {
    display: inline-block;
    width: 95%;
    max-width: 1024px;
    aspect-ratio: 1 / 1;
    position: relative;

    &[data-ratio="1/1"] {
        aspect-ratio: 1 / 1;
    }
    &[data-ratio="4/5"] {
        aspect-ratio: 4 / 5;
    }

    .sp-image-inner {

    }

    .background-image {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .attendee-info {
        line-height: 1.2;
        @media (max-width: 768px) {
            line-height: 1;
        }


        .photo {
            width: 44%;
            position: absolute;
            left: 28%;
            top: 30.8%;
            z-index: 10;
            background: white;
            aspect-ratio: 4.4 / 4.65;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }
        }

        .name, .label {
            width: 44%;
            position: absolute;
            left: 28%;
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
            background: white;

        }
        .name {
            z-index: 4;
            bottom: 13.2%;
            span {
                font-size: 200%;
                font-weight: bold;
                font-size: clamp(12px, 3.125vw, 210%);
            }
        }
        .label {
            z-index: 3;
            height: 4%;
            bottom: 17%;
            span {
                font-size: 180%;
                font-weight:normal;
                font-size: clamp(11px, 2.2vw, 180%);
            }
        }
    }
    &.bigger { /* for testing other sizes */
        width: 1600px;
        height: 1600px;

        .name {
            span {
                font-size: 310%;
            }
        }
        .label {
            span {
                font-size: 250%;
            }
        }
    }
}


button.spimg-button {
    margin-top: 20px;
}

.spimg-button-container {
    display: flex;
    align-items: center;
    margin-top: 20px;

    .button {
        margin-top: 0;
    }

    .spimg-status {
        .button {
            margin-left: -8px;
        }
    }
}