body.works-gallery-fullscreen-template {
    margin: 0;
    background: #4a566036;
}

body.works-gallery-fullscreen-template .works-gallery {
    margin: 0;
}

body.works-gallery-fullscreen-template .works-gallery-hover-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9996;
    width: 100%;
    height: 18px;
    pointer-events: auto;
}

body.admin-bar.works-gallery-fullscreen-template .works-gallery-hover-header {
    top: 32px;
}

body.works-gallery-fullscreen-template .works-gallery-hover-header::before {
    content: "";
    position: absolute;
    inset: 0;
}

body.works-gallery-fullscreen-template .works-gallery-hover-header .l-header,
body.works-gallery-fullscreen-template .works-gallery-hover-header .l-fixHeader {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-102%) !important;
    transition: transform .28s ease, opacity .2s ease, visibility .2s ease;
    pointer-events: none;
}

body.works-gallery-fullscreen-template .works-gallery-hover-header .l-header {
    display: block;
    background: var(--color_header_bg, #fff);
    box-shadow: 0 8px 26px rgba(0,0,0,.12);
}

body.works-gallery-fullscreen-template .works-gallery-hover-header .l-fixHeader {
    display: none;
}

body.works-gallery-fullscreen-template .works-gallery-hover-header:hover .l-header,
body.works-gallery-fullscreen-template .works-gallery-hover-header:focus-within .l-header,
body.works-gallery-fullscreen-template.works-gallery-header-active .works-gallery-hover-header .l-header {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) !important;
    pointer-events: auto;
}

body.works-gallery-fullscreen-template .p-spMenu {
    z-index: 10001;
}

.works-gallery {
    --wg-page-bg: #4a566036;
    --wg-text: #0b0b0b;
    --wg-muted: #6c6c6c;
    --wg-chip-bg: #f6f6f6;
    --wg-chip-bg-active: #ececec;
    --wg-chip-selected-bg: #111;
    --wg-chip-selected-text: #fff;
    --wg-sidebar: 180px;
    --wg-shell-max: 940px;
    --wg-frame: 6px;
    color: var(--wg-text);
    background: var(--wg-page-bg);
    min-height: 100vh;
    margin: 0 calc(50% - 50vw);
    padding: 28px 30px 52px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.35;
}

.works-gallery *,
.works-gallery *::before,
.works-gallery *::after {
    box-sizing: border-box;
}

.works-gallery__site-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

.works-gallery__brand {
    font-size: 14px;
    font-weight: 400;
}

.works-gallery__brand-image {
    display: block;
    width: auto;
    max-width: min(220px, 48vw);
    max-height: 58px;
    object-fit: contain;
}

.works-gallery__toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
}

.works-gallery__language {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
}

.works-gallery__layout {
    display: grid;
    grid-template-columns: var(--wg-sidebar) minmax(0, 1fr) var(--wg-sidebar);
    align-items: start;
}

.works-gallery__filters {
    position: sticky;
    top: 30px;
    min-height: calc(100vh - 60px);
}

.works-gallery__filter-toggle {
    display: none;
    margin: 0 0 22px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--wg-text);
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.works-gallery__filter-group {
    margin-bottom: 24px;
}

.works-gallery__filter-group--nav {
    margin-bottom: 18px;
}

.works-gallery__filter-title {
    display: block;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 400;
}

.works-gallery__filter-group--search {
    margin-bottom: 0;
}

.works-gallery__search-input {
    width: 100%;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid rgba(17,17,17,.45);
    border-radius: 0;
    background: transparent;
    color: var(--wg-text);
    padding: 7px 2px;
    font: inherit;
    line-height: 1.4;
}

.works-gallery__search-input:focus {
    border-bottom-color: var(--wg-text);
    outline: 0;
}

.works-gallery__search-input::placeholder {
    color: rgba(17,17,17,.5);
}

.works-gallery__filter-list,
.works-gallery__filter-list--nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.works-gallery__mobile-sheet .works-gallery__filter-list {
    gap: 8px;
}

.works-gallery__filter-button,
.works-gallery__clear,
.works-gallery__lang-button,
.works-gallery__sheet-close {
    border: 0;
    background: transparent;
    color: var(--wg-text);
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.works-gallery__filter-button,
.works-gallery__clear--nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    border-radius: 6px;
    background: var(--wg-chip-bg);
    padding: 7px 11px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.works-gallery__mobile-sheet .works-gallery__filter-button,
.works-gallery__mobile-sheet .works-gallery__clear,
.works-gallery__sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: var(--wg-chip-bg);
    padding: 7px 10px;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.works-gallery__lang-button {
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,.28);
}

.works-gallery__sheet-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 34px;
    height: 34px;
    border-color: transparent;
    border-radius: 50%;
    background: #f8f8f8;
    color: #111;
    padding: 0;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.works-gallery__mobile-sheet .works-gallery__filter-group {
    margin-bottom: 22px;
}

.works-gallery__mobile-sheet .works-gallery__filter-title {
    margin-bottom: 10px;
    font-weight: 700;
}

.works-gallery__mobile-sheet .works-gallery__search-input {
    border: 1px solid rgba(17,17,17,.18);
    border-radius: 6px;
    background: #fff;
    padding: 10px 12px;
}

.works-gallery__clear--sheet {
    margin: 0 0 22px;
    min-width: 54px;
}

.works-gallery__filter-button:hover,
.works-gallery__clear:hover,
.works-gallery__clear[aria-pressed="true"] {
    background: var(--wg-chip-bg-active);
    text-decoration: none;
}

.works-gallery__filter-button[aria-pressed="true"] {
    background: var(--wg-chip-selected-bg);
    color: var(--wg-chip-selected-text);
    text-decoration: none;
}

.works-gallery__lang-button:hover,
.works-gallery__lang-button[aria-pressed="true"] {
    color: rgba(255,255,255,.95);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.works-gallery__clear--nav {
    margin-bottom: 14px;
}

.works-gallery__content {
    width: min(100%, var(--wg-shell-max));
    justify-self: center;
}

.works-gallery__masonry {
    display: flex;
    align-items: flex-start;
}

.works-gallery__column {
    display: flex;
    flex-direction: column;
}

.works-gallery__card {
    width: 100%;
    border: var(--wg-frame) solid #fff;
    padding: 0;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    box-shadow: none;
}

.works-gallery__card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #fff;
    transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.works-gallery[data-hover-effect="scale-dim"] .works-gallery__card:hover img {
    transform: scale(1.025);
    filter: brightness(.9);
}

.works-gallery[data-hover-effect="scale"] .works-gallery__card:hover img {
    transform: scale(1.025);
}

.works-gallery[data-hover-effect="dim"] .works-gallery__card:hover img {
    filter: brightness(.9);
}

.works-gallery[data-hover-effect="brighten"] .works-gallery__card:hover img {
    filter: brightness(1.08);
}

.works-gallery__empty,
.works-gallery__admin-message {
    padding: 16px;
    background: #fff;
    border: 1px solid #d7d7d7;
}

.works-gallery__mobile-sheet {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 9998;
    max-height: min(74vh, 640px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 28px;
    padding: 62px 24px calc(24px + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 44px rgba(0,0,0,.16);
    opacity: 0;
    transform: translateY(calc(100% + 28px));
    transition: transform .24s ease, opacity .2s ease;
    will-change: transform, opacity;
}

.works-gallery--sheet-open .works-gallery__mobile-sheet {
    opacity: 1;
    transform: translateY(0);
}

.works-gallery--sheet-dragging .works-gallery__mobile-sheet {
    transition: none;
}

.works-gallery__mobile-footer {
    display: none;
}

.works-gallery__mobile-footer-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 48px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #222;
    padding: 5px 8px 4px;
    font: 400 10px/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

.works-gallery__mobile-footer-button:hover,
.works-gallery__mobile-footer-button:focus {
    background: rgba(0,0,0,.04);
    color: #111;
    text-decoration: none;
}

.works-gallery__footer-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 22px;
    flex: 0 0 22px;
}

.works-gallery__footer-icon--filter svg {
    display: block;
    width: 22px;
    height: 22px;
}

.works-gallery__footer-icon--home::before {
    content: "\e922";
    position: absolute;
    inset: 0;
    font-family: icomoon, sans-serif;
    font-size: 20px;
    line-height: 22px;
    text-align: center;
}

.works-gallery__footer-icon--top::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 6px;
    width: 12px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
}

.works-gallery__footer-label {
    display: block;
    max-width: 100%;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.works-gallery__sheet-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 24px;
    margin-bottom: 24px;
    touch-action: none;
}

.works-gallery__sheet-head::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 50%;
    width: 72px;
    height: 6px;
    border-radius: 999px;
    background: #d8d8d8;
    transform: translateX(-50%);
}

.works-gallery__sheet-title {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
}

.works-gallery__sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(0,0,0,.18);
    opacity: 0;
    transition: opacity .2s ease;
}

.works-gallery--sheet-open .works-gallery__sheet-backdrop {
    opacity: 1;
}

.works-gallery__modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: var(--wg-page-bg);
    color: var(--wg-text);
    padding: 28px clamp(18px, 6vw, 120px);
    font: 14px/1.35 Arial, Helvetica, sans-serif;
    text-align: left;
}

.works-gallery__modal[hidden] {
    display: none;
}

.works-gallery__modal *,
.works-gallery__modal *::before,
.works-gallery__modal *::after {
    box-sizing: border-box;
}

.works-gallery__modal-inner {
    width: min(950px, calc(100vw - 160px));
    min-height: calc(100vh - 56px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.works-gallery__work-stage {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: min(74vh, 714px);
    margin: 0;
    padding: clamp(34px, 4.2vw, 46px) clamp(36px, 5vw, 56px) 28px;
    background: #fff;
    color: #111;
}

.works-gallery__modal-image-wrap {
    min-height: 0;
    display: grid;
    place-items: center;
    background: #fafafa;
    overflow: hidden;
}

.works-gallery__modal-image {
    max-width: 100%;
    max-height: min(58vh, 600px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.works-gallery__stage-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding-top: 14px;
    color: #111;
    font-size: 13px;
}

.works-gallery__stage-title {
    min-width: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.works-gallery__image-nav {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
}

.works-gallery__image-dot {
    appearance: none;
    width: 10px;
    min-width: 10px;
    height: 22px;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #999;
    cursor: pointer;
    font: inherit;
    line-height: 22px;
    text-align: center;
}

.works-gallery__image-dot[aria-pressed="true"] {
    color: #000;
    font-weight: 700;
}

.works-gallery__modal-meta {
    width: min(520px, 100%);
    color: #000;
    line-height: 1.42;
    font-size: 14px;
}

.works-gallery__modal-title {
    margin: 0 0 10px;
    color: #000;
    font: 700 14px/1.42 Arial, Helvetica, sans-serif;
}

.works-gallery__modal-desc,
.works-gallery__modal-caption,
.works-gallery__modal-terms {
    white-space: pre-line;
    margin: 4px 0;
    color: #000;
}

.works-gallery__modal-terms {
    margin-top: 14px;
    font-weight: 700;
}

.works-gallery__modal-close,
.works-gallery__work-prev,
.works-gallery__work-next {
    position: absolute;
    appearance: none;
    border: 0;
    background: transparent;
    color: #a9a9a9;
    border-radius: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
}

.works-gallery__modal-close {
    top: 16px;
    right: 18px;
    z-index: 3;
    width: 28px;
    height: 28px;
    font-size: 22px;
    color: #9c9c9c;
}

.works-gallery__work-prev,
.works-gallery__work-next {
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translateY(-50%);
    color: #4a4a4a;
    font-size: 66px;
    font-weight: 300;
    z-index: 2;
}

.works-gallery__work-prev { left: clamp(8px, 1.6vw, 18px); }
.works-gallery__work-next { right: clamp(8px, 1.6vw, 18px); }

.works-gallery__modal-close:hover,
.works-gallery__work-prev:hover,
.works-gallery__work-next:hover,
.works-gallery__image-dot:hover {
    color: #000;
    background: transparent;
}

.works-gallery__body-fixed {
    overflow: hidden;
}

@media (min-width: 1120px) {
    .works-gallery {
        --wg-shell-max: 860px;
    }
}

@media (max-width: 980px) {
    .works-gallery {
        padding: 24px 22px 44px;
    }

    .works-gallery__layout {
        grid-template-columns: var(--wg-sidebar) minmax(0, 1fr);
        column-gap: 34px;
    }
}

@media (max-width: 760px) {
    .works-gallery {
        padding: 20px 16px 72px;
    }

    .works-gallery__site-header {
        min-height: 54px;
    }

    .works-gallery__layout {
        display: block;
    }

    .works-gallery__filters {
        display: none;
    }

    .works-gallery__filter-toggle {
        display: none;
    }

    .works-gallery__mobile-footer {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9996;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        background: rgba(255,255,255,.94);
        border-top: 1px solid rgba(0,0,0,.1);
        box-shadow: 0 -2px 10px rgba(0,0,0,.05);
        backdrop-filter: blur(8px);
        padding: 2px max(8px, env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    }

    .works-gallery__toolbar {
        gap: 12px;
    }

    .works-gallery__language {
        gap: 10px;
    }

    .works-gallery__modal {
        padding: 54px 14px 22px;
    }

    .works-gallery__modal-inner {
        width: 100%;
        min-height: calc(100vh - 76px);
        justify-content: flex-start;
        gap: 14px;
    }

    .works-gallery__work-stage {
        min-height: 0;
        padding: 18px 18px 16px;
    }

    .works-gallery__modal-image-wrap {
        min-height: min(64vh, 470px);
    }

    .works-gallery__modal-image {
        max-height: min(58vh, 430px);
    }

    .works-gallery__stage-footer {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 10px;
    }

    .works-gallery__image-nav {
        grid-column: 1;
        justify-content: flex-start;
        gap: 14px;
        overflow-x: auto;
    }

    .works-gallery__work-prev,
    .works-gallery__work-next {
        top: 50%;
        width: 34px;
        height: 34px;
        transform: translateY(-50%);
        font-size: 42px;
    }

    .works-gallery__work-prev { left: 8px; }
    .works-gallery__work-next { right: 8px; }

    .works-gallery__modal-close {
        top: 10px;
        right: 10px;
    }

    .works-gallery__modal-meta {
        width: 100%;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar.works-gallery-fullscreen-template .works-gallery-hover-header {
        top: 46px;
    }
}
