.gpp-portfolio,
.gpp-single {
    --gpp-ink: #1d3035;
    --gpp-line: #dbe2e3;
    --gpp-accent: #205e61;
    color: var(--gpp-ink);
    width: 100%;
    box-sizing: border-box;
}
.gpp-portfolio *,
.gpp-single * {
    box-sizing: border-box;
}
.gpp-controls {
    margin-bottom: 28px;
}
.gpp-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.gpp-category-nav label {
    cursor: pointer;
}
.gpp-category-nav input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.gpp-category-nav label > span {
    display: flex;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--gpp-line);
    align-items: center;
}
.gpp-category-nav input:checked + span {
    background: var(--gpp-ink);
    color: white;
}
.gpp-category-nav input:focus-visible + span {
    outline: 3px solid #36949b;
    outline-offset: 3px;
}
.gpp-category-nav .gpp-style-pills > span {
    border-radius: 30px;
}
.gpp-category-nav .gpp-style-text > span {
    border: 0;
    border-bottom: 1px solid;
}
.gpp-category-nav .gpp-style-cards > span,
.gpp-category-nav .gpp-style-image > span {
    display: grid;
    max-width: 180px;
}
.gpp-category img {
    width: 120px;
    height: 80px;
    object-fit: cover;
}
.gpp-filters {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}
.gpp-filter {
    display: grid;
    gap: 7px;
    min-width: 150px;
    flex: 1;
}
.gpp-filter > span:first-child {
    font-size: 13px;
    font-weight: 600;
}
.gpp-filter input:not([type='checkbox']):not([type='radio']),
.gpp-filter select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--gpp-line);
    background: #fff;
    color: var(--gpp-ink);
    padding: 10px;
    border-radius: 0;
}
.gpp-filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.gpp-filter-options > span {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
.gpp-items {
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: var(--gap);
    position: relative;
}
.gpp-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--gpp-line);
    background: white;
    padding-bottom: 18px;
}
.gpp-node:not(.gpp-node-image) {
    padding: 0 20px;
}
.gpp-node h2 {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.2;
    margin: 20px 0 12px;
}
.gpp-node a {
    color: inherit;
    text-decoration: none;
}
.gpp-node p {
    font-size: 15px;
    line-height: 1.7;
}
.gpp-node-image img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
}
.gpp-node-image > a {
    display: block;
}
.gpp-chip {
    display: inline-block;
    font-size: 12px;
    margin: 5px 8px 5px 0;
}
.gpp-button,
.gpp-apply,
.gpp-more {
    display: inline-block;
    background: var(--gpp-ink);
    color: white !important;
    border: 0;
    padding: 12px 20px;
    text-decoration: none;
    cursor: pointer;
}
.gpp-controls button {
    margin-right: 8px;
}
.gpp-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 26px 0;
}
.gpp-pagination a {
    padding: 8px 14px;
    border: 1px solid var(--gpp-line);
    text-decoration: none;
    color: inherit;
}
.gpp-pagination [aria-current] {
    background: var(--gpp-ink);
    color: white;
}
.gpp-count {
    font-size: 13px;
    opacity: 0.7;
}
.gpp-more {
    margin: 24px auto;
    display: block;
}
.gpp-layout-masonry {
    display: block;
    columns: var(--cols);
    column-gap: var(--gap);
}
.gpp-layout-masonry .gpp-card {
    break-inside: avoid;
    margin-bottom: var(--gap);
}
.gpp-layout-masonry .gpp-node-image img {
    height: auto;
}
.gpp-layout-asymmetrical .gpp-card:nth-child(5n + 1),
.gpp-layout-metro .gpp-card:nth-child(6n + 1) {
    grid-column: span 2;
}
.gpp-layout-metro .gpp-card:nth-child(6n + 1) .gpp-node-image img {
    height: 380px;
}
.gpp-layout-slider,
.gpp-layout-carousel {
    display: flex;
    overflow: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.gpp-layout-slider > .gpp-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
.gpp-layout-carousel > .gpp-card {
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    scroll-snap-align: start;
}
.gpp-slider-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}
.gpp-slider-nav button {
    background: transparent;
    color: inherit;
    width: 44px;
    height: 44px;
    border: 1px solid var(--gpp-ink);
    cursor: pointer;
}
.gpp-nav-circle button {
    border-radius: 50%;
}
.gpp-nav-plain button {
    border: 0;
}
.gpp-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 18px;
}
.gpp-dots button {
    width: 9px;
    height: 9px;
    background: var(--gpp-ink);
    border: 0;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
}
.gpp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.gpp-gallery img {
    width: 100%;
    height: auto;
    display: block;
}
.gpp-single > .gpp-node {
    margin-bottom: 24px;
}
.gpp-single .gpp-node-image img {
    height: auto;
    max-height: 800px;
}
.gpp-dynamic-field {
    margin: 16px 0;
}
.gpp-dynamic-field dt {
    font-weight: 600;
    font-size: 13px;
}
.gpp-dynamic-field dd {
    margin: 6px 0 0;
}
.gpp-field-group {
    border-left: 1px solid var(--gpp-line);
    padding-left: 18px;
}
.gpp-lightbox-dialog {
    padding: 16px;
    background: #111;
    border: 0;
    max-width: 96vw;
    max-height: 94vh;
}
.gpp-lightbox-dialog::backdrop {
    background: #000c;
}
.gpp-lightbox-dialog img {
    display: block;
    max-width: 88vw;
    max-height: 84vh;
    object-fit: contain;
}
.gpp-lightbox-dialog button {
    position: absolute;
    right: 20px;
    top: 20px;
    border: 0;
    background: white;
    color: black;
    font-size: 28px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}
.gpp-portfolio[aria-busy='true'] {
    opacity: 0.6;
}
.gpp-error {
    color: #9b2525;
}
.gpp-visible-tablet,
.gpp-visible-mobile {
    display: none;
}
@media (min-width: 1025px) {
    .gpp-visible-desktop {
        display: revert;
    }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .gpp-items {
        --cols: var(--tablet) !important;
    }
    .gpp-visible-desktop {
        display: none;
    }
    .gpp-visible-tablet {
        display: revert;
    }
}
@media (max-width: 640px) {
    .gpp-items {
        --cols: var(--mobile) !important;
    }
    .gpp-layout-asymmetrical .gpp-card,
    .gpp-layout-metro .gpp-card {
        grid-column: auto;
    }
    .gpp-filters {
        display: grid;
        grid-template-columns: 1fr;
    }
    .gpp-visible-desktop,
    .gpp-visible-tablet {
        display: none;
    }
    .gpp-visible-mobile {
        display: revert;
    }
    .gpp-category-nav {
        gap: 5px;
    }
    .gpp-category-nav label > span {
        padding: 8px 12px;
    }
}

/* Visual editor and public renderer share the same responsive style variables. */
.gpp-portfolio,
.gpp-single {
    min-width: 0;
    max-width: 100%;
}
.gpp-node {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--gpp-color-d, inherit);
    background: var(--gpp-background-d, transparent);
    font-size: var(--gpp-font-size-d, inherit);
    padding: var(--gpp-padding-d, 0);
    margin: var(--gpp-margin-d, 0);
    border-radius: var(--gpp-border-radius-d, 0);
    border-width: var(--gpp-border-width-d, 0);
    border-style: solid;
    border-color: var(--gpp-border-color-d, transparent);
    width: var(--gpp-width-d, auto);
    min-height: var(--gpp-min-height-d, 0);
    gap: var(--gpp-gap-d, 0);
    display: var(--gpp-display-d, block);
    flex-direction: var(--gpp-direction-d, column);
    align-items: var(--gpp-align-items-d, stretch);
    justify-content: var(--gpp-justify-content-d, normal);
    grid-template-columns: repeat(var(--gpp-columns-d, 1), minmax(0, 1fr));
    grid-column: span var(--gpp-span-d, 1);
    grid-row: span var(--gpp-row-span-d, 1);
}
.gpp-node:not(.gpp-node-image) {
    padding: var(--gpp-padding-d, 0 20px);
}
.gpp-node-image img {
    object-fit: var(--gpp-object-fit-d, cover);
}
.gpp-node-title h2,
.gpp-node-text p {
    font-size: inherit;
}
.gpp-node-title {
    font-size: var(--gpp-font-size-d, 26px);
}
.gpp-node-container > .gpp-node {
    max-width: 100%;
}
.gpp-empty-container {
    display: block;
    min-height: 20px;
    width: 100%;
}
.gpp-items > .gpp-card-custom-span {
    grid-column: span var(--card-cols) !important;
    grid-row: span var(--card-rows);
}
.gpp-card {
    overflow-wrap: anywhere;
}
.gpp-slider-shell {
    min-width: 0;
    max-width: 100%;
    position: relative;
}
.gpp-items.gpp-slider-mode-fade {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    scroll-snap-type: none;
}
.gpp-slider-mode-fade > .gpp-card {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease;
    min-width: 0;
}
.gpp-slider-mode-fade > .gpp-card.gpp-active-slide {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.gpp-items.gpp-slider-mode-vertical {
    display: flex;
    flex-direction: column;
    height: var(--gpp-slider-height, 560px);
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
}
.gpp-slider-mode-vertical > .gpp-card {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    overflow-y: auto;
}
.gpp-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0;
    max-width: 100%;
}
.gpp-thumbnails button {
    flex: 0 0 76px;
    max-width: 120px;
    min-height: 54px;
    padding: 3px;
    background: transparent;
    color: inherit;
    border: 1px solid var(--gpp-line);
    cursor: pointer;
    font-size: 11px;
    overflow-wrap: anywhere;
}
.gpp-thumbnails img {
    display: block;
    width: 68px;
    height: 50px;
    object-fit: cover;
}
.gpp-thumbnails [aria-current='true'],
.gpp-dots [aria-current='true'] {
    outline: 2px solid var(--gpp-accent);
    outline-offset: 2px;
}
.gpp-autoplay-toggle {
    background: transparent;
    color: inherit;
    border: 1px solid var(--gpp-line);
    padding: 8px 12px;
    margin: 8px 0;
    cursor: pointer;
}
.gpp-slider-nav button:disabled {
    opacity: 0.35;
    cursor: default;
}
.gpp-gallery figure {
    margin: 0;
    min-width: 0;
}
.gpp-gallery figcaption {
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0;
    color: inherit;
}
.gpp-layout-asymmetrical,
.gpp-layout-metro {
    grid-auto-flow: dense;
}
.gpp-visible-tablet,
.gpp-visible-mobile {
    display: none !important;
}
@media (min-width: 641px) and (max-width: 1024px) {
    .gpp-node {
        color: var(--gpp-color-t, inherit);
        background: var(--gpp-background-t, transparent);
        font-size: var(--gpp-font-size-t, inherit);
        padding: var(--gpp-padding-t, 0);
        margin: var(--gpp-margin-t, 0);
        border-radius: var(--gpp-border-radius-t, 0);
        border-width: var(--gpp-border-width-t, 0);
        border-color: var(--gpp-border-color-t, transparent);
        width: var(--gpp-width-t, auto);
        min-height: var(--gpp-min-height-t, 0);
        gap: var(--gpp-gap-t, 0);
        display: var(--gpp-display-t, block);
        flex-direction: var(--gpp-direction-t, column);
        align-items: var(--gpp-align-items-t, stretch);
        justify-content: var(--gpp-justify-content-t, normal);
        grid-template-columns: repeat(var(--gpp-columns-t, 1), minmax(0, 1fr));
        grid-column: span var(--gpp-span-t, 1);
        grid-row: span var(--gpp-row-span-t, 1);
    }
    .gpp-node:not(.gpp-node-image) {
        padding: var(--gpp-padding-t, 0 20px);
    }
    .gpp-node-image img {
        object-fit: var(--gpp-object-fit-t, cover);
    }
    .gpp-items > .gpp-card-custom-span {
        grid-column: span var(--card-cols-t) !important;
    }
    .gpp-visible-desktop {
        display: none !important;
    }
    .gpp-visible-tablet {
        display: var(--gpp-display-t, block) !important;
    }
}
@media (max-width: 640px) {
    .gpp-node {
        color: var(--gpp-color-m, inherit);
        background: var(--gpp-background-m, transparent);
        font-size: var(--gpp-font-size-m, inherit);
        padding: var(--gpp-padding-m, 0);
        margin: var(--gpp-margin-m, 0);
        border-radius: var(--gpp-border-radius-m, 0);
        border-width: var(--gpp-border-width-m, 0);
        border-color: var(--gpp-border-color-m, transparent);
        width: var(--gpp-width-m, auto);
        min-height: var(--gpp-min-height-m, 0);
        gap: var(--gpp-gap-m, 0);
        display: var(--gpp-display-m, block);
        flex-direction: var(--gpp-direction-m, column);
        align-items: var(--gpp-align-items-m, stretch);
        justify-content: var(--gpp-justify-content-m, normal);
        grid-template-columns: repeat(var(--gpp-columns-m, 1), minmax(0, 1fr));
        grid-column: span var(--gpp-span-m, 1);
        grid-row: span var(--gpp-row-span-m, 1);
    }
    .gpp-node:not(.gpp-node-image) {
        padding: var(--gpp-padding-m, 0 20px);
    }
    .gpp-node-image img {
        object-fit: var(--gpp-object-fit-m, cover);
    }
    .gpp-visible-desktop,
    .gpp-visible-tablet {
        display: none !important;
    }
    .gpp-visible-mobile {
        display: var(--gpp-display-m, block) !important;
    }
    .gpp-items > .gpp-card-custom-span {
        grid-column: span var(--card-cols-m) !important;
        grid-row: auto;
    }
    .gpp-slider-mode-vertical {
        max-height: 75vh;
    }
    .gpp-slider-nav button {
        min-width: 44px;
        min-height: 44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .gpp-slider-mode-fade > .gpp-card {
        transition: none;
    }
    .gpp-items {
        scroll-behavior: auto;
    }
}
.gpp-lightbox-dialog {
    width: min(1100px, 96vw);
    max-width: 96vw;
    color: white;
    overflow: auto;
}
.gpp-lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 44px;
    margin-bottom: 10px;
}
.gpp-lightbox-position {
    margin-right: auto;
    font-size: 13px;
}
.gpp-lightbox-dialog .gpp-lightbox-toolbar button,
.gpp-lightbox-dialog .gpp-lightbox-stage button {
    position: static;
    flex: none;
    background: #fff;
    color: #111;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
}
.gpp-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
    touch-action: pan-y;
}
.gpp-lightbox-dialog .gpp-lightbox-stage img {
    min-width: 0;
    max-width: calc(100% - 112px);
    max-height: 76vh;
    object-fit: contain;
    height: auto;
}
.gpp-lightbox-caption {
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
    overflow-wrap: anywhere;
    margin: 12px 0 0;
}
.gpp-lightbox-dialog:fullscreen {
    max-width: 100vw;
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gpp-lightbox-dialog [hidden] {
    display: none !important;
}
@media (max-width: 640px) {
    .gpp-lightbox-stage {
        gap: 4px;
    }
    .gpp-lightbox-dialog .gpp-lightbox-stage button {
        width: 38px;
        min-width: 38px;
    }
    .gpp-lightbox-dialog .gpp-lightbox-stage img {
        max-width: calc(100% - 84px);
        max-height: 72vh;
    }
}

/* Ordered photo/video collections share the same responsive project gallery. */
.gpp-gallery.gpp-mixed-gallery{display:grid;grid-template-columns:repeat(var(--media-cols,3),minmax(0,1fr));gap:18px}
.gpp-media-item{margin:0;min-width:0;overflow:hidden}
.gpp-media-item video{display:block;width:100%;max-width:100%;height:auto;background:#101820}
.gpp-media-item img{display:block;width:100%;height:auto}
.gpp-media-item figcaption{padding:8px 0;font-size:14px;line-height:1.5}
@media(max-width:1024px){.gpp-gallery.gpp-mixed-gallery{grid-template-columns:repeat(var(--media-tablet,2),minmax(0,1fr))}}
@media(max-width:640px){.gpp-gallery.gpp-mixed-gallery{grid-template-columns:repeat(var(--media-mobile,1),minmax(0,1fr))}}

.gpp-media-layout-slider .gpp-mixed-gallery,
.gpp-media-layout-carousel .gpp-mixed-gallery {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
}
.gpp-media-layout-slider .gpp-media-item,
.gpp-media-layout-carousel .gpp-media-item {
    flex: 0 0 calc((100% - (var(--media-cols) - 1) * 16px) / var(--media-cols));
    min-width: 0;
    scroll-snap-align: start;
}
.gpp-project-media-layout .gpp-media-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 12px;
}
.gpp-project-media-layout .gpp-media-navigation button,
.gpp-slider-nav button {
    box-sizing: border-box;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: var(--gpp-media-arrow-size, 44px);
    height: var(--gpp-media-arrow-size, 44px);
    margin: 0;
    padding: 0;
    border: 1px solid #ccd3d9;
    border-radius: 50%;
    background: #fff;
    color: #19232c;
    box-shadow: none;
    cursor: pointer;
}
.gpp-project-media-layout .gpp-media-arrows-square button,
.gpp-slider-nav.gpp-nav-square button { border-radius: 6px; }
.gpp-project-media-layout .gpp-media-arrows-plain button,
.gpp-slider-nav.gpp-nav-plain button { border-color: transparent; }
.gpp-project-media-layout .gpp-media-navigation button:hover,
.gpp-slider-nav button:not(:disabled):hover {
    background: #19232c;
    border-color: #19232c;
    color: #fff;
}
.gpp-project-media-layout .gpp-media-navigation button:focus-visible,
.gpp-mixed-gallery:focus-visible,
.gpp-slider-nav button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.gpp-media-navigation button::after,
.gpp-slider-nav button::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}
.gpp-media-navigation [data-media-step="-1"]::after,
.gpp-slider-nav [data-slide="-1"]::after { transform: rotate(-135deg); }
[dir="rtl"] .gpp-media-navigation [data-media-step="1"]::after { transform: rotate(-135deg); }
[dir="rtl"] .gpp-media-navigation [data-media-step="-1"]::after { transform: rotate(45deg); }
@media (max-width: 1024px) {
    .gpp-media-layout-slider .gpp-media-item,
    .gpp-media-layout-carousel .gpp-media-item {
        flex-basis: calc((100% - (var(--media-tablet) - 1) * 16px) / var(--media-tablet));
    }
}
@media (max-width: 640px) {
    .gpp-media-layout-slider .gpp-media-item,
    .gpp-media-layout-carousel .gpp-media-item {
        flex-basis: calc((100% - (var(--media-mobile) - 1) * 16px) / var(--media-mobile));
    }
}
@media (prefers-reduced-motion: reduce) {
    .gpp-mixed-gallery { scroll-behavior: auto; }
}

/* Explicit project image shape controls must not inherit the legacy 800px cap. */
.gpp-single .gpp-node-image img.gpp-single-main-image{max-height:none}


/* Single project image blocks follow the rendered image height. */
.gpp-single .gpp-node.gpp-node-image {
    min-height: 0;
    margin-block-end: 0;
}

[dir="rtl"] .gpp-nav-direction-horizontal [data-slide="1"]::after { transform: rotate(-135deg); }
[dir="rtl"] .gpp-nav-direction-horizontal [data-slide="-1"]::after { transform: rotate(45deg); }
.gpp-nav-direction-vertical [data-slide="1"]::after { transform: rotate(135deg); }
.gpp-nav-direction-vertical [data-slide="-1"]::after { transform: rotate(-45deg); }
