/* PageLayer's phone breakpoint. Tablet and desktop retain their existing styles. */
@media (max-width: 500px) {
    .p-bs62216,
    :is(.p-bs62216, .p-slt8293, .p-ijn376, .p-sa65099, .p-yo22362, .p-eun3385, .p-bwt9132, .p-1y26306) {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }
    .p-bs62216 { padding-top: 28px !important; padding-bottom: 8px !important; }
    .p-ovn9092, .p-ovn9092 .textwidget, .p-ovn9092 .textwidget * {
        font-size: clamp(26px, 7vw, 32px) !important;
        line-height: 1.04 !important;
        letter-spacing: -0.6px !important;
    }
    .p-bse647, .p-bse647 .textwidget, .p-bse647 .textwidget * {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    :is(.p-bs62216, .p-slt8293, .p-ijn376, .p-sa65099, .p-yo22362, .p-eun3385, .p-bwt9132, .p-1y26306) > .pagelayer-row-holder:has(> .clickable-project-card) {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .clickable-project-card.clickable-project-card {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        border-radius: 14px !important;
        height: auto !important;
    }
    .clickable-project-card.clickable-project-card > .pagelayer-col-holder {
        width: 100% !important;
        padding-bottom: 18px !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-image img {
        display: block;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        object-fit: contain !important;
    }
    .clickable-project-card.clickable-project-card > .pagelayer-col-holder > .pagelayer-wp_text {
        margin: 8px 5px 6px !important;
        font-size: 17px !important;
        line-height: 1.05 !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-inner_row { width: 100% !important; }
    .clickable-project-card.clickable-project-card .pagelayer-wp_text { overflow-wrap: anywhere; }
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-wp_text {
        margin: 0 5px !important;
        font-size: 15px !important;
        line-height: 1.55 !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-row-holder:has(> .pagelayer-col .pagelayer-icon) {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-col:has(> .pagelayer-col-holder > .pagelayer-icon) {
        width: 100% !important;
        flex: 0 0 auto !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-col:has(> .pagelayer-col-holder > .pagelayer-wp_text) {
        width: 100% !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-icon { margin: 12px 5px 0 !important;
        text-align: left !important; }
    .clickable-project-card.clickable-project-card .pagelayer-icon-holder { width: 44px !important; height: 44px !important; }
    :is(.p-bs62216, .p-slt8293, .p-ijn376, .p-sa65099, .p-yo22362, .p-eun3385, .p-bwt9132, .p-1y26306):has(.clickable-project-card) {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
}
@media (max-width: 500px) {
    .p-3wo7212, .p-3wo7212 .textwidget, .p-3wo7212 .textwidget *,
    .p-hup7624, .p-hup7624 .textwidget, .p-hup7624 .textwidget * {
        font-size: 25px !important;
        line-height: 1.25 !important;
        letter-spacing: 2px !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-image {
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
    }
}


@media (max-width: 500px) {
    .clickable-project-card.clickable-project-card > .pagelayer-col-holder > .pagelayer-wp_text,
    .clickable-project-card.clickable-project-card > .pagelayer-col-holder > .pagelayer-wp_text * {
        font-size: 17px !important;
        line-height: 1.05 !important;
        white-space: normal !important;
        letter-spacing: 0 !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }
}




/* Let the description grow while the arrow stays at the card's bottom. */
@media (max-width: 500px) {
    .clickable-project-card.clickable-project-card > .pagelayer-col-holder {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        box-sizing: border-box;
    }
    .clickable-project-card.clickable-project-card .pagelayer-inner_row,
    .clickable-project-card.clickable-project-card .pagelayer-inner_row > .pagelayer-row-holder,
    .clickable-project-card.clickable-project-card .pagelayer-col-holder:has(> .pagelayer-inner_row) {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 0 auto !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-col:has(> .pagelayer-col-holder > .pagelayer-inner_row),
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-col:has(> .pagelayer-col-holder > .pagelayer-wp_text) {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 0 auto !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-col:has(> .pagelayer-col-holder > .pagelayer-icon) {
        margin-top: auto !important;
    }
}
/* PageLayer inserts element wrappers in the live editor. */
@media (max-width: 500px) {
    :is(.p-slt8293, .p-ijn376, .p-sa65099, .p-yo22362, .p-bwt9132).pagelayer-row > .pagelayer-row-holder {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        align-items: stretch !important;
        gap: 5px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .pagelayer-ele-wrap.pagelayer-col.pagelayer-col:has(> .clickable-project-card) {
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .clickable-project-card.clickable-project-card {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 0 auto !important;
    }
    .clickable-project-card.clickable-project-card > .pagelayer-col-holder {
        height: auto !important;
        flex: 1 0 auto !important;
    }
    .clickable-project-card.clickable-project-card > .pagelayer-col-holder > .pagelayer-ele-wrap:has(> .pagelayer-wp_text) > .pagelayer-wp_text {
        margin: 8px 5px 6px !important;
    }
    .clickable-project-card.clickable-project-card > .pagelayer-col-holder > .pagelayer-ele-wrap:has(> .pagelayer-wp_text) .pagelayer-wp_text,
    .clickable-project-card.clickable-project-card > .pagelayer-col-holder > .pagelayer-ele-wrap:has(> .pagelayer-wp_text) .pagelayer-wp_text * {
        font-size: 17px !important;
        line-height: 1.05 !important;
        white-space: normal !important;
        letter-spacing: 0 !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-ele-wrap:has(> .pagelayer-inner_row),
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-col:not(:has(.pagelayer-icon)),
    .clickable-project-card.clickable-project-card .pagelayer-col-holder:has(.pagelayer-inner_row) {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 0 auto !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-col {
        width: 100% !important;
        max-width: 100% !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-row-holder {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-ele-wrap.pagelayer-col:has(.pagelayer-icon) {
        display: flex !important;
        flex-direction: column !important;
        flex: 0 0 auto !important;
        margin-top: auto !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-col:has(> .pagelayer-col-holder > .pagelayer-ele-wrap > .pagelayer-icon) {
        flex: 0 0 auto !important;
        margin-top: auto !important;
    }
}


@media (max-width: 500px) {
    .p-slt8293.pagelayer-row > .pagelayer-row-holder {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .clickable-project-card.clickable-project-card,
    .pagelayer-ele-wrap.pagelayer-col.pagelayer-col:has(> .clickable-project-card) {
        min-width: 0 !important;
        max-width: 100% !important;
    }
}



/* Tablet card spacing, including the PageLayer live preview. */
@media (min-width: 501px) and (max-width: 768px) {
    :is(.p-slt8293, .p-ijn376, .p-sa65099, .p-yo22362, .p-bwt9132).pagelayer-row.pagelayer-row > .pagelayer-row-holder {
        column-gap: 5px !important;
    }
}
/* Reserve enough tablet column width for the 52px arrow control. */
@media (min-width: 501px) and (max-width: 768px) {
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-col:has(> .pagelayer-col-holder > .pagelayer-icon),
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-col:has(> .pagelayer-col-holder > .pagelayer-ele-wrap > .pagelayer-icon),
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-ele-wrap.pagelayer-col:has(> .pagelayer-col > .pagelayer-col-holder > .pagelayer-ele-wrap > .pagelayer-icon) {
        width: 60px !important;
        max-width: 60px !important;
        flex: 0 0 60px !important;
        min-width: 0 !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-col:has(> .pagelayer-col-holder > .pagelayer-wp_text),
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-col:has(> .pagelayer-col-holder > .pagelayer-ele-wrap > .pagelayer-wp_text),
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-ele-wrap.pagelayer-col:has(> .pagelayer-col > .pagelayer-col-holder > .pagelayer-ele-wrap > .pagelayer-wp_text) {
        width: auto !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-inner_row .pagelayer-row-holder {
        flex-wrap: nowrap !important;
    }
    .clickable-project-card.clickable-project-card .pagelayer-icon {
        margin-left: 4px !important;
        margin-right: 4px !important;
        text-align: center !important;
    }
}
