@value small-tablet-breakpoint-query from '~diem-docusaurus-components/src/variables.module.css';

@value small-tablet-breakpoint-max-query from '~diem-docusaurus-components/src/variables.module.css';

@value medium-tablet-breakpoint-max-query from '~diem-docusaurus-components/src/variables.module.css';

@value large-tablet-breakpoint-query from '~diem-docusaurus-components/src/variables.module.css';

@value large-desktop-breakpoint-max-query from '~diem-docusaurus-components/src/variables.module.css';

/*
 * The nature of this component is that, due to how it is designed,
 * it is very fragile. For this reason, we've added a couple of extra
 * breakpoints for more precise styling
 */
@value custom-bp-small: 900px;

@value custom-bp-large: 1200px;

.grid {
    flex-grow: 1 !important;
    display: grid !important;
}

.leftTop {
    padding: 2rem !important;
}

.leftBottom {
    padding: 0 2rem 2rem 2rem !important;
    display: block !important;
}

.arrowHolder {
    border-radius: 9999px !important;
    align-items: center !important;
    display: flex !important;
}

.ctaTop {
    color: var(--brand-color);
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.imgHolder {
    flex-shrink: 0 !important;
    width: 33.333333% !important;
}

.imgHolder img {
    object-fit: cover !important;
    max-width: 100%;
    max-height: 500px;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: block;
    vertical-align: middle;
}

.title {
    line-height: 1.25 !important;
    font-weight: 500 !important;
    font-size: 1.125rem !important;
    margin-top: 0.75rem !important;
}

.copy {
    margin-top: 0.5rem !important;
}

.root {
    --root-horizontal-padding: 60px;
    --content-width: 231px;
    --width-variant: 100vw;
    box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.1);
    margin: 60px 0;
    display: flex !important;
    align-items: stretch !important;
}

.root img {
    max-width: 100%;
    max-height: 500px;
}

.cta, .cta:hover {
    align-items: center;
    display: flex;
    transition: .2s;
    text-decoration: inherit;
    color: inherit;
    background-color: inherit;
}

.cta:hover .arrow {
    background-color: white;
    border: 1px solid var(--brand-color);
}

.cta:hover g {
    stroke: var(--brand-color);
}

.arrow {
    --size: 53px;
    align-items: center;
    background-color: var(--brand-color);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    width: var(--size);
    height: var(--size);
}


@media (max-width: calc(custom-bp-small - 1px)) {
    .root {
        flex-direction: column;
    }

    .imgHolder {
        width: 100% !important;
    }
}

html[data-theme="dark"] .root {
    background-color: var(--default-background-color);
}
