.imagebox-grid-expand {    
    max-width: 770px;
    padding: var(--space-8) 15px;
    margin: 0 auto;
}

.imagebox-grid-expand .categories-blocks-container {
    padding-bottom: 1rem;
}

.imagebox-grid-expand .block-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.imagebox-grid-expand img {
    padding: 0;
    margin: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

.imagebox-grid-expand .global-block .block-tag {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 11;
    padding: 10px 20px;
    background: var(--blue);
}

.imagebox-grid-expand .global-block .block-tag p {
    letter-spacing: 2px;
    font-family: var(--sofia);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0;
    text-transform: lowercase;
}

.imagebox-grid-expand .global-block.has-tag .block-inner {
    padding-top: 18px;
}

.imagebox-grid-expand .global-block.has-tag .block-tag {
    display: block;
}

.imagebox-grid-expand .block-media { position: relative; }

.imagebox-grid-expand .block-image::before,
.imagebox-grid-expand .block-image::after {
    position: absolute;
    bottom: 0;
    content: "";
    height: 12px;
    width: 50%;
    border-bottom: 12px solid var(--grey-light);
}

.imagebox-grid-expand .block-image::before {
    left: 0;
    border-right: 12px solid transparent;
}

.imagebox-grid-expand .block-image::after {
    right: 0;
    border-left: 12px solid transparent;
}

.imagebox-grid-expand .more-categories-btn,
.imagebox-grid-expand .more-categories-btn .btn-icon {
    display: none;
}

.imagebox-grid-expand [data-hidden-items] {
    display: none;
}

.imagebox-grid-expand .shownItems {
    margin-bottom: 12px;
}

.imagebox-grid-expand .more-categories-btn {
    text-align: center;
}

.imagebox-grid-expand .more-categories-btn .btn {
    margin: 0 auto;
    padding: 11px 25px 9px;
    color: var(--grey-dark);
    font-family: var(--sofia);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: 0.7px;
    line-height: 1.1;
    text-transform: lowercase;
    border-radius: 4px;
    border: 1px solid var(--grey-dark);
    background: none;
}

.imagebox-grid-expand .more-categories-btn .btn:hover,
.imagebox-grid-expand .more-categories-btn .btn:focus,
.imagebox-grid-expand .more-categories-btn .btn:active {
    color: var(--grey-dark);
    border-color: var(--grey-dark);
}

.imagebox-grid-expand .more-categories-btn span.open,
.imagebox-grid-expand .more-categories-btn span.open > span {
    display: inline-block;
}

.imagebox-grid-expand .row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 6px;
    align-items: stretch;
    justify-content: flex-start;
}

.imagebox-grid-expand[data-slide-type="square"] .row {
    justify-content: center;
    flex-wrap: nowrap;
}

.imagebox-grid-expand .row.row-nopad {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0;
}

.imagebox-grid-expand .col {
    flex: 1 1 auto;
}

.imagebox-grid-expand .col .item {
    position: relative;
    height: 100%;
}

.imagebox-grid-expand .block-title {
    margin-bottom: 7px;
    flex-basis: 15%;
}

.imagebox-grid-expand .slide-square .block-title {
    text-align: center;
    margin: 0 auto;
}

.imagebox-grid-expand .block-title h3 {
    font-family: var(--georgia);
    font-size: var(--text-xl);
    font-weight: normal;
    line-height: 1.2;
    color: var(--grey-dark);
    text-decoration: none;
}

.imagebox-grid-expand a,
.imagebox-grid-expand a:hover,
.imagebox-grid-expand a:focus {
    text-decoration: none;
    border: 0;
}

.imagebox-grid-expand .block-content {
    padding: 10px 25px 20px;
    width: 100%;
}

.imagebox-grid-expand .block-content .block-description {
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: normal;
    line-height: 1.4;
    color: var(--grey-dark);
}

.imagebox-grid-expand .block-content {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.imagebox-grid-expand.theme-light-white .block-content {
    background-color: var(--grey-light);
}

.imagebox-grid-expand[data-slide-type="tall"] .block-content {
    height: 100%;
}

.imagebox-grid-expand .block-title { flex: 1; }
.imagebox-grid-expand[data-slide-type="square"] .block-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagebox-grid-expand .block-btn,
.imagebox-grid-expand .block-text {
    flex: 1 0 auto;
}

.imagebox-grid-expand .block-btn {
    justify-self: flex-end;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
}

@media (max-width: 640px) {
    .imagebox-grid-expand[data-slide-type="square"] .row {
        flex-direction: column;
    }
    
    .imagebox-grid-expand[data-slide-type="square"] .row .col {
        flex-basis: auto;
        max-width: 100%;
    }
    
    .imagebox-grid-expand[data-slide-type="square"] .row .col .block-inner {
        display: flex;
        flex-direction: row;
    }
    
    .imagebox-grid-expand[data-slide-type="square"] .row .col .block-inner .block-media {
        width: 40%;
        min-width: 40%;
    }
    
    .imagebox-grid-expand[data-slide-type="square"] .block-image::before,
    .imagebox-grid-expand[data-slide-type="square"] .block-image::after {
        position: absolute;
        left: 50%;
        content: "";
        height: 50%;
        border: none;
        border-right: 12px solid var(--grey-light);
    }

    .imagebox-grid-expand[data-slide-type="square"] .block-image::before {
        top: 0;
        border-bottom: 12px solid transparent;
    }

    .imagebox-grid-expand[data-slide-type="square"] .block-image::after {
        bottom: 0;
        border-top: 12px solid transparent;
    }
}

@media (min-width: 641px) {
    .imagebox-grid-expand .row .col {
        flex-basis: calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
    
    .imagebox-grid-expand[data-slide-type="square"] .row {
        flex-wrap: wrap;
    }
    
    .imagebox-grid-expand[data-slide-type="square"] .row .col {
        flex-basis: calc(33% - 8px);
        max-width: calc(33% - 8px);
    }
}

@media (min-width: 1025px) {
    .imagebox-grid-expand {
        max-width: var(--width-content);
    }
    
    .imagebox-grid-expand[data-slide-type="square"] .row .col,
    .imagebox-grid-expand .row .col {
        flex-basis: calc(25% - 5px);
        max-width: calc(25% - 5px);
    }
}