/*---*\
Portfolio
\*---*/

.portfolio {
    --portfolio-transition-fast: 0.35s;
    --portfolio-transition-ease: cubic-bezier(0.25, 1, 0.3, 1);
}

.portfolio__header {
    margin: 0 auto;
    text-align: center;
}

.portfolio__header.wysiwyg:has(+ .portfolio__cards) {
    margin-bottom: 32px;
}

.portfolio__header + .portfolio__cards {
    margin-top: 32px;
}

.portfolio__tabs {
    margin-top: 32px;
}

.portfolio__filter-row {
    border: 1px solid var(--color-surface-muted);
    border-radius: 8px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    max-width: 331px;
    padding: 4px 4px 4px 16px;
}

.portfolio__filter-row label {
    color: var(--color-paragraph);
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: 700;
    line-height: var(--line-height-body);
    margin: 0;
    white-space: nowrap;
}

.portfolio__filter-select {
    width: 190px;
}

.portfolio__filter-row .choices {
    margin-bottom: 0;
    width: 190px;
}

.portfolio__filter-row .choices.is-open .choices__inner {
    border-radius: 4px;
}

.portfolio__filter-row .choices::before {
    content: none;
}

.portfolio__filter-row .choices__inner {
    align-items: center;
    background-color: var(--color-secondary);
    border: 0;
    border-radius: 4px;
    color: var(--color-text-inverse);
    display: flex;
    min-height: 46px;
    padding: 0 44px 0 20px;
}

.portfolio__filter-row .choices[data-type*='select-one'] .choices__inner {
    padding-bottom: 0;
}

.portfolio__filter-row .choices[data-type*='select-one']::after {
    color: var(--color-text-inverse);
    right: 17px;
}

.portfolio__filter-row .choices[data-type*='select-one'].is-open::after {
    color: var(--color-text-inverse);
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
    margin-top: -6px;
}

.portfolio__filter-row .choices__list--single {
    padding: 0;
}

.portfolio__filter-row .choices__list--single .choices__item {
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text-inverse);
    font-family: var(--font-button);
    font-size: var(--button-font-size);
    font-weight: var(--font-weight-button);
    line-height: var(--line-height-button);
}

.portfolio__filter-row .choices__list--dropdown .choices__item--selectable,
.portfolio__filter-row .choices__list[aria-expanded] .choices__item--selectable {
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}

.portfolio__filter-row:has(.choices__list--dropdown.is-active) {
    border-radius: 8px 8px 0 0;
}

/* Widen the dropdown to match .portfolio__filter-row's own width (border + padding),
   anchored to the select's right edge (which lines up with the row's inner right edge). */
.portfolio__filter-row .choices__list--dropdown {
    border: 1px solid var(--color-surface-muted);
    border-top: none;
    top: calc(100% + 5px);
    right: -5px;
    width: 331px;
}

.portfolio__filter-row .choices__item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    font-size: 30px;
    vertical-align: middle;
}

.portfolio__filter-row .choices__item-icon--svg {
    display: block;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    fill: currentColor;
}

.portfolio__filter-row .choices__item-icon--svg[style*="--icon-url"] {
    background-color: currentColor;
    -webkit-mask: var(--icon-url) center / contain no-repeat;
    mask: var(--icon-url) center / contain no-repeat;
}

.portfolio__filter-row .choices__item-icon--svg:not([style*="--icon-url"]) {
    background-color: transparent;
}

.portfolio__tab-list {
    display: none;
}

.portfolio__tab-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portfolio__tab-list li::before {
    content: none;
}

.portfolio__filter-select:focus-visible,
.portfolio__card-link:focus-visible,
.portfolio__type:focus-visible,
.portfolio__location:focus-visible,
.portfolio__arrow:focus-visible,
.portfolio .tab-accordion__tab:focus-visible {
    border: 0;
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.portfolio__filter-row .choices.is-focused .choices__inner {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.portfolio .tab-accordion__panel {
    margin-top: 0;
}

.portfolio .tab-accordion__panel:not(.is-active) {
    display: none;
}

.portfolio .tab-accordion__panel__content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none;
    padding: 32px 0 0;
}

/* Panel CTAs render inside this overflow:hidden panel; drop the global button lift/shadow so it is not clipped. */
.portfolio .tab-accordion__panel__content .btn:hover,
.portfolio .tab-accordion__panel__content .btn:focus-visible {
    box-shadow: none;
    transform: none;
}

.portfolio .tab-accordion__panel.is-active .tab-accordion__panel__content {
    -webkit-animation: portfolioPanelIn var(--portfolio-transition-fast) var(--portfolio-transition-ease);
            animation: portfolioPanelIn var(--portfolio-transition-fast) var(--portfolio-transition-ease);
}

@-webkit-keyframes portfolioPanelIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(12px);
                transform: translateY(12px);
    }

    to {
        opacity: 1;
        -webkit-transform: none;
                transform: none;
    }
}

@keyframes portfolioPanelIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(12px);
                transform: translateY(12px);
    }

    to {
        opacity: 1;
        -webkit-transform: none;
                transform: none;
    }
}

@media (max-width: 1199px) {
    @-webkit-keyframes portfolioPanelIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes portfolioPanelIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio .tab-accordion__panel.is-active .tab-accordion__panel__content {
        -webkit-animation: none;
                animation: none;
    }
}

.portfolio__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.portfolio__card {
    background-color: var(--color-surface-light);
    border-radius: 32px;
    min-height: 445px;
    padding: 16px 16px 24px;
    position: relative;
}

.bg-light-blue .portfolio__card {
    background-color: var(--color-surface-light-alt);
}

.portfolio__card-link {
    position: static;
}

.portfolio__card-link::after {
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

.portfolio__cards:not(.portfolio__cards--slider) .portfolio__card {
    flex: 1 1 100%;
}

.portfolio__cards.portfolio__cards--slider {
    display: block;
    margin-left: -22px;
    margin-right: -22px;
}

.portfolio__cards.slider-has-preloader:not(.slick-initialized) {
    min-height: 445px;
    position: relative;
}

.portfolio__cards.slider-has-preloader:not(.slick-initialized) > .portfolio__card {
    display: none;
}

.portfolio__cards.slider-has-preloader:not(.slick-initialized)::before {
    border-color: transparent var(--color-secondary);
    z-index: 2;
}

.portfolio__cards.portfolio__cards--slider .slick-list {
    overflow: visible;
}

.portfolio__cards.portfolio__cards--slider .portfolio__card,
.portfolio__cards.portfolio__cards--slider .portfolio__card.slick-slide {
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0 16px;
    width: 328px;
}

/* Theme slick wraps cards in .slick-slide > div and sets width: 100% inline on the card */
.portfolio__cards.portfolio__cards--slider .slick-slide {
    width: 360px;
}

.portfolio__cards.portfolio__cards--slider .slick-slide .portfolio__card {
    display: block;
    max-width: none;
    /* Override slick variableWidth inline width: 100% on wrapped cards */
    width: 328px !important;
}

.portfolio__media {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.portfolio__media img {
    display: block;
    height: 267px;
    -o-object-fit: cover;
       object-fit: cover;
    width: 100%;
}

.portfolio__type {
    background-color: rgb(255 255 255 / 70%);
    border-radius: 8px;
    color: var(--color-secondary);
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: var(--font-weight-subheading);
    line-height: var(--line-height-heading);
    padding: 8px 12px;
    position: absolute;
    right: 12px;
    text-decoration: none;
    top: 12px;
    z-index: 2;
}

a.portfolio__type:hover,
a.portfolio__type:focus-visible {
    color: var(--color-primary);
    background-color: var(--color-surface-muted);
}

.portfolio__tour-btn-container {
    align-items: end;
    background-color: var(--color-surface-light);
    border-radius: 16px 0 16px 0;
    display: flex;
    justify-content: end;
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 16px 0 0 16px;
}

.portfolio__tour-btn-container::before {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M32 8.72727C32 21.5804 21.5804 32 8.72727 32H0H32V0V8.72727Z" fill="%23F3F6FB"/></svg>');
    position: absolute;
    right: 0;
    top: -32px;
    width: 32px;
    height: 32px;
}

.portfolio__tour-btn-container::after {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M32 8.72727C32 21.5804 21.5804 32 8.72727 32H0H32V0V8.72727Z" fill="%23F3F6FB"/></svg>');
    position: absolute;
    left: -32px;
    bottom: 0;
    width: 32px;
    height: 32px;
}

.bg-light-blue .portfolio__tour-btn-container {
    background-color: var(--color-surface-light-alt);
}

.bg-light-blue .portfolio__tour-btn-container::before {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M32 8.72727C32 21.5804 21.5804 32 8.72727 32H0H32V0V8.72727Z" fill="%23E5EAF3"/></svg>');
}

.bg-light-blue .portfolio__tour-btn-container::after {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M32 8.72727C32 21.5804 21.5804 32 8.72727 32H0H32V0V8.72727Z" fill="%23E5EAF3"/></svg>');
}

.portfolio__tour-btn {
    align-items: center;
    background-color: var(--color-secondary);
    border-radius: 4px 4px 16px 4px;
    color: var(--color-text-inverse);
    display: inline-flex;
    font-family: var(--font-button);
    font-size: var(--button-font-size);
    font-weight: var(--font-weight-button);
    gap: 8px;
    line-height: var(--line-height-button);
    padding: 14px 24px;
    text-decoration: none;
}

.portfolio__tour-btn .icon-btn-arrow-right::before {
    color: currentColor;
}

.portfolio__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.portfolio__location {
    align-items: center;
    background-color: var(--color-surface-light-alt);
    border-radius: 8px;
    color: var(--color-secondary);
    display: inline-flex;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: var(--font-weight-subheading);
    gap: 4px;
    line-height: var(--line-height-heading);
    padding: 8px 12px;
    position: relative;
    text-decoration: none;
    transition: background-color var(--portfolio-transition-fast) var(--portfolio-transition-ease);
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    z-index: 2;
}

.bg-light-blue .portfolio__location {
    background-color: var(--color-surface-light);
}

.portfolio__location:hover,
.portfolio__location:focus-visible {
    background-color: var(--color-surface-muted);
}

.portfolio__location .icon-location::before {
    color: currentColor;
    font-size: 14px;
}

.portfolio__body h3 {
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: var(--font-size-h5);
    font-weight: var(--font-weight-heading);
    line-height: var(--line-height-heading);
    margin: 0;
}

.portfolio__pagination {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
    max-width: 331px;
    width: 100%;
}

.portfolio__pagination--progress {
    max-width: 500px;
}

.portfolio .tab-accordion__panel__content .portfolio__pagination {
    margin-top: 32px;
}

.portfolio__arrow {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    height: 40px;
    padding: 0;
    position: relative;
    width: 40px;
    z-index: 2;
}

.portfolio__arrow svg path {
    fill: var(--color-secondary);
    transition: fill var(--portfolio-transition-fast) var(--portfolio-transition-ease);
}

.portfolio__arrow:hover svg path,
.portfolio__arrow:focus-visible svg path {
    fill: var(--border-color-soft);
}

.portfolio__dots {
    --portfolio-dots-progress: 0;
    --portfolio-dots-thumb-size: 25%;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.portfolio__dots .slick-dots {
    align-items: center;
    background-color: var(--color-surface-light-alt);
    border-radius: 50px;
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 1;
}

.portfolio__dots .slick-dots li {
    background-color: transparent;
    border-radius: 50px;
    display: flex;
    flex: 1 1 0;
    height: 8px;
    margin: 0;
    padding: 0;
    -webkit-transform-origin: center;
            transform-origin: center;
    transition: background-color var(--portfolio-transition-fast) var(--portfolio-transition-ease),
        opacity var(--portfolio-transition-fast) var(--portfolio-transition-ease),
        -webkit-transform var(--portfolio-transition-fast) var(--portfolio-transition-ease);
    transition: background-color var(--portfolio-transition-fast) var(--portfolio-transition-ease),
        transform var(--portfolio-transition-fast) var(--portfolio-transition-ease),
        opacity var(--portfolio-transition-fast) var(--portfolio-transition-ease);
    transition: background-color var(--portfolio-transition-fast) var(--portfolio-transition-ease),
        transform var(--portfolio-transition-fast) var(--portfolio-transition-ease),
        opacity var(--portfolio-transition-fast) var(--portfolio-transition-ease),
        -webkit-transform var(--portfolio-transition-fast) var(--portfolio-transition-ease);
    width: auto;
}

.portfolio__dots .slick-dots li.slick-active {
    background-color: var(--border-color-soft);
}

.portfolio__dots .slick-dots button {
    background: transparent;
    border: 0;
    display: block;
    font-size: 0;
    height: 8px;
    line-height: 0;
    padding: 0;
    width: 100%;
}

.portfolio__dots .slick-dots button::before {
    content: none;
}

.portfolio__dots--progress {
    background-color: var(--color-surface-light-alt);
    border-radius: 50px;
}

.portfolio__dots--progress::after {
    background-color: var(--border-color-soft);
    border-radius: 50px;
    content: "";
    height: 100%;
    left: calc(var(--portfolio-dots-progress) * (100% - var(--portfolio-dots-thumb-size)));
    pointer-events: none;
    position: absolute;
    top: 0;
    transition: left var(--portfolio-transition-fast) var(--portfolio-transition-ease);
    width: var(--portfolio-dots-thumb-size);
    z-index: 0;
}

.portfolio__dots--progress.is-dragging::after {
    transition: none;
}

.portfolio__dots--progress .slick-dots {
    background-color: transparent;
    gap: 0;
}

.portfolio__dots--progress .slick-dots li,
.portfolio__dots--progress .slick-dots li.slick-active {
    background-color: transparent;
}

.portfolio__footer {
    margin-top: 32px;
}

.portfolio__actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portfolio__actions .btn {
    margin: 0;
}

@media (min-width: 768px) {
    .portfolio .container {
        padding-left: 52px;
        padding-right: 52px;
    }

    .portfolio__header.wysiwyg:has(+ .portfolio__cards) {
        margin-bottom: 48px;
    }

    .portfolio__header + .portfolio__cards {
        margin-top: 48px;
    }

    .portfolio__filter-row {
        gap: 32px;
        max-width: 456px;
    }

    .portfolio__filter-row .choices__list--dropdown {
        width: 456px;
    }

    .portfolio__filter-select {
        width: 292px;
    }

    .portfolio__filter-row .choices {
        width: 292px;
    }

    .portfolio .tab-accordion__panel__content {
        padding-top: 48px;
    }

    .portfolio__cards {
        gap: 32px;
    }

    .portfolio__cards:not(.portfolio__cards--slider) .portfolio__card {
        flex: 1 1 calc(50% - 16px);
    }

    .portfolio__cards.portfolio__cards--slider .slick-slide .portfolio__card {
        width: 318px !important;
    }

    .portfolio__cards.portfolio__cards--slider .slick-slide {
        width: 350px;
    }

    .portfolio__cards.portfolio__cards--slider {
        margin-left: -52px;
        margin-right: -52px;
    }

    .portfolio__pagination {
        max-width: 436px;
    }

    .portfolio__pagination--progress {
        max-width: 600px;
    }

    .portfolio .tab-accordion__panel__content .portfolio__pagination {
        margin-top: 48px;
    }

    .portfolio__footer {
        margin-top: 32px;
    }

    .portfolio__actions {
        flex-direction: row;
        gap: 32px;
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .portfolio .container {
        padding-left: 0;
        padding-right: 0;
    }

    .portfolio__tabs {
        margin-top: 64px;
    }

    .portfolio__filter-row {
        display: none;
    }

    .portfolio__tab-list {
        border: 1px solid var(--color-surface-muted);
        border-radius: 8px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0 auto;
        width: 100%;
        max-width: -webkit-fit-content;
        max-width: -moz-fit-content;
        max-width: fit-content;
        padding: 4px;
    }

    .portfolio .tab-accordion__tab {
        align-items: center;
        background-color: transparent;
        border: 0;
        border-radius: 4px;
        color: var(--color-secondary);
        cursor: pointer;
        display: inline-flex;
        font-family: var(--font-button);
        font-size: var(--button-font-size);
        font-weight: 500;
        gap: 8px;
        line-height: 1;
        margin: 0;
        min-height: 46px;
        padding: 8px 20px;
        text-decoration: none;
        width: auto;
    }

    .portfolio .tab-accordion__tab:hover {
        background-color: var(--color-surface-light);
    }

    .portfolio .tab-accordion__tab i::before {
        color: currentColor;
        font-size: 20px;
    }

    .portfolio__tab-icon--svg {
        display: block;
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .portfolio__tab-icon--svg[style*="--icon-url"] {
        background-color: currentColor;
        -webkit-mask: var(--icon-url) center / contain no-repeat;
        mask: var(--icon-url) center / contain no-repeat;
    }

    .portfolio__tab-icon--svg:not([style*="--icon-url"]) {
        background-color: transparent;
    }

    .portfolio .tab-accordion__tab.is-active {
        background-color: var(--color-secondary);
        color: var(--color-text-inverse);
        font-weight: var(--font-weight-button);
    }

    /* Reserve the active (bold) width on every tab so switching tabs
       doesn't resize the label and nudge its neighbors. */
    .portfolio .tab-accordion__tab span {
        display: inline-flex;
        flex-direction: column;
    }

    .portfolio .tab-accordion__tab span::after {
        content: attr(data-label);
        font-weight: var(--font-weight-button);
        height: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
    }

    /* Mouse-click focus must not add the global 1px border (which eats
       into the padding and shifts the label). */
    .portfolio .tab-accordion__tab:focus:not(:focus-visible) {
        border: 0;
    }

    .portfolio .tab-accordion__panel__content {
        padding-top: 64px;
    }

    .portfolio__cards:not(.portfolio__cards--slider) .portfolio__card {
        min-height: 528px;
        flex: 1 1 calc(33.333% - 22px);
        max-width: 400px;
    }

    .portfolio__cards.portfolio__cards--slider .slick-slide .portfolio__card {
        min-height: 528px;
        width: 400px !important;
    }

    .portfolio__cards.portfolio__cards--slider .slick-slide {
        width: 432px;
    }

    .portfolio__tour-btn-container {
        opacity: 0;
        pointer-events: none;
        -webkit-transform: translateY(8px);
                transform: translateY(8px);
        transition: opacity var(--portfolio-transition-fast) var(--portfolio-transition-ease),
            -webkit-transform var(--portfolio-transition-fast) var(--portfolio-transition-ease);
        transition: opacity var(--portfolio-transition-fast) var(--portfolio-transition-ease),
            transform var(--portfolio-transition-fast) var(--portfolio-transition-ease);
        transition: opacity var(--portfolio-transition-fast) var(--portfolio-transition-ease),
            transform var(--portfolio-transition-fast) var(--portfolio-transition-ease),
            -webkit-transform var(--portfolio-transition-fast) var(--portfolio-transition-ease);
    }

    .portfolio__card:hover .portfolio__tour-btn-container,
    .portfolio__card:focus-within .portfolio__tour-btn-container {
        opacity: 1;
        pointer-events: auto;
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }

    .portfolio__pagination {
        gap: 32px;
        max-width: 436px;
    }

    .portfolio__pagination--progress {
        max-width: 700px;
    }

    .portfolio .tab-accordion__panel__content .portfolio__pagination {
        margin-top: 32px;
    }

    .portfolio__media img {
        height: 344px;
    }

    .portfolio__cards.portfolio__cards--slider .slick-list {
        margin-left: -120px;
        margin-right: -120px;
    }

    .portfolio__cards.portfolio__cards--slider {
        margin-left: 0;
        margin-right: 0;
    }

    .portfolio .tab-accordion__panel__content .portfolio__pagination {
        margin-top: 64px;
    }

    .portfolio__footer {
        margin-top: 32px;
    }
}

@media (min-width: 1200px) {
    .portfolio__header.wysiwyg:has(+ .portfolio__cards) {
        margin-bottom: 64px;
    }

    .portfolio__header + .portfolio__cards {
        margin-top: 64px;
    }
}

.portfolio--grid .portfolio__cards {
    justify-content: flex-start;
}

.portfolio__card--grid-hidden {
    display: none;
}

@media (max-width: 767px) {
    .portfolio--grid .portfolio__panel-actions .js-load-more {
        display: none;
    }
}

.portfolio--grid .portfolio__panel-actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    order: 2;
}

.portfolio--grid .portfolio__panel-actions .load-more {
    margin-top: 0;
}

.portfolio--grid .portfolio__panel-actions .portfolio__actions {
    margin-top: 0;
}

@media (min-width: 768px) {
    .portfolio--grid .portfolio__panel-actions {
        flex-direction: row;
        gap: 32px;
        justify-content: center;
        margin-top: 64px;
    }
}

@media (min-width: 1200px) {
    .portfolio--grid .portfolio__tabs {
        padding-left: 0;
        padding-right: 0;
    }

    .portfolio--grid .portfolio__cards {
        justify-content: center;
    }
}

.portfolio .load-more {
    text-align: center;
    margin-top: 32px;
}

.portfolio .load-more__btn {
    border: none;
}

.portfolio .load-more__btn::after {
    content: "\e917";
}

.portfolio .load-more__btn.is-loading {
    color: transparent;
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.portfolio .load-more__btn.is-loading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 20px;
    height: 20px;
    border: 5px solid;
    border-color: var(--color-surface-muted) var(--color-surface-muted) transparent;
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    -webkit-animation: portfolioLoadMoreSpin 1.5s linear infinite;
            animation: portfolioLoadMoreSpin 1.5s linear infinite;
}

.portfolio .load-more__btn.is-disabled {
    cursor: not-allowed;
    background-color: var(--color-surface-light-alt);
}

@-webkit-keyframes portfolioLoadMoreSpin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
                transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
                transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes portfolioLoadMoreSpin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
                transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
                transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

.portfolio__archive-pagination {
    margin-top: 48px;
    text-align: center;
}

.portfolio__archive-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portfolio__archive-pagination .page-numbers li {
    display: inline-block;
}

.portfolio__archive-pagination .page-numbers a,
.portfolio__archive-pagination .page-numbers span {
    align-items: center;
    border: 1px solid var(--color-surface-muted);
    border-radius: 8px;
    color: var(--color-secondary);
    display: inline-flex;
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    justify-content: center;
    line-height: var(--line-height-body);
    min-height: 40px;
    min-width: 40px;
    padding: 8px 12px;
    text-decoration: none;
}

.portfolio__archive-pagination .page-numbers .current {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-text-inverse);
}

.portfolio__archive-pagination .page-numbers a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.portfolio--archive .tab-accordion__tab {
    text-decoration: none;
}

.portfolio__empty {
    color: var(--color-paragraph);
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    margin: 0;
    text-align: center;
    width: 100%;
}
