/*
 Theme Name:   Sydney Child
 Theme URI:    https://athemes.com/theme/sydney
 Description:  Sydney Child Theme
 Author:       GeboArt.Dev
 Author URI:   http://geboart.dev
 Template:     sydney
 Version:      2.8.38
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  sydney-child
*/

/* --- Brand Fonts & Typography System --- */
@font-face {
    font-family: "Roboto";
    src: url("assets/fonts/roboto/Roboto-Light.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("assets/fonts/roboto/Roboto-LightItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("assets/fonts/roboto/Roboto-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("assets/fonts/roboto/Roboto-Italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("assets/fonts/roboto/Roboto-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("assets/fonts/roboto/Roboto-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("assets/fonts/roboto/Roboto-BoldItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("assets/fonts/roboto/Roboto-Black.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("assets/fonts/roboto/Roboto-BlackItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Condensed";
    src: url("assets/fonts/roboto/RobotoCondensed-Light.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Condensed";
    src: url("assets/fonts/roboto/RobotoCondensed-LightItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Condensed";
    src: url("assets/fonts/roboto/RobotoCondensed-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Condensed";
    src: url("assets/fonts/roboto/RobotoCondensed-Italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Condensed";
    src: url("assets/fonts/roboto/RobotoCondensed-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Mono";
    src: url("assets/fonts/roboto/RobotoMono-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Mono";
    src: url("assets/fonts/roboto/RobotoMono-Italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Mono";
    src: url("assets/fonts/roboto/RobotoMono-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Mono";
    src: url("assets/fonts/roboto/RobotoMono-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Mono";
    src: url("assets/fonts/roboto/RobotoMono-BoldItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

:root {
    --ff-font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
    --ff-font-heading: "Roboto Condensed", "Roboto", "Helvetica Neue", Arial, sans-serif;
    --ff-font-mono: "Roboto Mono", "Courier New", monospace;
    --ff-text-sm: clamp(0.9375rem, 0.89rem + 0.2vw, 1rem);
    --ff-text-md: clamp(1rem, 0.96rem + 0.24vw, 1.125rem);
    --ff-h1: clamp(2rem, 1.65rem + 1.7vw, 3.25rem);
    --ff-h2: clamp(1.75rem, 1.5rem + 1.2vw, 2.6rem);
    --ff-h3: clamp(1.45rem, 1.28rem + 0.8vw, 2rem);
    --ff-h4: clamp(1.25rem, 1.14rem + 0.5vw, 1.6rem);
    --ff-h5: clamp(1.08rem, 1.02rem + 0.3vw, 1.3rem);
    --ff-h6: clamp(1rem, 0.97rem + 0.2vw, 1.15rem);
}

html {
    font-size: 100%;
}

body,
button,
input,
select,
textarea {
    font-family: var(--ff-font-body) !important;
    font-size: var(--ff-text-md) !important;
    line-height: 1.65 !important;
    font-weight: 400;
}

p,
li,
td,
th,
label,
input,
textarea {
    font-size: var(--ff-text-md) !important;
    line-height: 1.65 !important;
}

small,
.small {
    font-size: var(--ff-text-sm) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.widget-title,
.entry-title,
.sow-headline,
.project-title,
.ff-project-card-title,
.ff-projects-section-title {
    font-family: var(--ff-font-heading) !important;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

h1:not(.site-title) {
    font-size: var(--ff-h1) !important;
    font-weight: 600 !important;
    color: rgb(68, 63, 63) !important;
}

h2 {
    font-size: var(--ff-h2) !important;
    font-weight: 500 !important;
}

h3 {
    font-size: var(--ff-h3) !important;
}

h4 {
    font-size: var(--ff-h4) !important;
}

h5 {
    font-size: var(--ff-h5) !important;
}

h6 {
    font-size: var(--ff-h6) !important;
}

#mainnav > div > ul > li > a,
.header-item,
.roll-button,
a.button,
.wp-block-button__link {
    font-family: var(--ff-font-heading) !important;
    letter-spacing: 0.02em;
}

@media only screen and (min-width: 1025px) {
    #mainnav > div > ul > li > a {
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
}

code,
pre,
kbd,
samp {
    font-family: var(--ff-font-mono) !important;
}

/* Services section hierarchy: H1 page section > H2 service cards */
#panel-98-0-0-1 .sow-headline {
    font-size: clamp(2.4rem, 2rem + 1.4vw, 3.35rem) !important;
    font-weight: 600;
    color: rgb(68, 63, 63) !important;
    line-height: 1.1;
    letter-spacing: 0.015em;
    margin-bottom: 0.35em;
}

#panel-98-0-0-1 .sow-sub-headline {
    font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem) !important;
    line-height: 1.6;
    max-width: 62ch;
}

#panel-98-0-0-2 .sow-features-list > li.sow-features-feature .sow-features-feature-title {
    font-size: clamp(1.55rem, 1.38rem + 0.55vw, 1.95rem) !important;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin-top: 0.8em;
    margin-bottom: 0.45em;
}

#panel-98-0-0-2 .sow-features-list > li.sow-features-feature .sow-features-feature-text {
    font-size: clamp(1rem, 0.97rem + 0.2vw, 1.1rem);
    line-height: 1.62;
}

@media only screen and (max-width: 767px) {
    #panel-98-0-0-1 .sow-headline {
        font-size: clamp(2rem, 1.75rem + 1.3vw, 2.5rem) !important;
    }

    #panel-98-0-0-2 .sow-features-list > li.sow-features-feature .sow-features-feature-title {
        font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.65rem) !important;
    }
}

/* Projects section hierarchy: H1 section title > H3 project cards */
.sydney_portfolio_widget .widget-title,
.widget_sydney_portfolio .widget-title {
    font-size: clamp(2.4rem, 2rem + 1.4vw, 3.35rem) !important;
    font-weight: 600;
    color: rgb(68, 63, 63) !important;
    text-transform: none !important;
    line-height: 1.1;
    letter-spacing: 0.015em;
    margin-bottom: 0.35em;
}

@media only screen and (max-width: 767px) {
    .sydney_portfolio_widget .widget-title,
    .widget_sydney_portfolio .widget-title {
        font-size: clamp(2rem, 1.75rem + 1.3vw, 2.5rem) !important;
    }
}

/* --- Sticky Header Logo Customization --- */

/* 1. By default, hide the logo wrapper within the sticky header. */
.bottom-header-row.sticky-header .sticky-logo-wrap {
    display: none;
}

/* 2. When the masthead is hidden (class added by JS), set up the flex container for alignment. */
body.masthead-hidden .bottom-header-row.sticky-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

/* 3. When the masthead is hidden, show the logo. */
body.masthead-hidden .bottom-header-row.sticky-header .sticky-logo-wrap {
    display: inline-flex;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 52px;
    transform: translateY(-50%);
    flex: 0 0 auto;
    max-width: 220px;
    margin: 0;
    z-index: 2;
}

body.masthead-hidden .bottom-header-row.sticky-header .sticky-logo-wrap a {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

body.masthead-hidden .bottom-header-row.sticky-header .sticky-logo-wrap .sticky-logo {
    display: block;
    width: auto !important;
    height: 48px !important;
    max-width: 220px !important;
    max-height: 48px !important;
    object-fit: contain;
}

body.masthead-hidden .bottom-header-row.sticky-header .bottom-header-inner {
    flex: 0 1 auto;
    min-width: 0;
}

/* 4. Ensure the menu adapts correctly within the new flex container. */
body.masthead-hidden .bottom-header-row.sticky-header #main-navigation {
    float: none;
    width: auto;
    margin: 0 auto;
}

/* --- Projects Module (Brand Aligned) --- */
.sydney_portfolio_widget .project-wrap,
.widget_sydney_portfolio .project-wrap {
    --ff-project-gap: 12px;
}

.sydney_portfolio_widget .project-filter,
.widget_sydney_portfolio .project-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 20px 0 35px;
    padding: 0;
}

.sydney_portfolio_widget .project-filter li,
.widget_sydney_portfolio .project-filter li {
    margin: 0;
    background: transparent;
}

.sydney_portfolio_widget .project-filter li a,
.widget_sydney_portfolio .project-filter li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid var(--sydney-border-color);
    border-radius: 3px;
    background: var(--sydney-light-background);
    color: var(--sydney-grey-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
    transition: all 0.25s ease;
}

.sydney_portfolio_widget .project-filter .ff-filter-count,
.widget_sydney_portfolio .project-filter .ff-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 2px;
    background: rgba(35, 52, 82, 0.12);
    color: inherit;
    font-size: 11px;
    line-height: 1;
}

.sydney_portfolio_widget .project-filter li a:hover,
.sydney_portfolio_widget .project-filter li a:focus,
.sydney_portfolio_widget .project-filter li a.active,
.widget_sydney_portfolio .project-filter li a:hover,
.widget_sydney_portfolio .project-filter li a:focus,
.widget_sydney_portfolio .project-filter li a.active {
    background-color: var(--sydney-global-color-1);
    border-color: var(--sydney-global-color-1);
    color: #fff;
}

.sydney_portfolio_widget .project-filter li a:hover .ff-filter-count,
.sydney_portfolio_widget .project-filter li a:focus .ff-filter-count,
.sydney_portfolio_widget .project-filter li a.active .ff-filter-count,
.widget_sydney_portfolio .project-filter li a:hover .ff-filter-count,
.widget_sydney_portfolio .project-filter li a:focus .ff-filter-count,
.widget_sydney_portfolio .project-filter li a.active .ff-filter-count {
    background: rgba(255, 255, 255, 0.2);
}

.sydney_portfolio_widget .roll-project,
.widget_sydney_portfolio .roll-project {
    padding-bottom: 30px;
}

.sydney_portfolio_widget .isotope-container,
.widget_sydney_portfolio .isotope-container {
    margin-left: calc(var(--ff-project-gap) * -1);
    margin-right: calc(var(--ff-project-gap) * -1);
}

.sydney_portfolio_widget .roll-project.fullwidth .project-item,
.widget_sydney_portfolio .roll-project.fullwidth .project-item {
    width: 25%;
    padding: var(--ff-project-gap);
    margin: 0;
    box-sizing: border-box;
}

.sydney_portfolio_widget .roll-project .project-item > a:last-of-type,
.widget_sydney_portfolio .roll-project .project-item > a:last-of-type {
    display: block;
    overflow: hidden;
    border: 1px solid var(--sydney-border-color);
    border-radius: 3px;
    background: var(--sydney-light-background);
}

.sydney_portfolio_widget .roll-project .project-item > a:last-of-type img,
.widget_sydney_portfolio .roll-project .project-item > a:last-of-type img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sydney_portfolio_widget .roll-project .project-item .project-pop-wrap,
.widget_sydney_portfolio .roll-project .project-item .project-pop-wrap {
    position: absolute;
    inset: var(--ff-project-gap);
    overflow: hidden;
    border-radius: 3px;
    z-index: 3;
}

.sydney_portfolio_widget .roll-project .project-item .project-pop,
.widget_sydney_portfolio .roll-project .project-item .project-pop {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(
        180deg,
        rgba(17, 28, 48, 0.15) 0%,
        rgba(17, 28, 48, 0.45) 45%,
        rgba(17, 28, 48, 0.9) 100%
    );
    transition: opacity 0.3s ease;
}

.sydney_portfolio_widget .ff-project-content,
.widget_sydney_portfolio .ff-project-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.25s ease;
}

.sydney_portfolio_widget .ff-project-content::before,
.widget_sydney_portfolio .ff-project-content::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 60%;
    background: linear-gradient(
        180deg,
        rgba(20, 30, 48, 0.02) 0%,
        rgba(20, 30, 48, 0.72) 45%,
        rgba(20, 30, 48, 0.92) 100%
    );
    border-radius: 2px;
    z-index: 0;
    pointer-events: none;
}

.sydney_portfolio_widget .ff-project-badge,
.widget_sydney_portfolio .ff-project-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--sydney-headings-color);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

.sydney_portfolio_widget .project-title-wrap,
.widget_sydney_portfolio .project-title-wrap {
    position: static;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    opacity: 1;
    z-index: auto;
    transform: none;
    position: relative;
    z-index: 1;
}

.sydney_portfolio_widget .roll-project .project-title,
.widget_sydney_portfolio .roll-project .project-title {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    text-align: left;
    color: #fff;
    line-height: 1.35;
}

.sydney_portfolio_widget .roll-project .project-title span,
.widget_sydney_portfolio .roll-project .project-title span {
    display: block;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 0;
    color: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    padding: 4px 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sydney_portfolio_widget .ff-project-meta,
.widget_sydney_portfolio .ff-project-meta {
    list-style: none;
    margin: 0;
    padding: 7px 9px;
    display: grid;
    gap: 3px;
    background: rgba(16, 25, 42, 0.66);
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

.sydney_portfolio_widget .ff-project-meta li,
.widget_sydney_portfolio .ff-project-meta li {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    line-height: 1.3;
}

.sydney_portfolio_widget .ff-project-meta li strong,
.widget_sydney_portfolio .ff-project-meta li strong {
    color: #fff;
    font-weight: 700;
    min-width: 34px;
}

.sydney_portfolio_widget .ff-project-cta,
.widget_sydney_portfolio .ff-project-cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--sydney-global-color-1);
    border-radius: 2px;
    background: var(--sydney-global-color-1);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.sydney_portfolio_widget .roll-project .project-item:hover .project-pop,
.sydney_portfolio_widget .roll-project .project-item:focus-within .project-pop,
.widget_sydney_portfolio .roll-project .project-item:hover .project-pop,
.widget_sydney_portfolio .roll-project .project-item:focus-within .project-pop {
    opacity: 0;
}

.sydney_portfolio_widget .roll-project .project-item:hover .ff-project-content,
.sydney_portfolio_widget .roll-project .project-item:focus-within .ff-project-content,
.widget_sydney_portfolio .roll-project .project-item:hover .ff-project-content,
.widget_sydney_portfolio .roll-project .project-item:focus-within .ff-project-content {
    opacity: 0;
    transform: none;
}

.sydney_portfolio_widget .roll-project .project-item:hover .project-title-wrap,
.sydney_portfolio_widget .roll-project .project-item:focus-within .project-title-wrap,
.widget_sydney_portfolio .roll-project .project-item:hover .project-title-wrap,
.widget_sydney_portfolio .roll-project .project-item:focus-within .project-title-wrap {
    animation: none;
}

.sydney_portfolio_widget .roll-project .project-item:hover > a:last-of-type img,
.sydney_portfolio_widget .roll-project .project-item:focus-within > a:last-of-type img,
.widget_sydney_portfolio .roll-project .project-item:hover > a:last-of-type img,
.widget_sydney_portfolio .roll-project .project-item:focus-within > a:last-of-type img {
    transform: none;
}

@media only screen and (max-width: 1199px) {
    .sydney_portfolio_widget .roll-project.fullwidth .project-item,
    .widget_sydney_portfolio .roll-project.fullwidth .project-item {
        width: 33.333%;
    }
}

@media only screen and (max-width: 991px), (hover: none) {
    .sydney_portfolio_widget .roll-project.fullwidth .project-item,
    .widget_sydney_portfolio .roll-project.fullwidth .project-item {
        width: 50%;
    }

    .sydney_portfolio_widget .roll-project .project-item .project-pop,
    .widget_sydney_portfolio .roll-project .project-item .project-pop {
        opacity: 1;
    }

    .sydney_portfolio_widget .ff-project-content,
    .widget_sydney_portfolio .ff-project-content {
        opacity: 1;
        transform: translateY(0);
    }
}

@media only screen and (max-width: 520px) {
    .sydney_portfolio_widget .roll-project.fullwidth .project-item,
    .widget_sydney_portfolio .roll-project.fullwidth .project-item {
        width: 100%;
    }
}

/* --- Projects Module (Card Layout v2) --- */
.sydney_portfolio_widget .project-filter,
.widget_sydney_portfolio .project-filter {
    margin: 12px 0 20px;
}

.sydney_portfolio_widget .project-filter li a,
.widget_sydney_portfolio .project-filter li a {
    text-transform: none;
    letter-spacing: 0.01em;
}

.sydney_portfolio_widget .project-filter li .ff-project-all-link,
.widget_sydney_portfolio .project-filter li .ff-project-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid #f9a333;
    border-radius: 3px;
    background: #f9a333;
    color: #1f2937 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    line-height: 1 !important;
    text-transform: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sydney_portfolio_widget .project-filter li .ff-project-all-link:hover,
.sydney_portfolio_widget .project-filter li .ff-project-all-link:focus,
.widget_sydney_portfolio .project-filter li .ff-project-all-link:hover,
.widget_sydney_portfolio .project-filter li .ff-project-all-link:focus {
    background: #e28d1f;
    border-color: #e28d1f;
    color: #111827 !important;
}

.sydney_portfolio_widget .ff-project-load-more-wrap,
.widget_sydney_portfolio .ff-project-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 6px 0 0;
}

.sydney_portfolio_widget .ff-project-load-more,
.widget_sydney_portfolio .ff-project-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 16px;
    border: 1px solid var(--sydney-global-color-1);
    border-radius: 3px;
    background: var(--sydney-global-color-1);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    text-transform: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sydney_portfolio_widget .ff-project-load-more:hover,
.sydney_portfolio_widget .ff-project-load-more:focus,
.widget_sydney_portfolio .ff-project-load-more:hover,
.widget_sydney_portfolio .ff-project-load-more:focus {
    background: var(--sydney-global-color-2);
    border-color: var(--sydney-global-color-2);
    color: #fff !important;
}

.sydney_portfolio_widget .project-filter li a.active,
.widget_sydney_portfolio .project-filter li a.active {
    color: #fff;
    background-color: var(--sydney-global-color-1);
    border-color: var(--sydney-global-color-1);
}

.sydney_portfolio_widget .project-filter li a:hover,
.sydney_portfolio_widget .project-filter li a:focus,
.sydney_portfolio_widget .project-filter li a.active,
.widget_sydney_portfolio .project-filter li a:hover,
.widget_sydney_portfolio .project-filter li a:focus,
.widget_sydney_portfolio .project-filter li a.active {
    color: #fff !important;
}

.sydney_portfolio_widget .roll-project,
.widget_sydney_portfolio .roll-project {
    max-width: 1140px;
    margin: 0 auto;
    padding-bottom: 16px;
}

.sydney_portfolio_widget .isotope-container.ff-project-count-1,
.widget_sydney_portfolio .isotope-container.ff-project-count-1 {
    display: flex;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
}

.sydney_portfolio_widget .isotope-container.ff-project-count-1 .project-item,
.widget_sydney_portfolio .isotope-container.ff-project-count-1 .project-item {
    width: min(420px, 100%) !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
}

.sydney_portfolio_widget .roll-project.fullwidth .project-item,
.widget_sydney_portfolio .roll-project.fullwidth .project-item {
    width: 33.333%;
}

.sydney_portfolio_widget .roll-project .project-item .ff-project-media-link,
.widget_sydney_portfolio .roll-project .project-item .ff-project-media-link {
    display: block;
    overflow: hidden;
    border: 1px solid var(--sydney-border-color);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: var(--sydney-light-background);
}

.sydney_portfolio_widget .roll-project .project-item .ff-project-media-link img,
.widget_sydney_portfolio .roll-project .project-item .ff-project-media-link img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transform: none !important;
}

.sydney_portfolio_widget .roll-project .project-item .ff-project-thumb-placeholder,
.widget_sydney_portfolio .roll-project .project-item .ff-project-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f4f6f8, #e8edf3);
    color: var(--sydney-grey-color);
    font-size: 13px;
    font-weight: 600;
}

.sydney_portfolio_widget .roll-project .project-item .ff-project-card-content,
.widget_sydney_portfolio .roll-project .project-item .ff-project-card-content {
    display: grid;
    grid-template-rows: auto minmax(3.6em, auto) auto auto;
    align-content: start;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--sydney-border-color);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    min-height: 170px;
    text-align: left;
}

.sydney_portfolio_widget .roll-project .project-item .ff-project-badge,
.widget_sydney_portfolio .roll-project .project-item .ff-project-badge {
    position: static;
    width: fit-content;
    margin: 0;
}

.sydney_portfolio_widget .roll-project .project-item .ff-project-card-title,
.widget_sydney_portfolio .roll-project .project-item .ff-project-card-title {
    margin: 0;
    font-size: clamp(1.5rem, 1.34rem + 0.45vw, 1.85rem) !important;
    line-height: 1.2 !important;
    font-weight: 400;
    min-height: 3.6em;
    color: rgb(68, 63, 63);
    text-align: left;
}

.sydney_portfolio_widget .roll-project .project-item .ff-project-card-title a,
.widget_sydney_portfolio .roll-project .project-item .ff-project-card-title a {
    display: block;
    color: rgb(68, 63, 63);
    text-align: left;
}

.sydney_portfolio_widget .roll-project .project-item .ff-project-meta,
.widget_sydney_portfolio .roll-project .project-item .ff-project-meta {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 3px;
    background: transparent;
    border-radius: 0;
}

.sydney_portfolio_widget .roll-project .project-item .ff-project-meta li,
.widget_sydney_portfolio .roll-project .project-item .ff-project-meta li {
    color: var(--sydney-grey-color);
    font-size: 13px;
    line-height: 1.35;
}

.sydney_portfolio_widget .roll-project .project-item .ff-project-meta li strong,
.widget_sydney_portfolio .roll-project .project-item .ff-project-meta li strong {
    color: var(--sydney-headings-color);
    min-width: 42px;
}

.sydney_portfolio_widget .roll-project .project-item .ff-project-cta,
.widget_sydney_portfolio .roll-project .project-item .ff-project-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff !important;
}

.sydney_portfolio_widget .roll-project .project-item .ff-project-cta:hover,
.sydney_portfolio_widget .roll-project .project-item .ff-project-cta:focus,
.widget_sydney_portfolio .roll-project .project-item .ff-project-cta:hover,
.widget_sydney_portfolio .roll-project .project-item .ff-project-cta:focus {
    color: #fff !important;
}

.sydney_portfolio_widget .roll-project .project-item,
.widget_sydney_portfolio .roll-project .project-item {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sydney_portfolio_widget .roll-project .project-item.ff-filter-hidden,
.widget_sydney_portfolio .roll-project .project-item.ff-filter-hidden {
    display: none !important;
}

.sydney_portfolio_widget .roll-project .project-item:hover,
.sydney_portfolio_widget .roll-project .project-item:focus-within,
.widget_sydney_portfolio .roll-project .project-item:hover,
.widget_sydney_portfolio .roll-project .project-item:focus-within {
    transform: translateY(-2px);
}

.sydney_portfolio_widget .roll-project .project-item:hover .ff-project-card-content,
.sydney_portfolio_widget .roll-project .project-item:focus-within .ff-project-card-content,
.widget_sydney_portfolio .roll-project .project-item:hover .ff-project-card-content,
.widget_sydney_portfolio .roll-project .project-item:focus-within .ff-project-card-content {
    box-shadow: 0 6px 16px rgba(20, 33, 56, 0.08);
}

@media only screen and (max-width: 1199px) {
    .sydney_portfolio_widget .roll-project.fullwidth .project-item,
    .widget_sydney_portfolio .roll-project.fullwidth .project-item {
        width: 50%;
    }
}

@media only screen and (max-width: 575px) {
    .sydney_portfolio_widget .roll-project.fullwidth .project-item,
    .widget_sydney_portfolio .roll-project.fullwidth .project-item {
        width: 100%;
    }
}

/* --- Projects Page (/proyectos/) --- */
.ff-projects-page.no-sidebar {
    width: 100%;
}

.ff-projects-archive-page {
    max-width: 1140px;
    margin: 0 auto 36px;
}

.ff-projects-page-header {
    margin-bottom: 22px;
}

.ff-projects-page-header .entry-title {
    margin: 0 0 10px;
    font-family: var(--ff-font-heading) !important;
    font-size: var(--ff-h1) !important;
    font-weight: 600 !important;
    line-height: 1.12;
    color: rgb(68, 63, 63) !important;
}

.ff-projects-page-intro {
    max-width: 74ch;
    font-size: var(--ff-text-md);
    line-height: 1.65;
}

.ff-projects-section + .ff-projects-section {
    margin-top: 34px;
}

.ff-projects-history {
    position: relative;
    width: calc(100vw - 80px);
    margin-left: calc(50% - 50vw + 40px);
    margin-right: calc(50% - 50vw + 40px);
}

.ff-projects-section-header {
    margin-bottom: 14px;
}

.ff-projects-section-title {
    margin: 0 0 6px;
    font-family: var(--ff-font-heading) !important;
    font-size: var(--ff-h1) !important;
    font-weight: 600 !important;
    line-height: 1.12;
    color: rgb(68, 63, 63) !important;
}

.ff-projects-section-subtitle {
    margin: 0;
    color: var(--sydney-grey-color);
    font-size: var(--ff-text-md);
    line-height: 1.65;
}

.ff-project-card-badge {
    margin: 0;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid var(--sydney-border-color);
    border-radius: 11px;
    background: #fff;
    color: var(--sydney-grey-color);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
}

.ff-projects-recent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ff-projects-timeline-card {
    border: 1px solid var(--sydney-border-color);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.ff-projects-card-media {
    display: block;
    border-bottom: 1px solid var(--sydney-border-color);
}

.ff-projects-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ff-projects-card-media .ff-project-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f4f6f8, #e8edf3);
    color: var(--sydney-grey-color);
    font-size: 13px;
    font-weight: 600;
}

.ff-projects-card-body {
    display: grid;
    gap: 10px;
    padding: 12px;
    align-content: start;
}

.ff-projects-card-title {
    margin: 0;
    font-family: var(--ff-font-heading) !important;
    font-size: var(--ff-h3) !important;
    font-weight: 400 !important;
    line-height: 1.25;
    min-height: 75px;
    color: rgb(68, 63, 63);
}

.ff-projects-card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ff-projects-card-title a { color: rgb(68, 63, 63); }

.ff-projects-card-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 3px;
}

.ff-projects-card-meta li {
    margin: 0;
    color: var(--sydney-grey-color);
    font-size: var(--ff-text-sm);
}

.ff-projects-card-meta li strong {
    color: var(--sydney-headings-color);
}

.ff-projects-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 3px;
    border: 1px solid var(--sydney-global-color-1);
    background: var(--sydney-global-color-1);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ff-projects-card-cta:hover,
.ff-projects-card-cta:focus {
    background: var(--sydney-global-color-2);
    border-color: var(--sydney-global-color-2);
    color: #fff !important;
}

.ff-projects-history-filters {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.ff-history-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ff-history-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--sydney-border-color);
    border-radius: 15px;
    background: #fff;
    color: var(--sydney-grey-color);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ff-history-filter:hover,
.ff-history-filter:focus,
.ff-history-filter.is-active {
    background: var(--sydney-global-color-1);
    border-color: var(--sydney-global-color-1);
    color: #fff;
}

.ff-projects-timeline {
    margin-top: 8px;
}

.ff-projects-timeline-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.ff-timeline-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid var(--sydney-border-color);
    border-radius: 3px;
    background: #fff;
    color: var(--sydney-headings-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ff-timeline-control:hover,
.ff-timeline-control:focus {
    background: var(--sydney-global-color-1);
    border-color: var(--sydney-global-color-1);
    color: #fff;
}

.ff-timeline-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--sydney-border-color);
    border-radius: 3px;
    background: #fff;
    color: var(--sydney-grey-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.ff-projects-timeline-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 6px;
}

.ff-projects-timeline-scroll::-webkit-scrollbar {
    height: 8px;
}

.ff-projects-timeline-scroll::-webkit-scrollbar-thumb {
    background: rgba(15, 54, 96, 0.28);
    border-radius: 8px;
}

.ff-projects-timeline-scroll::-webkit-scrollbar-track {
    background: rgba(15, 54, 96, 0.08);
    border-radius: 8px;
}

.ff-projects-timeline-track {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: max-content;
    padding: 46px 0 0;
}

.ff-projects-timeline-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    height: 2px;
    background: var(--sydney-border-color);
}

.ff-projects-year-group {
    position: relative;
    width: 320px;
    flex: 0 0 320px;
    scroll-snap-align: start;
    opacity: 0.62;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.ff-projects-year-group.ff-is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ff-projects-year-group.is-filtered-out {
    display: none !important;
}

.ff-projects-year-marker {
    position: absolute;
    top: -34px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ff-projects-year-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sydney-global-color-1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(15, 54, 96, 0.15);
}

.ff-projects-year-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid var(--sydney-border-color);
    background: #fff;
    color: var(--sydney-headings-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.ff-projects-history-list {
    display: grid;
    gap: 12px;
}

.ff-projects-history-item {
    border: 1px solid var(--sydney-border-color);
    border-radius: 4px;
    background: #fff;
    padding: 14px;
}

.ff-projects-history-item.is-filtered-out {
    display: none !important;
}

.ff-projects-history-badge {
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 10px;
    background: rgba(15, 54, 96, 0.08);
    color: var(--sydney-global-color-1);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.ff-projects-history-title {
    margin: 0 0 8px;
    font-family: var(--ff-font-heading) !important;
    font-size: var(--ff-h3) !important;
    font-weight: 400 !important;
    line-height: 1.25;
    color: rgb(68, 63, 63) !important;
}

.ff-projects-history-title a {
    color: rgb(68, 63, 63) !important;
}

.ff-projects-history-description {
    margin: 0;
    color: var(--sydney-grey-color);
    font-size: var(--ff-text-md);
    line-height: 1.65;
}

.ff-projects-empty {
    margin: 18px 0;
}

@media only screen and (max-width: 1024px) {
    .ff-projects-recent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ff-projects-year-group {
        width: 290px;
        flex-basis: 290px;
    }
}

@media only screen and (max-width: 900px) {
    .ff-projects-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 767px) {
    .ff-projects-section-title {
        font-size: clamp(2rem, 1.75rem + 1.3vw, 2.5rem) !important;
    }

    .ff-projects-recent-grid {
        grid-template-columns: 1fr;
    }

    .ff-projects-history {
        width: calc(100vw - 40px);
        margin-left: calc(50% - 50vw + 20px);
        margin-right: calc(50% - 50vw + 20px);
    }

    .ff-projects-timeline-controls {
        justify-content: flex-start;
    }

    .ff-timeline-position {
        min-width: 70px;
        padding: 0 8px;
    }

    .ff-projects-year-group {
        width: min(86vw, 300px);
        flex-basis: min(86vw, 300px);
    }
}

/* --- Single Project Template --- */
.ff-project-single-area.no-sidebar {
    width: 100%;
}

.ff-project-single-area .ff-project-entry {
    margin-bottom: 40px;
}

.ff-project-single-area .ff-project-header {
    margin-bottom: 26px;
}

.ff-project-single-area .ff-project-kicker {
    margin: 0 0 6px;
    color: var(--sydney-global-color-1);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ff-project-single-area .ff-project-title {
    margin: 0;
}

.ff-project-single-area .ff-project-taxonomy {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
}

.ff-project-single-area .ff-project-taxonomy li {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid var(--sydney-border-color);
    border-radius: 3px;
    background: var(--sydney-light-background);
    color: var(--sydney-grey-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.ff-project-single-area .ff-project-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    margin-bottom: 26px;
}

.ff-project-single-area .ff-project-featured {
    border: 1px solid var(--sydney-border-color);
}

.ff-project-single-area .ff-project-featured img {
    display: block;
    width: 100%;
    height: auto;
}

.ff-project-single-area .ff-project-facts {
    border: 1px solid var(--sydney-border-color);
    padding: 18px;
    background: #fff;
}

.ff-project-single-area .ff-project-facts h2 {
    font-size: 20px;
    margin: 0 0 14px;
}

.ff-project-single-area .ff-project-facts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ff-project-single-area .ff-project-facts li {
    margin: 0;
    padding: 0 0 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--sydney-border-color);
}

.ff-project-single-area .ff-project-facts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.ff-project-single-area .ff-project-facts span {
    display: block;
    color: var(--sydney-grey-color);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.ff-project-single-area .ff-project-facts strong {
    display: block;
    color: var(--sydney-headings-color);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.ff-project-single-area .ff-project-content {
    margin-bottom: 24px;
}

.ff-project-single-area .ff-project-gallery-wrap {
    margin-bottom: 30px;
}

.ff-project-single-area .ff-project-gallery-wrap h2 {
    margin: 0 0 14px;
}

.ff-project-single-area .ff-project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ff-project-single-area .ff-project-gallery-item {
    margin: 0;
}

.ff-project-single-area .ff-project-gallery-item a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--sydney-border-color);
}

.ff-project-single-area .ff-project-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ff-project-single-area .ff-project-gallery-item a:hover img,
.ff-project-single-area .ff-project-gallery-item a:focus img {
    transform: scale(1.03);
}

.ff-project-single-area .ff-project-gallery-item figcaption {
    margin-top: 6px;
    color: var(--sydney-grey-color);
    font-size: 13px;
    line-height: 1.4;
}

.ff-project-single-area .ff-project-cta-block {
    border: 1px solid var(--sydney-border-color);
    background: var(--sydney-light-background);
    padding: 20px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ff-project-single-area .ff-project-cta-block h2 {
    font-size: 24px;
    margin: 0 0 4px;
}

.ff-project-single-area .ff-project-cta-block p {
    margin: 0;
}

.ff-project-single-area .ff-project-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ff-project-single-area .ff-project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 3px;
    border: 1px solid var(--sydney-global-color-1);
    background: var(--sydney-global-color-1);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.ff-project-single-area .ff-project-btn:hover,
.ff-project-single-area .ff-project-btn:focus {
    background: var(--sydney-global-color-2);
    border-color: var(--sydney-global-color-2);
    color: #fff;
}

.ff-project-single-area .ff-project-btn.ff-project-btn-outline {
    background: #fff;
    border-color: var(--sydney-border-color);
    color: var(--sydney-text-color);
}

.ff-project-single-area .ff-project-btn.ff-project-btn-outline:hover,
.ff-project-single-area .ff-project-btn.ff-project-btn-outline:focus {
    background: var(--sydney-light-background);
    border-color: var(--sydney-grey-color);
    color: var(--sydney-text-color);
}

.ff-project-single-area .ff-project-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--sydney-border-color);
}

.ff-project-single-area .ff-project-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--sydney-border-color);
    padding: 12px;
    color: inherit;
}

.ff-project-single-area .ff-project-nav-link.next {
    text-align: right;
}

.ff-project-single-area .ff-project-nav-link span {
    color: var(--sydney-grey-color);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.ff-project-single-area .ff-project-nav-link strong {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.ff-project-single-area .ff-project-nav-link:hover,
.ff-project-single-area .ff-project-nav-link:focus {
    border-color: var(--sydney-grey-color);
}

@media only screen and (max-width: 1199px) {
    .ff-project-single-area .ff-project-main {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 767px) {
    .ff-project-single-area .ff-project-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ff-project-single-area .ff-project-cta-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .ff-project-single-area .ff-project-nav {
        grid-template-columns: 1fr;
    }

    .ff-project-single-area .ff-project-nav-link.next {
        text-align: left;
    }
}

@media only screen and (max-width: 520px) {
    .ff-project-single-area .ff-project-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Single Project Template (Requested Layout) --- */
.ff-project-single-area .ff-project-entry {
    --ff-project-main-max-width: 650px;
    --ff-project-main-max-height: 490px;
    --ff-project-side-column: 320px;
    --ff-project-thumb-gap: 10px;
    --ff-project-layout-gap: 24px;
    --ff-project-layout-max-width: calc(var(--ff-project-main-max-width) + var(--ff-project-side-column) + var(--ff-project-layout-gap));
}

.ff-project-single-area .ff-project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--ff-project-side-column));
    gap: var(--ff-project-layout-gap);
    align-items: start;
    width: 100%;
    max-width: var(--ff-project-layout-max-width);
    margin-bottom: 22px;
}

.ff-project-single-area .ff-project-featured {
    border: 1px solid var(--sydney-border-color);
    border-radius: 3px;
    overflow: hidden;
    background: var(--sydney-light-background);
    width: 100%;
    max-width: var(--ff-project-main-max-width);
    max-height: var(--ff-project-main-max-height);
    aspect-ratio: 650 / 490;
}

.ff-project-single-area .ff-project-media {
    position: relative;
    max-width: var(--ff-project-main-max-width);
}

.ff-project-single-area .ff-project-featured img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ff-project-single-area .ff-project-image-counter {
    position: absolute;
    right: 10px;
    bottom: 10px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    background: rgba(17, 28, 48, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
}

.ff-project-single-area .ff-project-image-counter-sep {
    opacity: 0.7;
}

.ff-project-single-area .ff-project-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ff-project-thumb-gap);
    align-content: start;
    max-height: var(--ff-project-main-max-height);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.ff-project-single-area .ff-project-thumb-item {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--sydney-border-color);
    background: var(--sydney-light-background);
    border: 1px solid var(--sydney-border-color);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ff-project-single-area .ff-project-thumbs::-webkit-scrollbar {
    width: 6px;
}

.ff-project-single-area .ff-project-thumbs::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: rgba(15, 54, 96, 0.32);
}

.ff-project-single-area .ff-project-thumbs::-webkit-scrollbar-track {
    background: rgba(15, 54, 96, 0.08);
}

.ff-project-single-area .ff-project-thumb-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ff-project-single-area .ff-project-thumb-item:not(.is-active) {
    opacity: 0.85;
}

.ff-project-single-area .ff-project-thumb-item.is-active,
.ff-project-single-area .ff-project-thumb-item:hover,
.ff-project-single-area .ff-project-thumb-item:focus {
    opacity: 1;
    border-color: var(--sydney-global-color-1);
    box-shadow: 0 0 0 1px var(--sydney-global-color-1) inset;
    outline: 0;
}

.ff-project-single-area .ff-project-thumb-item:focus-visible {
    box-shadow: 0 0 0 2px var(--sydney-global-color-1) inset, 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.ff-project-single-area .ff-project-header {
    margin-bottom: 18px;
    max-width: var(--ff-project-layout-max-width);
}

.ff-project-single-area .ff-project-header .ff-project-kicker {
    margin: 0 0 6px;
}

.ff-project-single-area .ff-project-header .ff-project-title {
    margin-bottom: 8px;
}

.ff-project-single-area .ff-project-summary {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ff-project-single-area .ff-project-summary li {
    margin: 0;
    padding: 4px 10px;
    border: 1px solid var(--sydney-border-color);
    border-radius: 12px;
    background: #fff;
    color: var(--sydney-grey-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.ff-project-single-area .ff-project-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--ff-project-side-column));
    gap: 24px;
    align-items: start;
    max-width: var(--ff-project-layout-max-width);
    margin-bottom: 28px;
}

.ff-project-single-area .ff-project-description > h2 {
    margin: 0 0 12px;
    padding-top: 14px;
    border-top: 1px solid var(--sydney-border-color);
    font-size: 28px;
    line-height: 1.2;
}

.ff-project-single-area .ff-project-description .ff-project-content {
    margin: 0;
    max-width: 72ch;
    line-height: 1.72;
}

.ff-project-single-area .ff-project-description .ff-project-content p:last-child {
    margin-bottom: 0;
}

.ff-project-single-area .ff-project-description .ff-project-content ul,
.ff-project-single-area .ff-project-description .ff-project-content ol {
    padding-left: 20px;
}

.ff-project-single-area .ff-project-description .ff-project-content li {
    margin-bottom: 8px;
}

.ff-project-single-area .ff-project-description .ff-project-content .gallery,
.ff-project-single-area .ff-project-description .ff-project-content .wp-block-gallery {
    display: none !important;
}

.ff-project-single-area .ff-project-cta-panel {
    border-left: 1px solid var(--sydney-border-color);
    padding-left: 22px;
    position: sticky;
    top: 110px;
}

.ff-project-single-area .ff-project-price {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sydney-border-color);
}

.ff-project-single-area .ff-project-price-kicker {
    margin: 0 0 8px;
    color: var(--sydney-grey-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.ff-project-single-area .ff-project-price p {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.3;
}

.ff-project-single-area .ff-project-price p:last-child {
    margin-bottom: 0;
}

.ff-project-single-area .ff-project-price p span {
    color: var(--sydney-grey-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-right: 6px;
}

.ff-project-single-area .ff-project-price p strong {
    color: var(--sydney-headings-color);
    font-size: 15px;
    font-weight: 600;
}

.ff-project-single-area .ff-project-cta-panel .ff-project-facts {
    border: 1px solid var(--sydney-border-color);
    padding: 14px;
    margin-bottom: 16px;
    background: #fff;
}

.ff-project-single-area .ff-project-cta-panel .ff-project-facts h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.ff-project-single-area .ff-project-cta-panel .ff-project-facts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ff-project-single-area .ff-project-cta-panel .ff-project-facts li {
    margin: 0;
    padding: 0 0 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--sydney-border-color);
}

.ff-project-single-area .ff-project-cta-panel .ff-project-facts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.ff-project-single-area .ff-project-cta-panel .ff-project-facts li span {
    display: block;
    color: var(--sydney-grey-color);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 2px;
}

.ff-project-single-area .ff-project-cta-panel .ff-project-facts li strong {
    display: block;
    color: var(--sydney-headings-color);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

.ff-project-single-area .ff-project-cta-panel .ff-project-cta-actions {
    display: grid;
    gap: 9px;
}

.ff-project-single-area .ff-project-cta-panel .ff-project-btn {
    display: flex;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 21px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sydney-global-color-1);
    background: var(--sydney-global-color-1);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.04em;
    font-weight: 600;
    text-transform: uppercase;
}

.ff-project-single-area .ff-project-cta-panel .ff-project-btn:hover,
.ff-project-single-area .ff-project-cta-panel .ff-project-btn:focus {
    background: var(--sydney-global-color-2);
    border-color: var(--sydney-global-color-2);
    color: #fff;
}

.ff-project-single-area .ff-project-cta-panel .ff-project-btn.ff-project-btn-outline {
    background: #000;
    border-color: #000;
    color: #fff;
}

.ff-project-single-area .ff-project-cta-panel .ff-project-btn.ff-project-btn-outline:hover,
.ff-project-single-area .ff-project-cta-panel .ff-project-btn.ff-project-btn-outline:focus {
    background: #212121;
    border-color: #212121;
    color: #fff;
}

.ff-project-single-area .ff-project-nav {
    max-width: var(--ff-project-layout-max-width);
    gap: 16px;
}

.ff-project-single-area .ff-project-nav-link {
    background: #fff;
    border-color: var(--sydney-border-color);
}

.ff-project-single-area .ff-project-nav-link span {
    color: var(--sydney-global-color-1);
    font-weight: 600;
    letter-spacing: 0.05em;
}

@media only screen and (max-width: 1199px) {
    .ff-project-single-area .ff-project-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ff-project-single-area .ff-project-cta-panel {
        border-left: 0;
        border-top: 1px solid var(--sydney-border-color);
        position: static;
        top: auto;
        padding-left: 0;
        padding-top: 20px;
    }
}

@media only screen and (max-width: 991px) {
    .ff-project-single-area .ff-project-hero {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .ff-project-single-area .ff-project-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .ff-project-single-area .ff-project-thumb-item img {
        aspect-ratio: 1 / 1;
    }
}

@media only screen and (max-width: 767px) {
    .ff-project-single-area .ff-project-description > h2 {
        font-size: 26px;
    }

    .ff-project-single-area .ff-project-header,
    .ff-project-single-area .ff-project-body {
        max-width: 100%;
    }

    .ff-project-single-area .ff-project-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 520px) {
    .ff-project-single-area .ff-project-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- Migrated From Additional CSS --- */

/** SLIDESHOW **/
#slideshow.header-slider,
#slideshow .slides-control,
#slideshow .slides-container,
#slideshow .slides-container .slide-item {
    height: 100vh;
    min-height: 100vh;
}

.slides-container .slide-item {
    background-image: var(--ff-slide-bg-image);
}

#slideshow .slides-container .slide-item .mobile-slide {
    display: none;
}

.slide-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

@media only screen and (max-width: 1025px) {
    #slideshow.header-slider {
        height: 100vh !important;
        height: 100svh !important;
        min-height: 100svh !important;
    }

    #slideshow .slides-control,
    #slideshow .slides-container,
    #slideshow .slides-container .slide-item {
        height: 100% !important;
    }

    .slides-container .slide-item {
        background-image: var(--ff-slide-bg-image) !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        position: relative;
        overflow: hidden;
    }

    #slideshow .slides-container .slide-item::before {
        z-index: 1;
        background-color: rgba(0, 0, 0, 0.5);
        pointer-events: none;
    }

    .slides-container .slide-item .mobile-slide {
        display: block !important;
        width: 100%;
        height: 100% !important;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
        object-fit: cover;
        object-position: center;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #slideshow .slides-container .slide-item .slide-inner {
        z-index: 2;
    }

    .single-projects .sydney-hero-area,
    .single-projects .sydney-hero-area .header-image {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.home,
    body.page-template-page_front-page {
        overflow-x: hidden !important;
    }

    html,
    body,
    #page {
        max-width: 100%;
        overflow-x: hidden !important;
    }
}

@media only screen and (max-width: 1025px) {
    @supports (height: 100dvh) {
        #slideshow.header-slider {
            height: 100dvh !important;
            min-height: 100dvh !important;
        }
    }
}

/* Credit Creators Footer */
.no-bullets {
    display: inline-block;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.link-tete,
.link-geboart {
    text-decoration: none !important;
    color: inherit !important;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.link-tete:hover {
    color: #b20011 !important;
    text-decoration: underline !important;
}

.link-geboart:hover {
    color: #ff7b00 !important;
    text-decoration: underline !important;
}

/* Logo Mobile */
@media (max-width: 575px) {
    #masthead-mobile .align-center,
    #masthead-mobile .align-center .site-branding {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    #masthead-mobile .site-branding {
        min-height: 44px;
        align-items: center;
    }

    #masthead-mobile .align-center .site-branding > a {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }

    #masthead-mobile .site-logo {
        max-width: 180px !important;
        width: 180px;
        height: 44px;
        aspect-ratio: 400 / 98;
        object-fit: contain;
        margin: 0 auto !important;
    }
}

/*** ICONS ***/
/* Header */
.main-header .sydney-svg-icon svg,
.main-header .dropdown-symbol .sydney-svg-icon svg {
    fill: #faa01c !important;
}

/* Footer Icon */
.sydney_contact_info_widget span {
    fill: #ffffff !important;
}

/* Anchor offset */
#servicios::before {
    content: "";
    display: block;
    height: 80px;
    margin-top: -80px;
    visibility: hidden;
}

.go-top.show {
    bottom: 150px;
}

/* Lighthouse fixes: stronger contrast for project metadata text */
.sydney_portfolio_widget .roll-project .project-item .ff-project-meta li,
.widget_sydney_portfolio .roll-project .project-item .ff-project-meta li {
    color: #344054;
}

/* Lighthouse fixes: reduce CLS on slider text and SiteOrigin features block */
#slideshow .slides-container .slide-item .slide-inner .contain {
    min-height: clamp(120px, 22vw, 220px);
}

#slideshow .slides-container .slide-item .slide-inner .maintitle {
    min-height: 3.4em;
    line-height: 1.2;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

#slideshow .slides-container .slide-item .slide-inner .subtitle {
    min-height: 1.6em;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

#panel-98-0-0-2 .sow-features-list > li.sow-features-feature {
    min-height: 140px;
}

#panel-98-0-0-2 .sow-features-list > li.sow-features-feature .textwidget {
    min-height: 110px;
}

#panel-98-0-0-2 .sow-features-list > li.sow-features-feature .sow-features-feature-title {
    min-height: 1.4em;
}

/* Lighthouse round 3: lock mobile slider/client logo geometry earlier to reduce CLS */
@media only screen and (max-width: 1025px) {
    #slideshow .slides-container .slide-item {
        min-height: 100vh;
        min-height: 100svh;
    }

    #slideshow .slides-container .slide-item .slide-inner {
        min-height: 100% !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media only screen and (max-width: 1025px) {
    @supports (min-height: 100dvh) {
        #slideshow .slides-container .slide-item {
            min-height: 100dvh;
        }
    }
}

#Clientes .roll-client {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 12px;
    text-align: center;
}

#Clientes .roll-client .client-item {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 74px;
    min-height: 74px;
    width: clamp(112px, 18vw, 160px);
    margin: 0 !important;
}

#Clientes .roll-client .client-item > a,
#Clientes .roll-client .client-item > span {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

#Clientes .roll-client .client-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin-inline: auto;
}

@media only screen and (max-width: 991px) {
    #Clientes .roll-client .client-item {
        width: clamp(112px, 22vw, 160px);
    }
}

@media only screen and (max-width: 767px) {
    #Clientes .roll-client .client-item {
        width: clamp(112px, 30vw, 160px);
    }
}

@media only screen and (max-width: 520px) {
    #Clientes .roll-client .client-item {
        width: clamp(112px, 42vw, 160px);
    }
}

#panel-98-0-0-2 .sow-icon-elegantline {
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1;
}

/* Hotfix v2.8.16: tighten mobile spacing between home sections */
@media only screen and (max-width: 767px) {
    #pg-98-0 > .panel-row-style-for-98-0 {
        padding: 36px 0 28px !important;
    }

    #pg-98-1 > .panel-row-style-for-98-1,
    #pg-98-2 > .panel-row-style-for-98-2 {
        padding: 34px 0 !important;
    }

    #panel-98-0-0-2 .sow-features-list > li.sow-features-feature {
        min-height: 0;
    }

    #panel-98-0-0-2 .sow-features-list > li.sow-features-feature .textwidget {
        min-height: 0;
    }
}

/* Hotfix v2.8.28: global heading hierarchy (H1/H2/H3 + template titles) */
h1:not(.site-title),
h2,
h3,
.widget-title,
.entry-title,
.sow-headline,
.sow-features-feature-title,
.project-title,
.ff-project-card-title,
.ff-projects-section-title,
.ff-projects-card-title,
.ff-project-single-area .ff-project-facts h2,
.ff-project-single-area .ff-project-gallery-wrap h2,
.ff-project-single-area .ff-project-cta-block h2,
.ff-project-single-area .ff-project-description > h2,
.ff-project-single-area .ff-project-cta-panel .ff-project-facts h3 {
    color: rgb(68, 63, 63) !important;
    font-family: var(--ff-font-heading) !important;
}

h1:not(.site-title),
.widget-title,
.entry-title,
.sow-headline,
.ff-projects-section-title {
    font-size: var(--ff-h1) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
}

h2,
.sow-features-feature-title,
.ff-project-single-area .ff-project-facts h2,
.ff-project-single-area .ff-project-gallery-wrap h2,
.ff-project-single-area .ff-project-cta-block h2,
.ff-project-single-area .ff-project-description > h2 {
    font-size: var(--ff-h2) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

h3,
.project-title,
.ff-project-card-title,
.ff-projects-card-title,
.ff-project-single-area .ff-project-cta-panel .ff-project-facts h3 {
    font-size: var(--ff-h3) !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
}

/* Hotfix v2.8.37: contact page typography scale */
body.page-id-70 .so-widget-sow-headline-default-7395846fd5ec-70 .sow-headline-container h1.sow-headline {
    font-size: clamp(2rem, 1.8rem + 0.45vw, 2.5rem) !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}

body.page-id-70 .so-widget-sow-headline-default-7395846fd5ec-70 .sow-headline-container h2.sow-sub-headline {
    font-size: clamp(1.125rem, 1.05rem + 0.2vw, 1.25rem) !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

body.page-id-70 .so-widget-sow-features-default-2845561bd5e8-70 .sow-features-list .sow-features-feature .sow-features-feature-title {
    font-size: clamp(1.55rem, 1.38rem + 0.55vw, 1.95rem) !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
}

body.page-id-70 .so-widget-sow-features-default-2845561bd5e8-70 .sow-features-list .sow-features-feature .sow-features-feature-text,
body.page-id-70 .so-widget-sow-features-default-2845561bd5e8-70 .sow-features-list .sow-features-feature .sow-features-feature-text p {
    font-size: clamp(1rem, 0.97rem + 0.2vw, 1.1rem) !important;
    line-height: 1.6 !important;
}

/* Hotfix v2.8.30: mobile slideshow image visibility */
@media only screen and (max-width: 1025px) {
    #slideshow .slides-container .slide-item img.mobile-slide,
    #slideshow .slides-container .slide-item .mobile-slide.preserve {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Hotfix v2.8.31: project titles color lock */
.sydney_portfolio_widget .roll-project .project-item .ff-project-card-title,
.widget_sydney_portfolio .roll-project .project-item .ff-project-card-title,
.sydney_portfolio_widget .roll-project .project-item .ff-project-card-title a,
.widget_sydney_portfolio .roll-project .project-item .ff-project-card-title a,
.ff-projects-card-title,
.ff-projects-card-title a,
.ff-projects-card-title a:hover,
.ff-projects-card-title a:focus,
.ff-projects-card-title a:visited,
.sydney_portfolio_widget .roll-project .project-item .ff-project-card-title a:hover,
.sydney_portfolio_widget .roll-project .project-item .ff-project-card-title a:focus,
.sydney_portfolio_widget .roll-project .project-item .ff-project-card-title a:visited,
.widget_sydney_portfolio .roll-project .project-item .ff-project-card-title a:hover,
.widget_sydney_portfolio .roll-project .project-item .ff-project-card-title a:focus,
.widget_sydney_portfolio .roll-project .project-item .ff-project-card-title a:visited {
    color: rgb(68, 63, 63) !important;
}
