.wp-block-acf-resource-download {
    align-items: center;
    background-clip: padding-box;
    border: 1px solid transparent;
    border-radius: 0.875rem;
    color: var(--wp--preset--color--primary);
    display: flex;
    justify-content: center;
    min-height: 10rem;
    position: relative;
    transition: all 0.25s ease-out;
    transition-property: background-color, color;

    &::before {
        background-image: var(--wp--preset--gradient--ypn) !important;
        border-radius: 0.875rem;
        bottom: 0;
        content: '';
        left: -1px;
        position: absolute;
        right: -1px;
        top: -1px;
        z-index: -1;
    }
}

.wp-block-resource-download__image {
    border-radius: 0.8rem;
    height: 100%;
    margin-block: 1px;
    object-fit: contain;
    width: 100%;
}

.wp-block-resource-download__thumbnail {
    align-items: center;
    border-radius: 0.8rem;
    display: flex;
    height: 100%;
    justify-content: center;
    margin: 1px;
    position: relative;
    width: 100%;
}

.wp-block-resource-download__link {
    align-items: center;
    display: flex;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.wp-block-resource-download__buttons {
    align-items: center;
    border-radius: 0.8rem;
    bottom: 1px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    justify-content: center;
    left: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 0.25s ease-out;
    width: 100%;
    z-index: 1;

    &:focus-within,
    &:hover {
        opacity: 1;
    }

    &::before {
        background-image: linear-gradient(0deg, black, transparent);
        border-radius: inherit;
        bottom: inherit;
        content: '';
        height: inherit;
        left: inherit;
        opacity: 1;
        position: inherit;
        width: inherit;
    }
}

.wp-block-resource-download__button {
    background-clip: padding-box;
    border: 1px solid transparent;
    border-radius: 1.25rem;
    box-sizing: border-box;
    display: inline-flex;
    gap: 0.5rem;
    min-width: 9.3rem;
    padding: 0.5rem 0.875rem 0.5rem 1rem !important;
    position: relative;
    text-align: center;
    text-decoration-color: transparent !important;
    z-index: 1;

    &::after,
    &::before {
        content: '';
        position: absolute;
        z-index: -1;
    }

    &::before {
        background-image: var(--wp--preset--gradient--ypn) !important;
        border-radius: 1.25rem;
        bottom: -1px;
        left: -1px;
        right: -1px;
        top: -1px;
    }

    &::after {
        background-color: var(--wp--preset--color--base);
        border-radius: 1.2rem;
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
    }
}

.resource-button-download-image-left,
.resource-button-download-image-right {
    margin-block-start: 4px;
}

.resource-button-download-image-left {
    height: 62.5%;
    padding-inline-start: 0.3rem;
}

.resource-button-download-image-right {
    height: 67.5%;
}
