.ligeis-featured-projects {
    --ligeis-project-card-radius: 16px;
    --ligeis-project-card-min-height: 220px;
    display: grid;
    gap: var(--wp--preset--spacing--24, 24px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.wp-block-ligeis-featured-projects-showcase,
.wp-block-ligeis-featured-projects-showcase *,
.wp-block-ligeis-featured-projects-showcase *::before,
.wp-block-ligeis-featured-projects-showcase *::after {
    box-sizing: border-box;
}

.wp-block-ligeis-featured-projects,
.wp-block-ligeis-featured-projects *,
.wp-block-ligeis-featured-projects *::before,
.wp-block-ligeis-featured-projects *::after,
.ligeis-featured-projects-editor,
.ligeis-featured-projects-editor *,
.ligeis-featured-projects-editor *::before,
.ligeis-featured-projects-editor *::after {
    box-sizing: border-box;
}

.ligeis-featured-projects-empty {
    width: 100%;
    max-width: 100%;
    border: 1px dashed var(--wp--preset--color--brand-primary, #4361ee);
    border-radius: 12px;
    padding: var(--wp--preset--spacing--24, 24px);
    background: color-mix(in srgb, var(--wp--preset--color--brand-primary, #4361ee) 6%, transparent);
}

.ligeis-featured-projects-empty p {
    margin: 0;
}

.ligeis-featured-projects-empty p + p {
    margin-top: 0.5rem;
}

.ligeis-featured-showcase-editor-preview {
    width: 100%;
    border: 1px dashed var(--wp--preset--color--brand-primary, #4361ee);
    border-radius: 12px;
    padding: var(--wp--preset--spacing--24, 24px);
    background: color-mix(in srgb, var(--wp--preset--color--brand-primary, #4361ee) 6%, transparent);
}

.ligeis-featured-showcase-editor-preview p {
    margin: 0.5rem 0 0;
}

.ligeis-featured-showcase-editor-preview ul {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
}

.ligeis-featured-showcase-editor-preview h4 {
    margin: 1rem 0 0.5rem;
}

.ligeis-featured-showcase-editor-preview__images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.ligeis-featured-showcase-editor-preview__image {
    display: grid;
    gap: 8px;
}

.ligeis-featured-showcase-editor-preview__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.ligeis-featured-showcase-editor-preview__empty {
    color: var(--wp--preset--color--text-muted, #5f6470);
}

.ligeis-featured-projects--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ligeis-featured-projects--mosaic {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.ligeis-featured-projects--mosaic .ligeis-featured-project-card:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.ligeis-featured-project-card {
    position: relative;
    min-width: 0;
    min-height: var(--ligeis-project-card-min-height);
    overflow: hidden;
    border-radius: var(--ligeis-project-card-radius) 0 var(--ligeis-project-card-radius) 0;
    background: var(--wp--preset--color--bg-inverse, #0d162b);
    isolation: isolate;
    transform: translateZ(0);
}

.ligeis-featured-projects--mosaic .ligeis-featured-project-card {
    min-height: 235px;
}

.ligeis-featured-projects--mosaic .ligeis-featured-project-card:nth-child(3) {
    min-height: 100%;
}

.ligeis-featured-showcase {
    --ligeis-project-card-radius: 12px;
    --ligeis-project-card-min-height: 210px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--wp--preset--spacing--24, 24px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.ligeis-featured-showcase__geometre,
.ligeis-featured-showcase__slides {
    display: grid;
    gap: var(--wp--preset--spacing--24, 24px);
    min-width: 0;
}

.ligeis-featured-showcase__geometre .ligeis-featured-project-card {
    min-height: 0;
   height: 300px;
}

.ligeis-featured-showcase__geometre .ligeis-featured-project-card--wide {
    aspect-ratio: 16 / 9;
}

.ligeis-featured-showcase__geometre .ligeis-featured-project-card--square {
    aspect-ratio: 1;
}

.ligeis-featured-showcase__geometre .ligeis-featured-project-card--portrait {
    aspect-ratio: 3 / 4;
}

.ligeis-featured-showcase__geometre .ligeis-featured-project-card__content {
    min-height: 0;
    height: 100%;
}

.ligeis-featured-showcase__vrd {
    position: relative;
    min-width: 0;
}

.ligeis-featured-showcase__slides,
.ligeis-featured-showcase__slide,
.ligeis-featured-showcase__slide .ligeis-featured-project-card,
.ligeis-featured-showcase__slide .ligeis-featured-project-card__content,
.ligeis-featured-showcase__slide .ligeis-featured-showcase__image {
    height: 100%;
    min-height: calc((var(--ligeis-project-card-min-height) * 2) + var(--wp--preset--spacing--24, 24px));
}

.ligeis-featured-showcase__image {
    min-width: 0;
    min-height: var(--ligeis-project-card-min-height);
    margin: 0;
    overflow: hidden;
    border-radius: var(--ligeis-project-card-radius);
    background: var(--wp--preset--color--bg-secondary, #f4f6ff);
}

.ligeis-featured-showcase__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.ligeis-featured-showcase__slide[hidden] {
    display: none;
}

.ligeis-featured-showcase__slide.is-active {
    animation: ligeis-featured-showcase-fade 360ms ease both;
}

.ligeis-featured-showcase__dots {
    position: absolute;
    right: var(--wp--preset--spacing--16, 16px);
    bottom: var(--wp--preset--spacing--16, 16px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ligeis-featured-showcase__dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: color-mix(in srgb, var(--wp--preset--color--text-inverse, #fff) 62%, transparent);
    cursor: pointer;
}

.ligeis-featured-showcase__dots button[aria-current="true"] {
    width: 24px;
    background: var(--wp--preset--color--text-inverse, #fff);
}

@keyframes ligeis-featured-showcase-fade {
    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ligeis-featured-project-card__media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ligeis-featured-project-card__media::after {
    position: absolute;
    inset: 0;
    content: "";
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(7, 16, 35, 0) 12%, rgba(7, 16, 35, 0.18) 45%, rgba(7, 16, 35, 0.82) 100%),
        linear-gradient(90deg, rgba(7, 16, 35, 0.38) 0%, rgba(7, 16, 35, 0) 58%);
    transition: background 220ms ease;
}

.ligeis-featured-project-card__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 260ms ease, filter 260ms ease;
}

.ligeis-featured-project-card:hover .ligeis-featured-project-card__media img,
.ligeis-featured-project-card:focus-within .ligeis-featured-project-card__media img {
    transform: scale(1.045);
    filter: saturate(1.02) contrast(1.02);
}

.ligeis-featured-project-card:hover .ligeis-featured-project-card__media::after,
.ligeis-featured-project-card:focus-within .ligeis-featured-project-card__media::after {
    background:
        linear-gradient(180deg, rgba(7, 16, 35, 0.04) 0%, rgba(7, 16, 35, 0.28) 34%, rgba(7, 16, 35, 0.88) 100%),
        linear-gradient(90deg, rgba(7, 16, 35, 0.42) 0%, rgba(7, 16, 35, 0.04) 70%);
}

.ligeis-featured-project-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: var(--ligeis-project-card-min-height);
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: var(--wp--preset--spacing--24, 24px);
    color: var(--wp--preset--color--text-inverse, #fff);
    transition: padding-bottom 220ms ease;
}

.ligeis-featured-project-card__tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: var(--wp--preset--spacing--8, 8px);
    border-radius: 4px;
    padding: 5px 10px;
    background: var(--wp--preset--color--brand-primary, #4361ee);
    color: var(--wp--preset--color--text-inverse, #fff);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ligeis-featured-project-card__title {
    margin: 0;
    color: inherit;
    font-size: clamp(1.25rem, 1.08rem + 0.48vw, 1.5rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
    transform: translateY(0);
    transition: transform 220ms ease;
}

.ligeis-featured-project-card__title a {
    color: inherit;
    text-decoration: none;
}

.ligeis-featured-project-card__title a::after {
    position: absolute;
    inset: 0;
    content: "";
}

.ligeis-featured-project-card__excerpt {
    position: absolute;
    right: var(--wp--preset--spacing--24, 24px);
    bottom: var(--wp--preset--spacing--24, 24px);
    left: var(--wp--preset--spacing--24, 24px);
    display: -webkit-box;
    max-width: 34rem;
    height: 3.45rem;
    max-height: 3.45rem;
    margin: 0;
    color: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
    opacity: 0;
    overflow-wrap: anywhere;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 220ms ease;
}

.ligeis-featured-project-card:hover .ligeis-featured-project-card__title,
.ligeis-featured-project-card:focus-within .ligeis-featured-project-card__title {
    transform: translateY(-2px);
}

.ligeis-featured-project-card:hover .ligeis-featured-project-card__content,
.ligeis-featured-project-card:focus-within .ligeis-featured-project-card__content {
    padding-bottom: calc(var(--wp--preset--spacing--24, 24px) + 3.45rem + var(--wp--preset--spacing--8, 8px));
}

.ligeis-featured-project-card:hover .ligeis-featured-project-card__excerpt,
.ligeis-featured-project-card:focus-within .ligeis-featured-project-card__excerpt {
    opacity: 1;
    transform: translateY(0);
}

.ligeis-geometre-gallery {
    display: grid;
    gap: var(--wp--preset--spacing--32, 32px);
}

.ligeis-geometre-gallery__filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--8, 8px);
}

.ligeis-geometre-gallery__filters button {
    border: 1px solid var(--wp--preset--color--border-default, #b8c7ff);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    background: var(--wp--preset--color--bg-primary, #fff);
    color: var(--wp--preset--color--text-primary, #151515);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ligeis-geometre-gallery__filters button:hover,
.ligeis-geometre-gallery__filters button:focus-visible,
.ligeis-geometre-gallery__filters button.is-active {
    border-color: var(--wp--preset--color--brand-primary, #4361ee);
    background: var(--wp--preset--color--brand-primary, #4361ee);
    color: var(--wp--preset--color--text-inverse, #fff);
}

.ligeis-geometre-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--wp--preset--spacing--24, 24px);
}

.ligeis-geometre-gallery__item {
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--wp--preset--color--bg-secondary, #f4f6ff);
}

.ligeis-geometre-gallery__item[hidden] {
    display: none;
}

.ligeis-geometre-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ligeis-geometre-gallery__item::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 65%;
    content: "";
    background: linear-gradient(180deg, transparent 5%, rgba(7, 16, 35, 0.86) 100%);
    pointer-events: none;
}

.ligeis-geometre-gallery__caption {
    position: absolute;
    right: var(--wp--preset--spacing--16, 16px);
    bottom: var(--wp--preset--spacing--16, 16px);
    left: var(--wp--preset--spacing--16, 16px);
    z-index: 1;
    color: var(--wp--preset--color--text-inverse, #fff);
}

.ligeis-geometre-gallery__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ligeis-geometre-gallery__tags span {
    display: inline-flex;
    border-radius: 4px;
    padding: 5px 8px;
    background: var(--wp--preset--color--brand-primary, #4361ee);
    color: var(--wp--preset--color--text-inverse, #fff);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ligeis-geometre-gallery__caption h3 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.15rem, 1.02rem + 0.32vw, 1.35rem);
    line-height: 1.15;
}

.ligeis-geometre-gallery__empty {
    margin: 0;
    padding: var(--wp--preset--spacing--24, 24px);
    border: 1px dashed var(--wp--preset--color--border-default, #b8c7ff);
    border-radius: 16px;
    color: var(--wp--preset--color--text-muted, #5f6470);
}

.editor-styles-wrapper .ligeis-featured-projects-editor,
.editor-styles-wrapper .block-editor-block-list__block[data-type="ligeis/featured-projects"],
.editor-styles-wrapper .block-editor-block-list__block[data-type="ligeis/featured-projects-showcase"],
.editor-styles-wrapper .block-editor-block-list__block[data-type="ligeis/featured-projects"] > div,
.editor-styles-wrapper .block-editor-block-list__block[data-type="ligeis/featured-projects-showcase"] > div,
.editor-styles-wrapper .block-editor-block-list__block[data-type="ligeis/featured-projects"] .components-disabled,
.editor-styles-wrapper .block-editor-block-list__block[data-type="ligeis/featured-projects-showcase"] .components-disabled,
.editor-styles-wrapper .block-editor-block-list__block[data-type="ligeis/featured-projects"] .components-server-side-render,
.editor-styles-wrapper .block-editor-block-list__block[data-type="ligeis/featured-projects-showcase"] .components-server-side-render,
.editor-styles-wrapper .wp-block-ligeis-featured-projects,
.editor-styles-wrapper .wp-block-ligeis-featured-projects-showcase,
.editor-styles-wrapper .ligeis-featured-projects,
.editor-styles-wrapper .ligeis-featured-showcase,
.editor-styles-wrapper .wp-block-ligeis-featured-projects > div,
.editor-styles-wrapper .wp-block-ligeis-featured-projects-showcase > div,
.editor-styles-wrapper .ligeis-featured-projects-empty {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.editor-styles-wrapper .block-editor-block-list__block[data-type="ligeis/featured-projects"] {
    contain: layout paint;
}

.editor-styles-wrapper .block-editor-block-list__block[data-type="ligeis/featured-projects-showcase"] {
    contain: layout paint;
}

.editor-styles-wrapper .ligeis-featured-projects--grid,
.editor-styles-wrapper .ligeis-featured-projects--mosaic {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    grid-template-rows: auto;
}

.editor-styles-wrapper .ligeis-featured-projects--mosaic .ligeis-featured-project-card:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    min-height: 235px;
}

@media (max-width: 900px) {
    .ligeis-featured-projects--grid,
    .ligeis-featured-projects--mosaic,
    .ligeis-featured-showcase {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .ligeis-featured-projects--mosaic .ligeis-featured-project-card:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .ligeis-featured-project-card,
    .ligeis-featured-projects--mosaic .ligeis-featured-project-card,
    .ligeis-featured-projects--mosaic .ligeis-featured-project-card:nth-child(3) {
        min-height: var(--ligeis-project-card-min-height);
    }

    .ligeis-featured-showcase__slides,
    .ligeis-featured-showcase__slide,
    .ligeis-featured-showcase__slide .ligeis-featured-project-card,
    .ligeis-featured-showcase__slide .ligeis-featured-project-card__content,
    .ligeis-featured-showcase__slide .ligeis-featured-showcase__image {
        min-height: var(--ligeis-project-card-min-height);
    }

    .ligeis-geometre-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .ligeis-geometre-gallery__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ligeis-featured-project-card__media::after,
    .ligeis-featured-project-card__media img,
    .ligeis-featured-project-card__title,
    .ligeis-featured-project-card__excerpt,
    .ligeis-featured-showcase__slide.is-active {
        transition: none;
        animation: none;
    }

    .ligeis-featured-project-card:hover .ligeis-featured-project-card__media img,
    .ligeis-featured-project-card:focus-within .ligeis-featured-project-card__media img,
    .ligeis-featured-project-card:hover .ligeis-featured-project-card__title,
    .ligeis-featured-project-card:focus-within .ligeis-featured-project-card__title,
    .ligeis-featured-project-card:hover .ligeis-featured-project-card__excerpt,
    .ligeis-featured-project-card:focus-within .ligeis-featured-project-card__excerpt {
        transform: none;
    }
}

.ligeis-projects-archive {
    display: grid;
    gap: var(--wp--preset--spacing--32, 32px);
    width: 100%;
    max-width: 1280px !important;
    margin: 0 auto;
}

.ligeis-projects-archive__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--wp--preset--spacing--16, 16px);
    width: 100%;
    border: 1px solid var(--wp--preset--color--border-default, #b8c7ff);
    border-radius: 24px;
    padding: var(--wp--preset--spacing--16, 16px);
    background: var(--wp--preset--color--bg-secondary, #fff) !important;
}

.ligeis-projects-archive__field {
    display: grid;
    flex: 1 1 280px;
    gap: var(--wp--preset--spacing--8, 8px);
    min-width: min(100%, 280px);
}

.ligeis-projects-archive__field br {
    display: none;
}

.ligeis-projects-archive__field span {
    color: var(--wp--preset--color--text-primary, #1f1f1f);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.ligeis-projects-archive__field select {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--wp--preset--color--border-default, #b8c7ff);
    border-radius: 12px;
    padding: 0 var(--wp--preset--spacing--16, 16px);
    background-color: #fff !important;
    color: var(--wp--preset--color--text-primary, #1f1f1f);
    font: inherit;
}

.ligeis-projects-archive__filters button,
.ligeis-projects-archive__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 12px;
    padding: 0 var(--wp--preset--spacing--24, 24px);
    font-weight: 800;
    text-decoration: none;
}

.ligeis-projects-archive__filters button {
    border: 1px solid var(--wp--preset--color--brand-primary, #4361ee);
    background: var(--wp--preset--color--brand-primary, #4361ee);
    color: var(--wp--preset--color--text-inverse, #fff);
    cursor: pointer;
}

.ligeis-projects-archive__reset {
    border: 1px solid var(--wp--preset--color--brand-primary, #4361ee);
    color: var(--wp--preset--color--brand-primary, #4361ee);
}

.ligeis-projects-archive__summary {
    color: var(--wp--preset--color--text-secondary, #4a4a4a);
    font-weight: 700;
}

.ligeis-projects-archive__grid {
    --ligeis-project-card-min-height: 235px;
}

.ligeis-projects-archive__pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--wp--preset--spacing--8, 8px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ligeis-projects-archive__pagination .page-numbers a,
.ligeis-projects-archive__pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--wp--preset--color--border-default, #b8c7ff);
    border-radius: 999px;
    padding: 0 var(--wp--preset--spacing--16, 16px);
    color: var(--wp--preset--color--text-primary, #1f1f1f);
    font-weight: 800;
    text-decoration: none;
}

.ligeis-projects-archive__pagination .page-numbers .current {
    border-color: var(--wp--preset--color--brand-primary, #4361ee);
    background: var(--wp--preset--color--brand-primary, #4361ee);
    color: var(--wp--preset--color--text-inverse, #fff);
}

.ligeis-projects-archive__empty {
    border: 1px dashed var(--wp--preset--color--border-default, #b8c7ff);
    border-radius: 16px;
    padding: var(--wp--preset--spacing--24, 24px);
}

@media (max-width: 600px) {
    .ligeis-projects-archive__filters {
        align-items: stretch;
    }

    .ligeis-projects-archive__filters button,
    .ligeis-projects-archive__reset {
        width: 100%;
    }
}
