.c--modal-a {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: grid;
    place-items: center;

    &--is-open {
        opacity: 1;
        pointer-events: auto;
    }

    &--is-expanded & {
        &__item {
            max-width: 100%;
            width: 100%;
            max-height: 100vh;
            max-height: 100dvh;
            height: 100dvh;
            border-radius: 0;
        }
    }

    &__overlay {
        position: absolute;
        inset: 0;
        background: transparent;
    }

    &__item {
        position: relative;
        background-color: #fff;
        padding: 1.5rem;
        border-radius: 8px;
        max-width: 500px;
        width: 90%;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        text-align: left;
        max-height: 80vh;
        overflow: auto;
    }

    &__item h2 {
        margin-top: 0;
    }

    &__item button[data-modal-close] {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        font-size: 0.5rem;
        cursor: pointer;
        color: #666;

        &:hover {
            color: #000;
        }
    }

    &__item button[data-modal-expand] {
        position: absolute;
        top: 10px;
        right: 40px;
        background: none;
        border: none;
        font-size: 0.5rem;
        cursor: pointer;
        color: #666;

        &:hover {
            color: #000;
        }
    }
}

.c--btn-a {
    background: grey;
    display: inline-block;
    padding: 5px 10px;
    color: white;
    text-decoration: none;
    &:hover {
        background: darkgrey;
    }
}
