.gallery-page,
.gallery-work-page {
    --gallery-site-max: 1180px;
    --gallery-site-gutter: 48px;
    color: #1f2937;
}

.gallery-page {
    background: #f4f5f6;
    padding: 30px 0 0;
}

.wrapper > main:has(.gallery-page) {
    background: #f4f5f6;
    flex: 0 0 auto;
}

.gallery-container {
    width: min(var(--gallery-site-max), calc(100% - var(--gallery-site-gutter)));
    margin: 0 auto;
    padding-bottom: clamp(42px, 5vw, 72px);
}

.gallery-hero {
    margin-bottom: 12px;
}

.gallery-hero h1 {
    margin: 0 0 6px;
    color: #4f5864;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
}

.gallery-hero__copy {
    margin: 0;
    max-width: 760px;
    color: #68717c;
    font-size: 0.92rem;
    line-height: 1.45;
}

.gallery-tile__open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: #2f6bff;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.gallery-publish-button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 4px 10px;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 10px;
    background: #fff;
    color: #374151 !important;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gallery-publish-button:hover,
.gallery-publish-button:focus-visible {
    border-color: rgba(17, 24, 39, 0.22);
    background: #f4f5f7;
    color: #111827 !important;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.10);
    transform: translateY(-1px);
    outline: none;
    text-decoration: none;
}

.gallery-publish-button .icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
    padding-right: 9px;
    border-right: 1px solid rgba(17, 24, 39, 0.14);
    color: #6b7280;
}

.gallery-publish-button .icon-container i {
    font-size: 0.85em;
}

.gallery-publish-button .button-text {
    white-space: nowrap;
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 42px;
    margin-bottom: 24px;
    padding: 8px 0;
    border-top: 1px solid #e0dede;
    border-bottom: 1px solid #e0dede;
    min-width: 0;
}

.gallery-category-tabs {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.7vw, 42px);
    overflow-x: auto;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
}

.gallery-category-tabs::-webkit-scrollbar {
    display: none;
}

.gallery-category-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #303640;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.gallery-category-tabs a:hover,
.gallery-category-tabs a:focus-visible {
    background: #f7f8fa;
    color: #111827;
    text-decoration: none;
    outline: none;
}

.gallery-category-tabs a.is-active {
    border-color: #e7ebf0;
    background: #fff;
    color: #20242a;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .07);
}

.gallery-list-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

@media (min-width: 992px) {
    .gallery-category-tabs {
        flex: 0 1 auto;
        gap: 8px;
    }

    .gallery-category-tabs a {
        padding: 0 10px;
    }

    .gallery-controls .custom-dropdown.gallery-category-dropdown {
        display: none;
    }
}

.gallery-controls .gallery-category-dropdown {
    display: none;
}

.gallery-controls .custom-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 0;
    z-index: 500;
}

.gallery-controls.is-category-collapsed .gallery-category-tabs {
    display: none;
}

.gallery-controls.is-category-collapsed .custom-dropdown.gallery-category-dropdown {
    display: inline-block;
    flex: 0 0 auto;
}

.gallery-controls .custom-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 190px;
    height: 8px;
    pointer-events: auto;
}

.gallery-controls .custom-dropdown-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #dfe5ec !important;
    border-radius: 8px;
    background: #fff !important;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(17, 24, 39, .08);
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.gallery-controls .custom-dropdown-button:hover,
.gallery-controls .custom-dropdown-button:focus-visible,
.gallery-controls .custom-dropdown:hover .custom-dropdown-button,
.gallery-controls .custom-dropdown:focus-within .custom-dropdown-button {
    border-color: #cfd7e1 !important;
    background: #f7f8fa !important;
    box-shadow: 0 12px 26px rgba(17, 24, 39, .12);
    transform: translateY(-1px);
    outline: none;
}

.gallery-sort-icon {
    width: 23px;
    height: 23px;
    transform: scaleX(-1);
}

.gallery-controls .custom-dropdown-button svg path {
    fill: #5f6875;
    stroke: none;
}

.gallery-category-dropdown-button i {
    color: #5f6875;
    font-size: 14px;
    line-height: 1;
}

.gallery-controls .custom-dropdown-menu {
    position: absolute;
    display: none;
    top: calc(100% + 8px);
    right: 0;
    z-index: 3000;
    min-width: 190px;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 6px;
    border: 1px solid #dfe5ec;
    border-radius: 11px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 42px rgba(17, 24, 39, .16);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transform-origin: top right;
    animation: gallerySortMenuIn .14s ease-out;
}

.gallery-controls .gallery-category-dropdown .custom-dropdown-menu {
    right: auto;
    left: 0;
    transform-origin: top left;
}

.gallery-controls .gallery-category-dropdown::after {
    right: auto;
    left: 0;
}

.gallery-controls .custom-dropdown-menu.custom-show,
.gallery-controls .custom-dropdown:hover .custom-dropdown-menu,
.gallery-controls .custom-dropdown:focus-within .custom-dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.gallery-controls .custom-dropdown-menu .custom-dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #303640;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: .01em;
    text-align: right;
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.gallery-controls .gallery-category-dropdown .custom-dropdown-menu .custom-dropdown-item {
    justify-content: flex-start;
    text-align: left;
}

.gallery-controls .custom-dropdown-menu .custom-dropdown-item:hover,
.gallery-controls .custom-dropdown-menu .custom-dropdown-item:focus-visible {
    background: #f2f4f7;
    color: #111827;
    outline: none;
    transform: translateX(-1px);
}

.gallery-controls .custom-dropdown-menu .custom-dropdown-item.is-selected {
    background: #111;
    color: #fff;
}

@keyframes gallerySortMenuIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 52px;
    grid-auto-flow: dense;
    gap: 14px;
}

.gallery-grid--home {
    grid-auto-rows: 58px;
}

.gallery-grid--related {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 44px;
}

.gallery-tile {
    grid-column: span 3;
    grid-row: span 5;
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 10px 28px rgba(31, 41, 55, .08);
    transform: translateZ(0);
}

.gallery-tile:nth-child(8n + 1) {
    grid-column: span 4;
    grid-row: span 6;
}

.gallery-tile:nth-child(8n + 2) {
    grid-column: span 4;
    grid-row: span 5;
}

.gallery-tile:nth-child(8n + 3) {
    grid-column: span 2;
    grid-row: span 6;
}

.gallery-tile:nth-child(8n + 4) {
    grid-column: span 2;
    grid-row: span 4;
}

.gallery-tile:nth-child(8n + 5) {
    grid-column: span 3;
    grid-row: span 4;
}

.gallery-tile:nth-child(8n + 6) {
    grid-column: span 3;
    grid-row: span 6;
}

.gallery-tile:nth-child(8n + 7) {
    grid-column: span 4;
    grid-row: span 4;
}

.gallery-tile:nth-child(8n) {
    grid-column: span 2;
    grid-row: span 5;
}

.gallery-grid--related .gallery-tile,
.gallery-grid--related .gallery-tile:nth-child(n) {
    grid-column: span 2;
    grid-row: span 5;
}

.gallery-tile__media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gallery-tile__media-wrap {
    position: absolute;
    inset: 0;
    display: block;
}

.gallery-tile__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(0deg, rgba(7, 10, 16, .36), rgba(7, 10, 16, .36)),
        linear-gradient(180deg, rgba(7, 10, 16, .2) 0%, rgba(7, 10, 16, .54) 100%);
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
}

.gallery-tile picture,
.gallery-tile img {
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-tile img {
    object-fit: cover;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1), filter .25s ease;
}

.gallery-tile__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(8, 13, 24, .05), rgba(8, 13, 24, .78));
    opacity: .62;
    transition: opacity .22s ease;
}

.gallery-tile__open {
    position: absolute;
    right: 14px;
    top: 14px;
    min-height: 34px;
    padding: 0 12px;
    background: rgba(255, 255, 255, .94);
    color: #151a23;
    opacity: 0;
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .16);
}

.gallery-tile__hover-author,
.gallery-tile__hover-title {
    position: absolute;
    z-index: 2;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .24s ease, transform .24s ease;
    pointer-events: none;
}

.gallery-tile__hover-author {
    top: 11px;
    left: 11px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    width: min(76%, 280px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    text-shadow: 0 2px 9px rgba(0, 0, 0, .62);
}

.gallery-tile__hover-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .82);
    background: #fff;
}

.gallery-tile__hover-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-tile__hover-author-copy {
    min-width: 0;
    align-self: center;
}

.gallery-tile__hover-author-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.gallery-tile__hover-author-name,
.gallery-tile__hover-author-quote {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-tile__hover-author-name {
    flex: 0 1 auto;
    min-width: 0;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.18;
}

.gallery-tile__hover-author-quote {
    margin-top: 2px;
    color: rgba(255, 255, 255, .76);
    font-size: 8px;
    line-height: 1.25;
}

.gallery-tile__hover-title {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: min(76%, 330px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .72);
}

.gallery-tile__hover-title-name {
    display: -webkit-box;
    max-width: 100%;
    color: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.16;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .44);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gallery-tile.is-title-long .gallery-tile__hover-title {
    bottom: 16px;
    width: min(84%, 360px);
}

.gallery-tile.is-title-long .gallery-tile__hover-title-name {
    font-size: 13px;
    line-height: 1.14;
}

.gallery-tile.is-title-xlong .gallery-tile__hover-title {
    bottom: 18px;
    width: min(90%, 380px);
}

.gallery-tile.is-title-xlong .gallery-tile__hover-title-name {
    font-size: 11.5px;
    line-height: 1.12;
    -webkit-line-clamp: 3;
}

.gallery-tile__hover-title-category {
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .94);
    font-size: 9px;
    font-weight: 500;
    line-height: 16px;
}

.gallery-tile__info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: end;
    padding: 16px;
    color: #fff;
    transform: translateY(18px);
    transition: transform .28s ease;
    pointer-events: none;
}

.gallery-tile__avatar,
.gallery-work-author__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .86);
    background: #fff;
    pointer-events: auto;
}

.gallery-tile__avatar img,
.gallery-work-author__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-tile__copy {
    min-width: 0;
    padding-top: 2px;
}

.gallery-tile__title,
.gallery-tile__author {
    display: block;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: auto;
}

.gallery-tile__title {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.gallery-tile__author {
    margin-top: 3px;
    font-size: 12px;
    opacity: .85;
}

.gallery-tile.is-author-long .gallery-tile__author,
.gallery-tile.is-author-xlong .gallery-tile__author {
    white-space: normal;
    overflow-wrap: anywhere;
}

.gallery-tile.is-author-long .gallery-tile__author {
    font-size: 12px;
    line-height: 1.12;
}

.gallery-tile.is-author-xlong .gallery-tile__author {
    font-size: 11px;
    line-height: 1.08;
}

.gallery-tile__quote {
    display: none;
}

.gallery-tile__stats {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    opacity: 0;
    transition: opacity .24s ease;
    pointer-events: auto;
}

.gallery-tile__stat,
.gallery-work-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    border: 0;
    border-radius: 999px;
    padding: 0 9px;
    background: rgba(255, 255, 255, .16);
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

button.gallery-tile__stat,
button.gallery-work-action {
    cursor: pointer;
    font-family: inherit;
}

.gallery-tile__stat-icon {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    flex: 0 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: contain !important;
    object-position: center;
    margin: 0;
    color: currentColor;
    font-size: 12px;
    line-height: 14px;
    text-align: center;
}

.gallery-tile__stat.is-active,
.gallery-work-action.is-active {
    background: #fff;
    color: #1f55d8;
}

.gallery-tile:hover .gallery-tile__media > picture > img,
.gallery-tile:focus-within .gallery-tile__media > picture > img {
    transform: scale(1.015);
    filter: saturate(1.05);
}

.gallery-tile:hover .gallery-tile__shade,
.gallery-tile:focus-within .gallery-tile__shade {
    opacity: .9;
}

.gallery-tile:hover .gallery-tile__media::after,
.gallery-tile:focus-within .gallery-tile__media::after {
    opacity: 1;
}

.gallery-tile:hover .gallery-tile__open,
.gallery-tile:focus-within .gallery-tile__open,
.gallery-tile:hover .gallery-tile__stats,
.gallery-tile:focus-within .gallery-tile__stats {
    opacity: 1;
}

.gallery-tile:hover .gallery-tile__hover-title,
.gallery-tile:focus-within .gallery-tile__hover-title,
.gallery-tile:hover .gallery-tile__hover-author,
.gallery-tile:focus-within .gallery-tile__hover-author {
    opacity: 1;
    transform: none;
}

.gallery-tile:hover .gallery-tile__info,
.gallery-tile:focus-within .gallery-tile__info {
    transform: translateY(0);
}

.gallery-load-sentinel {
    height: 1px;
}

.gallery-loading {
    display: none;
    justify-content: center;
    margin-top: 22px;
    color: #667085;
    font-weight: 700;
}

.gallery-loading.is-active {
    display: flex;
}

.gallery-empty {
    grid-column: 1 / -1;
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 34px 22px;
    border: 1px dashed #d6dce7;
    border-radius: 8px;
    background: #f8f9fa;
    color: #6b7280;
    text-align: center;
}

.gallery-empty i {
    color: #8b949f;
    font-size: 30px;
}

.gallery-empty strong {
    color: #343940;
    font-size: 18px;
    font-weight: 600;
}

.gallery-empty span {
    max-width: 520px;
    color: #747c87;
    font-size: 14px;
    line-height: 1.5;
}

.gallery-empty__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin-top: 4px;
    padding: 0 16px;
    border: 1px solid #d9dee6;
    border-radius: 8px;
    background: #fff;
    color: #343940;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.gallery-empty__button:hover {
    color: #111827;
    border-color: #c9d0da;
}

.gallery-work-modal {
    --gallery-modal-max: var(--gallery-site-max, 1180px);
    --gallery-modal-gutter-x: clamp(16px, 3vw, 42px);
    --gallery-modal-gutter-y: clamp(16px, 3vh, 30px);
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: var(--gallery-modal-gutter-y) var(--gallery-modal-gutter-x);
}

.gallery-work-page .gallery-work-modal {
    position: static;
    display: block;
    padding: 0;
    background: #f6f7f9;
}

.gallery-work-modal__backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(5, 10, 18, .76);
}

.gallery-work-page .gallery-work-modal__backdrop {
    display: none;
}

.gallery-work-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(var(--gallery-modal-max), calc(100vw - (var(--gallery-modal-gutter-x) * 2)));
    max-width: var(--gallery-modal-max);
    max-height: calc(100vh - (var(--gallery-modal-gutter-y) * 2));
    overflow: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.gallery-work-page .gallery-work-modal__dialog {
    width: min(var(--gallery-modal-max), calc(100% - (var(--gallery-modal-gutter-x) * 2)));
    max-width: var(--gallery-modal-max);
    max-height: none;
    overflow: visible;
    margin: clamp(20px, 2.5vw, 34px) auto 70px;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(31, 41, 55, .08);
}

.gallery-work-floating-actions {
    position: fixed;
    top: var(--gallery-work-close-top, 24px);
    right: var(--gallery-work-close-right, 24px);
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: max-content;
    height: 40px;
    margin: 0;
    pointer-events: none;
}

.gallery-work-floating-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(17, 24, 39, .72);
    color: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
    cursor: pointer;
    backdrop-filter: blur(12px);
    pointer-events: auto;
    transition: color .18s ease, background-color .18s ease, transform .18s ease, border-color .18s ease;
}

.gallery-work-floating-action:hover,
.gallery-work-floating-action:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
    background: rgba(17, 24, 39, .9);
    outline: none;
    transform: translateY(-1px);
}

.gallery-work-scroll-top {
    position: fixed;
    right: 22px;
    bottom: 82px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(70, 74, 80, .22);
    border-radius: 50%;
    background: rgba(70, 74, 80, .42);
    color: rgba(255, 255, 255, .9);
    box-shadow: 0 6px 18px rgba(31, 41, 55, .12);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, background-color .18s ease, color .18s ease;
}

.gallery-work-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.gallery-work-scroll-top:hover,
.gallery-work-scroll-top:focus-visible {
    color: #fff;
    background: rgba(54, 58, 64, .58);
    outline: none;
}

.gallery-work-hero {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: #111827;
}

.gallery-work-hero picture,
.gallery-work-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-work-hero img {
    object-fit: cover;
}

.gallery-work-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 13, 24, .1), rgba(8, 13, 24, .82));
}

.gallery-work-hero__body {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    color: #fff;
}

.gallery-work-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.gallery-work-author a,
.gallery-work-author span {
    display: block;
    color: #fff;
}

.gallery-work-author a {
    font-weight: 900;
    text-decoration: none;
}

.gallery-work-author span {
    font-size: 12px;
    opacity: .82;
}

.gallery-work-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
}

.gallery-work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.gallery-work-meta a,
.gallery-work-meta span,
.gallery-work-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    backdrop-filter: blur(12px);
}

.gallery-work-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    padding: 30px 34px 16px;
}

.gallery-work-content {
    min-width: 0;
}

.gallery-work-action {
    min-height: 36px;
    padding: 0 12px;
    background: #f0f3f8;
    color: #344054;
    text-decoration: none;
}

.gallery-work-action.is-static {
    cursor: default;
}

.gallery-work-section {
    margin-bottom: 30px;
}

.gallery-work-section h2 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
    color: #161c26;
}

.gallery-work-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gallery-work-section__head span {
    color: #6b7280;
    font-weight: 800;
}

.gallery-work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-work-tags span {
    background: #eaf0ff;
    color: #244bb4;
}

.gallery-work-article {
    font-size: 16px;
    line-height: 1.72;
    color: #303846;
}

.gallery-work-article img,
.gallery-work-article video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.gallery-work-article img.progressive-image {
    background: #eef1f4;
    opacity: 1;
    transition: filter 0.24s ease, opacity 0.24s ease;
}

.gallery-work-article img.progressive-image.is-loaded {
    opacity: 1;
    filter: none;
}

.gallery-comments .comment {
    margin-bottom: 16px;
}

.gallery-login-note,
.gallery-empty-note {
    display: block;
    padding: 16px;
    border: 1px dashed #d8dee8;
    border-radius: 8px;
    background: #fbfcfe;
    color: #667085;
    font-weight: 700;
    text-decoration: none;
}

.gallery-empty-note--large {
    min-height: 110px;
    display: grid;
    place-items: center;
    text-align: center;
}

.profile-gallery-section {
    padding: 16px 0 30px;
}

.gallery-modal-root + .home-feed-intro-entry {
    margin-top: 16px !important;
}

body.gallery-modal-open {
    overflow: hidden;
}

body.gallery-modal-open .gallery-work-modal,
.gallery-modal-root .gallery-work-modal {
    padding: var(--gallery-modal-gutter-y) var(--gallery-modal-gutter-x);
}

body.gallery-modal-open .gallery-work-modal__dialog,
.gallery-modal-root .gallery-work-modal__dialog {
    width: min(var(--gallery-modal-max), calc(100vw - (var(--gallery-modal-gutter-x) * 2)));
    max-width: var(--gallery-modal-max);
    border-radius: 10px;
}

@media (max-width: 1180px) {
    .gallery-container {
        padding-bottom: 54px;
    }

    .gallery-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .gallery-tile:nth-child(n) {
        grid-column: span 4;
        grid-row: span 5;
    }

    .gallery-tile:nth-child(5n + 1) {
        grid-column: span 4;
        grid-row: span 6;
    }

    .gallery-tile:nth-child(5n + 3) {
        grid-column: span 3;
        grid-row: span 5;
    }

    .gallery-tile:nth-child(5n + 4) {
        grid-column: span 5;
        grid-row: span 5;
    }

    .gallery-work-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .gallery-page {
        padding-top: 18px;
    }

    .gallery-container {
        --gallery-site-gutter: 24px;
        width: min(100% - 24px, 640px);
        padding-bottom: 34px;
    }

    .gallery-hero {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-hero h1 {
        font-size: 32px;
    }

    .gallery-hero__copy {
        font-size: 14px;
    }

    .gallery-controls {
        flex-wrap: wrap;
        gap: 10px;
    }

    .gallery-category-tabs {
        width: 100%;
    }

    .gallery-list-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

    .gallery-list-actions .gallery-publish-button {
        width: auto;
    }

    .gallery-grid,
    .gallery-grid--home,
    .gallery-grid--related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 52px;
        gap: 10px;
    }

    .gallery-tile:nth-child(n),
    .gallery-grid--related .gallery-tile:nth-child(n) {
        grid-column: span 2;
        grid-row: span 5;
    }

    .gallery-tile:nth-child(3n + 2) {
        grid-row: span 4;
    }

    .gallery-tile__open {
        opacity: 1;
        transform: none;
    }

    .gallery-tile__info {
        transform: none;
    }

    .gallery-tile__stats {
        opacity: 1;
    }

    .gallery-work-modal {
        --gallery-modal-gutter-x: 10px;
        --gallery-modal-gutter-y: 10px;
        padding: var(--gallery-modal-gutter-y) var(--gallery-modal-gutter-x);
    }

    .gallery-work-modal__dialog,
    .gallery-work-page .gallery-work-modal__dialog {
        width: calc(100vw - (var(--gallery-modal-gutter-x) * 2));
        max-width: calc(100vw - (var(--gallery-modal-gutter-x) * 2));
        max-height: calc(100vh - (var(--gallery-modal-gutter-y) * 2));
        min-height: 0;
        margin: 0;
        border-radius: 8px;
    }

    .gallery-work-page .gallery-work-modal__dialog {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        max-height: none;
        margin: 10px auto 38px;
    }

    .gallery-work-hero {
        min-height: 360px;
    }

    .gallery-work-hero__body {
        left: 18px;
        right: 18px;
        bottom: 22px;
    }

    .gallery-work-hero h1 {
        font-size: 30px;
    }

    .gallery-work-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

}

@media (max-width: 991.98px) {
    .gallery-controls {
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
    }

    .gallery-category-tabs {
        display: none;
    }

    .gallery-controls .gallery-category-dropdown {
        display: inline-block;
        flex: 0 0 auto;
    }

    .gallery-list-actions {
        display: inline-flex;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        margin-left: auto;
        justify-content: space-between;
    }

    .gallery-list-actions .gallery-publish-button {
        width: auto;
        max-width: 100%;
    }

    .gallery-controls .gallery-sort-dropdown .custom-dropdown-menu {
        right: auto;
        left: 0;
        transform-origin: top left;
    }

    .gallery-controls .gallery-sort-dropdown::after {
        right: auto;
        left: 0;
    }

    .gallery-controls .gallery-sort-dropdown .custom-dropdown-menu .custom-dropdown-item {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .gallery-controls {
        gap: 8px;
    }

    .gallery-list-actions {
        gap: 8px;
    }

    .gallery-list-actions .gallery-publish-button {
        padding: 4px 9px;
        font-size: .86rem;
    }

    .gallery-list-actions .gallery-publish-button .icon-container {
        margin-right: 7px;
        padding-right: 7px;
    }
}

/* Monochrome gallery skin */
.gallery-page,
.gallery-work-page {
    --gallery-ink: #171a1f;
    --gallery-text: #3f454d;
    --gallery-muted: #737b86;
    --gallery-line: #dfe3e8;
    --gallery-soft: #f1f2f4;
    --gallery-surface: #ffffff;
    --gallery-action: #2f3338;
    --gallery-action-hover: #171a1f;
    color: var(--gallery-text);
    font-family: inherit;
}

.gallery-work-page .gallery-work-modal {
    background: #f4f5f6;
}

.gallery-hero h1,
.gallery-work-hero h1,
.gallery-work-section h2 {
    color: var(--gallery-ink);
    letter-spacing: 0;
}

.gallery-hero__copy {
    color: #626a75;
}

.gallery-category-tabs a,
.gallery-login-note,
.gallery-empty-note {
    border-color: var(--gallery-line);
}

.gallery-category-tabs a.is-active,
.gallery-login-note,
.gallery-empty-note {
    background: var(--gallery-surface);
}

.gallery-category-tabs a {
    color: #59616b;
}

.gallery-category-tabs a.is-active {
    border-color: #5e6670;
    background: #ebecee;
    color: #24282e;
}

.gallery-tile {
    border: 1px solid rgba(0, 0, 0, .06);
    background: #d8dadd;
    box-shadow: 0 12px 30px rgba(31, 35, 40, .08);
}

.gallery-tile__shade {
    background: linear-gradient(180deg, rgba(20, 22, 26, .05), rgba(20, 22, 26, .82));
}

.gallery-tile__open {
    background: rgba(255, 255, 255, .96);
    color: #20242a;
}

.gallery-tile__stat,
.gallery-work-action {
    background: rgba(255, 255, 255, .18);
}

.gallery-tile__stat.is-active,
.gallery-work-action.is-active {
    background: #fff;
    color: #23272d;
}

.gallery-work-action {
    background: #eceef1;
    color: #3f454d;
}

.gallery-work-tags span {
    background: #eceef1;
    color: #30353b;
}

.gallery-work-meta a,
.gallery-work-tags span {
    letter-spacing: 0;
}

.gallery-empty {
    border-color: #d8dde3;
    color: #6a727d;
}

.gallery-grid > .gallery-empty {
    display: flex;
}

/* Behance-style equal cards for the main gallery and curated Award strip */
.gallery-page .gallery-grid,
.profile-gallery-section .gallery-grid,
.gallery-grid--award {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: auto;
    grid-auto-flow: row;
    gap: 28px 18px;
}

.profile-gallery-section .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
}

.gallery-grid--award {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gallery-page .gallery-tile:nth-child(n),
.profile-gallery-section .gallery-tile:nth-child(n),
.gallery-grid--award .gallery-tile:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
}

.gallery-page .gallery-tile,
.profile-gallery-section .gallery-tile,
.gallery-grid--award .gallery-tile {
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.gallery-page .gallery-tile__media-wrap,
.profile-gallery-section .gallery-tile__media-wrap,
.gallery-grid--award .gallery-tile__media-wrap {
    position: relative;
    inset: auto;
    display: block;
}

.gallery-page .gallery-tile__media,
.profile-gallery-section .gallery-tile__media,
.gallery-grid--award .gallery-tile__media {
    position: relative;
    inset: auto;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 5px;
    background: #d7d9dc;
    box-shadow: 0 8px 22px rgba(23, 26, 31, .08);
}

.gallery-page .gallery-tile picture,
.gallery-page .gallery-tile img,
.profile-gallery-section .gallery-tile picture,
.profile-gallery-section .gallery-tile img,
.gallery-grid--award .gallery-tile picture,
.gallery-grid--award .gallery-tile img {
    height: 100%;
}

.gallery-page .gallery-tile__shade,
.profile-gallery-section .gallery-tile__shade,
.gallery-grid--award .gallery-tile__shade {
    background: linear-gradient(180deg, rgba(17, 20, 24, .08) 0%, rgba(17, 20, 24, .16) 42%, rgba(17, 20, 24, .76) 100%);
    opacity: 0;
}

.gallery-page .gallery-tile__open,
.profile-gallery-section .gallery-tile__open,
.gallery-grid--award .gallery-tile__open {
    right: 10px;
    top: 10px;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(-4px);
}

.gallery-page .gallery-tile:hover .gallery-tile__shade,
.gallery-page .gallery-tile:focus-within .gallery-tile__shade,
.profile-gallery-section .gallery-tile:hover .gallery-tile__shade,
.profile-gallery-section .gallery-tile:focus-within .gallery-tile__shade,
.gallery-grid--award .gallery-tile:hover .gallery-tile__shade,
.gallery-grid--award .gallery-tile:focus-within .gallery-tile__shade {
    opacity: 1;
}

.gallery-page .gallery-tile:hover .gallery-tile__open,
.gallery-page .gallery-tile:focus-within .gallery-tile__open,
.profile-gallery-section .gallery-tile:hover .gallery-tile__open,
.profile-gallery-section .gallery-tile:focus-within .gallery-tile__open,
.gallery-grid--award .gallery-tile:hover .gallery-tile__open,
.gallery-grid--award .gallery-tile:focus-within .gallery-tile__open {
    opacity: 1;
    transform: none;
}

.gallery-page .gallery-tile__info,
.profile-gallery-section .gallery-tile__info,
.gallery-grid--award .gallery-tile__info {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 2px 4px;
    align-items: start;
    padding: 8px 0 0;
    color: var(--gallery-text);
    transform: none;
    pointer-events: auto;
}

.gallery-page .gallery-tile__copy,
.profile-gallery-section .gallery-tile__copy,
.gallery-grid--award .gallery-tile__copy {
    padding-top: 0;
}

.gallery-page .gallery-tile__avatar,
.profile-gallery-section .gallery-tile__avatar,
.gallery-grid--award .gallery-tile__avatar {
    width: 27px;
    height: 27px;
    grid-row: 1;
    margin-top: 0;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #eef0f2;
}

.gallery-page .gallery-tile__avatar img,
.profile-gallery-section .gallery-tile__avatar img,
.gallery-grid--award .gallery-tile__avatar img {
    border-radius: 50%;
}

.gallery-page .gallery-tile__author,
.profile-gallery-section .gallery-tile__author,
.gallery-grid--award .gallery-tile__author {
    color: var(--gallery-ink);
}

.gallery-page .gallery-tile__author,
.profile-gallery-section .gallery-tile__author,
.gallery-grid--award .gallery-tile__author {
    margin-top: 0;
    color: #252a31;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    opacity: 1;
}

.gallery-page .gallery-tile__quote,
.profile-gallery-section .gallery-tile__quote,
.gallery-grid--award .gallery-tile__quote {
    display: none;
}

.gallery-page .gallery-tile__profile-stats,
.profile-gallery-section .gallery-tile__profile-stats,
.gallery-grid--award .gallery-tile__profile-stats {
    display: block;
    margin-top: -9px;
}

.gallery-page .gallery-tile__profile-stats .avatar-stats,
.profile-gallery-section .gallery-tile__profile-stats .avatar-stats,
.gallery-grid--award .gallery-tile__profile-stats .avatar-stats {
    justify-content: flex-start;
    gap: 3px;
}

.gallery-page .gallery-tile__profile-stats .avatar-stat,
.profile-gallery-section .gallery-tile__profile-stats .avatar-stat,
.gallery-grid--award .gallery-tile__profile-stats .avatar-stat {
    height: 13px;
    min-width: 18px;
    padding: 0 4px;
    border-color: rgba(17, 24, 39, .08);
    background: rgba(238, 240, 243, .95);
    color: #6b7480;
    font-size: .48rem;
    line-height: 13px;
    box-shadow: 0 2px 5px rgba(17, 24, 39, .05);
}

.gallery-page .gallery-tile__profile-stats .avatar-stat i,
.profile-gallery-section .gallery-tile__profile-stats .avatar-stat i,
.gallery-grid--award .gallery-tile__profile-stats .avatar-stat i {
    font-size: .44rem;
}

.gallery-page .gallery-tile__stats,
.profile-gallery-section .gallery-tile__stats,
.gallery-grid--award .gallery-tile__stats,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-stats.gallery-tile__stats {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-height: 16px;
    margin-top: 0;
    opacity: 1;
}

.gallery-page .gallery-tile__stat,
.profile-gallery-section .gallery-tile__stat,
.gallery-grid--award .gallery-tile__stat,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-stats .gallery-tile__stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    background: transparent;
    color: #68717c;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    font-variant-numeric: tabular-nums;
    backdrop-filter: none;
    vertical-align: top;
}

.gallery-page .gallery-tile__stat span,
.profile-gallery-section .gallery-tile__stat span,
.gallery-grid--award .gallery-tile__stat span,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-stats .gallery-tile__stat span {
    display: inline-block;
    align-items: center;
    min-width: 0;
    color: #68717c !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums;
    line-height: 16px !important;
    vertical-align: top;
}

.gallery-page .gallery-tile__stat-icon,
.profile-gallery-section .gallery-tile__stat-icon,
.gallery-grid--award .gallery-tile__stat-icon,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-stats .gallery-tile__stat-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px;
    min-width: 14px;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center;
    line-height: 14px !important;
    vertical-align: top;
}

.gallery-page .gallery-tile__stat-icon--share,
.profile-gallery-section .gallery-tile__stat-icon--share,
.gallery-grid--award .gallery-tile__stat-icon--share,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-stats .gallery-tile__stat-icon--share {
    width: 14px !important;
    height: 14px !important;
    flex-basis: 14px;
    min-width: 14px;
}

.gallery-page .gallery-tile__stat.is-active,
.gallery-page .gallery-reference-button,
.profile-gallery-section .gallery-tile__stat.is-active,
.profile-gallery-section .gallery-reference-button,
.gallery-grid--award .gallery-tile__stat.is-active,
.gallery-grid--award .gallery-reference-button,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-stats .gallery-tile__stat.is-active,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-stats .gallery-reference-button {
    background: transparent;
    color: #68717c;
}

.gallery-page .gallery-reference-button span,
.profile-gallery-section .gallery-reference-button span,
.gallery-grid--award .gallery-reference-button span,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-stats .gallery-reference-button span {
    color: #68717c !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 16px !important;
}

.gallery-award-marker {
    --gallery-award-size: 28px;
    position: absolute;
    display: block;
    z-index: 12;
    top: 0;
    right: 10px;
    width: var(--gallery-award-size);
    height: auto;
    line-height: 0;
    cursor: help;
    text-decoration: none;
    pointer-events: auto;
    overflow: visible;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .24));
    transition: opacity .18s ease;
}

.gallery-award-marker.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gallery-award-marker img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-award-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 5px;
    background: rgba(29, 29, 29, .9);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: min(190px, calc(100vw - 24px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease;
}

.gallery-award-tooltip::before {
    display: none;
}

.gallery-award-marker:hover .gallery-award-tooltip,
.gallery-award-marker:focus-visible .gallery-award-tooltip {
    display: inline-flex;
    opacity: 1;
    visibility: visible;
}

.gallery-page .gallery-award-marker {
    --gallery-award-size: 28px;
    top: 0;
    right: 10px;
}

.home-gallery-mosaic__tile .gallery-award-marker {
    --gallery-award-size: 28px;
    top: 0;
    right: 10px;
}

.home-gallery-mosaic__tile.is-large .gallery-award-marker {
    --gallery-award-size: 32px;
    right: 12px;
}

.home-gallery-mosaic__tile.is-small .gallery-award-marker {
    --gallery-award-size: 22px;
    right: 8px;
}

.home-gallery-mosaic__tile .gallery-award-marker img,
.home-gallery-mosaic__tile:hover .gallery-award-marker img,
.home-gallery-mosaic__tile:focus-visible .gallery-award-marker img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
    filter: none;
}

.gallery-award-marker--hero {
    --gallery-award-size: clamp(28px, 3vw, 38px);
    top: 0;
    right: clamp(56px, 5vw, 84px);
    z-index: 3;
}

.gallery-award-marker--feed {
    --gallery-award-size: 26px;
    top: 0;
    right: 10px;
}

.profile-gallery-section .gallery-award-marker {
    --gallery-award-size: 26px;
    top: 0;
    right: 9px;
}

.sidebar .gallery-award-marker,
.profile-gallery-section .gallery-tile.is-small .gallery-award-marker {
    --gallery-award-size: 22px;
    top: 0;
    right: 8px;
}

@media (max-width: 1180px) {
    .gallery-award-marker--hero {
        --gallery-award-size: 34px;
        right: 64px;
    }
}

@media (max-width: 900px) {
    .gallery-award-marker--hero {
        --gallery-award-size: 30px;
        right: 58px;
    }

    .gallery-page .gallery-award-marker,
    .profile-gallery-section .gallery-award-marker {
        --gallery-award-size: 26px;
    }
}

@media (max-width: 760px) {
    .gallery-award-marker {
        --gallery-award-size: 24px;
    }

    .gallery-award-marker--hero {
        --gallery-award-size: 28px;
        right: 50px;
    }

    .home-gallery-mosaic__tile.is-large .gallery-award-marker {
        --gallery-award-size: 30px;
    }

    .home-gallery-mosaic__tile.is-small .gallery-award-marker,
    .sidebar .gallery-award-marker,
    .profile-gallery-section .gallery-tile.is-small .gallery-award-marker {
        --gallery-award-size: 21px;
    }
}

@media (max-width: 480px) {
    .gallery-award-marker--hero {
        --gallery-award-size: 24px;
        right: 46px;
    }

    .gallery-page .gallery-award-marker,
    .profile-gallery-section .gallery-award-marker,
    .gallery-award-marker--feed {
        --gallery-award-size: 22px;
    }
}

.gallery-award-toggle {
    position: absolute;
    z-index: 5;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(10, 14, 22, .72);
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
    transition: background .18s ease, opacity .18s ease, transform .18s ease;
}

.gallery-award-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .75);
    outline-offset: 2px;
}

.gallery-award-toggle:hover,
.gallery-award-toggle.is-active {
    background: rgba(17, 24, 39, .9);
}

.gallery-award-toggle[data-loading="true"] {
    opacity: .62;
    pointer-events: none;
}

@media (max-width: 1180px) {
    .gallery-grid--award {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .gallery-page .gallery-grid,
    .profile-gallery-section .gallery-grid,
    .gallery-grid--award {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        padding-bottom: 24px;
    }

    .gallery-page .gallery-grid,
    .profile-gallery-section .gallery-grid,
    .gallery-grid--award {
        grid-template-columns: 1fr;
    }
}

.profile-main-content-wide .profile-gallery-section {
    max-width: none;
    width: 100%;
    padding: 0 0 34px;
}

.profile-main-content-wide .profile-gallery-section.container {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.profile-main-content-wide .profile-gallery-section .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 24px;
}

.profile-main-content-wide .profile-gallery-section .gallery-tile:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
}

@media (max-width: 991.98px) {
    .profile-main-content-wide .profile-gallery-section .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .profile-main-content-wide .profile-gallery-section .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Gallery work detail: hero-first presentation */
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-shell {
    --gallery-work-shell-x: clamp(22px, 3.4vw, 58px);
    display: block;
    padding: clamp(24px, 3vw, 42px) var(--gallery-work-shell-x) 22px;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-content {
    width: 100%;
}

.gallery-work-hero {
    min-height: clamp(520px, 52vw, 780px);
    isolation: isolate;
}

.gallery-work-hero__shade {
    background:
        radial-gradient(circle at 42% 34%, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(90deg, rgba(5, 8, 12, .74) 0%, rgba(5, 8, 12, .34) 34%, rgba(5, 8, 12, .22) 64%, rgba(5, 8, 12, .64) 100%),
        linear-gradient(180deg, rgba(5, 8, 12, .62) 0%, rgba(5, 8, 12, .18) 42%, rgba(5, 8, 12, .9) 100%);
    z-index: 1;
}

.gallery-work-hero picture,
.gallery-work-hero > picture img {
    transform-origin: center;
    transition: transform .9s cubic-bezier(.16, 1, .3, 1), filter .9s cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
}

.gallery-work-hero picture {
    transform: translate3d(var(--gallery-hero-parallax-x, 0), var(--gallery-hero-parallax-y, 0), 0) scale(1.035);
}

.gallery-work-hero > picture img {
    filter: brightness(.74) saturate(.92) contrast(1.02);
}

.gallery-work-hero:hover picture {
    transform: translate3d(var(--gallery-hero-parallax-x, 0), var(--gallery-hero-parallax-y, 0), 0) scale(1.065);
}

.gallery-work-hero:hover > picture img {
    filter: brightness(.68) saturate(.96) contrast(1.04);
}

.gallery-work-hero__profile,
.gallery-work-hero__title,
.gallery-work-hero__stats {
    position: absolute;
    z-index: 2;
}

.gallery-work-hero__profile {
    top: clamp(20px, 2.2vw, 34px);
    left: clamp(20px, 2.2vw, 34px);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: min(430px, calc(100% - 48px));
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .72);
    box-shadow: none;
    backdrop-filter: none;
}

.gallery-work-hero__profile .gallery-work-author__avatar {
    position: relative;
    width: 58px;
    height: 58px;
    overflow: visible;
    border: 2px solid rgba(255, 255, 255, .88);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
}

.gallery-work-hero__profile .gallery-work-author__avatar > img.blog-avatar {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    border-radius: 50%;
    object-fit: cover;
}

.gallery-work-hero__author-copy {
    min-width: 0;
}

.gallery-work-hero__author-name,
.gallery-work-hero__author-quote {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-work-hero__author-name {
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.gallery-work-hero__author-quote {
    margin-top: 4px;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    line-height: 1.25;
}

.gallery-work-hero__author-stats {
    display: block;
    margin-top: 7px;
}

.gallery-work-hero__author-stats .avatar-stats {
    justify-content: flex-start;
}

.gallery-work-hero__author-stats .avatar-stat {
    border-color: rgba(17, 24, 39, .08);
    background: rgba(238, 240, 243, .95);
    color: #6b7480;
    box-shadow: 0 2px 5px rgba(17, 24, 39, .08);
}

.gallery-work-hero__title {
    left: clamp(20px, 2.4vw, 38px);
    bottom: clamp(24px, 2.7vw, 42px);
    width: min(900px, calc(100% - 360px));
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .74);
    box-shadow: none;
    backdrop-filter: none;
}

.gallery-work-hero__title h1 {
    max-width: none;
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2.55vw, 38px);
    font-weight: 500;
    line-height: 1.14;
}

.gallery-work-hero__title .gallery-work-meta {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.gallery-work-hero__title .gallery-work-meta a,
.gallery-work-hero__title .gallery-work-meta span {
    min-height: 24px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}

.gallery-work-meta__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.gallery-work-meta__category a {
    background: rgba(255, 255, 255, .22);
}

.gallery-work-meta__software span {
    color: rgba(255, 255, 255, .9);
}

.gallery-work-hero__stats {
    right: clamp(20px, 2.4vw, 38px);
    bottom: clamp(24px, 2.7vw, 42px);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 380px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .72);
    box-shadow: none;
    backdrop-filter: none;
}

.gallery-work-hero__stats .gallery-work-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 34px;
    min-height: 30px;
    padding: 0 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: none;
}

.gallery-work-hero__stats .gallery-work-action span {
    color: rgba(255, 255, 255, .95) !important;
    font-variant-numeric: tabular-nums;
}

.gallery-work-hero__stats .gallery-work-counter-icon {
    width: 16px;
    min-width: 16px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.gallery-work-hero__stats img.gallery-work-counter-icon {
    position: static !important;
    inset: auto !important;
    height: 16px;
    display: block;
    flex: 0 0 16px;
    object-fit: contain;
    opacity: .9;
    filter: brightness(0) invert(1);
}

.gallery-work-hero__stats .gallery-work-action.is-active {
    background: transparent;
    color: #fff;
}

.gallery-work-hero__stats .gallery-work-action.is-static {
    cursor: default;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content {
    --gallery-work-text-x: clamp(14px, 3vw, 42px);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    min-width: 0;
    width: calc(100% + (var(--gallery-work-shell-x) * 2)) !important;
    max-width: calc(100% + (var(--gallery-work-shell-x) * 2)) !important;
    margin-top: 0 !important;
    margin-right: calc(var(--gallery-work-shell-x) * -1) !important;
    margin-bottom: 0 !important;
    margin-left: calc(var(--gallery-work-shell-x) * -1) !important;
    gap: 0 18px;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-content-block {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-content-block:not(:has(:is(.blog-image, .blog-gallery, .image-grid, .image-grid-wrapper, .image-grid-row, .blog-video-embed, .blog-panorama-embed, .comparison-wrapper, picture, img, video, iframe))),
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > :not(:is(.blog-image, .blog-gallery, .image-grid, .image-grid-wrapper, .image-grid-row, .blog-video-embed, .blog-panorama-embed, .comparison-wrapper, picture, img, video, iframe)) {
    box-sizing: border-box;
    width: min(100%, 880px);
    max-width: min(100%, 880px);
    padding-right: var(--gallery-work-text-x);
    padding-left: var(--gallery-work-text-x);
    justify-self: center;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-text-block,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-text-block p,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-text-block span,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-text-block div {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-content-block:has(:is(.blog-image, .blog-gallery, .image-grid, .image-grid-wrapper, .image-grid-row, .blog-video-embed, .blog-panorama-embed, .comparison-wrapper, picture, img, video, iframe)) {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > .blog-image,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > .blog-gallery,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > .image-grid,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > .image-grid-wrapper,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > .blog-video-embed,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > .blog-panorama-embed,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > .comparison-wrapper,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > picture,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > video,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > iframe,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > img {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-image {
    margin: 20px 0;
    overflow: hidden;
    aspect-ratio: auto;
    max-width: 100%;
    border-radius: 0;
    background: #eceff3;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-image img,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content picture img,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    cursor: zoom-in;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content > img {
    aspect-ratio: auto;
    background: #eceff3;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-image--contained img,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-image--tall img,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-gallery--slider .blog-gallery-item img,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-gallery--slider.is-carousel-ready .blog-gallery-item img {
    object-fit: contain;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-image--contained,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-image--tall {
    max-width: none;
    aspect-ratio: auto;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-image--contained img,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-image--tall img {
    height: auto;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-gallery,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .image-grid-wrapper,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-video-embed,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-panorama-embed,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .comparison-wrapper {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-gallery-item img,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .image-grid-item {
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    cursor: zoom-in;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-gallery-item,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .image-grid-cell {
    height: auto;
    border-radius: 0;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-gallery--grid1 .blog-gallery-item,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-gallery--full .blog-gallery-item {
    aspect-ratio: auto;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-gallery--grid1 .blog-gallery-item img,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-gallery--full .blog-gallery-item img {
    display: block;
    height: auto;
    object-fit: contain;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content figcaption,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content .blog-image figcaption {
    text-align: center;
}

.gallery-work-modal .image-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(0, 0, 0, .9);
}

body.image-preview-open {
    overflow: hidden;
}

body.image-preview-open .gallery-work-modal .image-preview-modal {
    z-index: 100300 !important;
}

body.image-preview-open .gallery-work-modal .image-preview-nav {
    z-index: 100301;
}

body.image-preview-open .gallery-work-modal .image-preview-close {
    z-index: 100302;
}

.gallery-work-modal .image-preview-modal.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5002;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 3px solid rgba(255, 255, 255, .28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gallery-preview-spin .8s linear infinite;
    pointer-events: none;
}

@keyframes gallery-preview-spin {
    to {
        transform: rotate(360deg);
    }
}

.gallery-work-modal .image-preview-content {
    display: block;
    max-width: 96vw;
    max-height: 92vh;
    margin: auto;
    object-fit: contain;
}

.gallery-work-modal .image-preview-close {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: var(--image-preview-close-top, 8px);
    right: var(--image-preview-close-right, 24px);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    color: transparent;
    background: rgba(12, 18, 28, .74);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 0;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
}

.gallery-work-modal .image-preview-close::before,
.gallery-work-modal .image-preview-close::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.gallery-work-modal .image-preview-close::before {
    transform: rotate(45deg);
}

.gallery-work-modal .image-preview-close::after {
    transform: rotate(-45deg);
}

.gallery-work-modal .image-preview-nav {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 5001;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.gallery-work-modal .image-preview-prev,
.gallery-work-modal .image-preview-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    color: transparent;
    background: rgba(17, 24, 39, .54);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    cursor: pointer;
    pointer-events: auto;
    transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
}

.gallery-work-modal .image-preview-prev:hover,
.gallery-work-modal .image-preview-next:hover,
.gallery-work-modal .image-preview-prev:focus-visible,
.gallery-work-modal .image-preview-next:focus-visible {
    background: rgba(17, 24, 39, .84);
    transform: translateY(-1px);
}

.gallery-work-modal .image-preview-modal:not(.has-multiple) .image-preview-nav {
    display: none;
}

.gallery-work-modal .image-preview-prev::before,
.gallery-work-modal .image-preview-next::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
}

.gallery-work-modal .image-preview-prev::before {
    transform: rotate(135deg);
}

.gallery-work-modal .image-preview-next::before {
    transform: rotate(-45deg);
}

.gallery-work-modal .image-preview-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 18px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    text-align: center;
}

.gallery-work-page .gallery-work-comments.comment-section {
    width: min(960px, 100%);
    margin: 36px auto 0 !important;
    padding: 20px !important;
}

.gallery-work-comments .gallery-comment-form {
    margin: 0 !important;
}

.gallery-work-comments .blog-comments-head {
    margin-top: 18px !important;
}

.gallery-work-comments .blog-comments-count {
    margin: 0 !important;
    padding: 0 0 8px;
}

.gallery-work-comments .blog-comments-filter-form {
    margin: 0;
    border-bottom: 1px solid #dfe4eb !important;
}

.gallery-work-comments .gallery-empty-note--comments {
    margin: 8px 0 0;
    padding: 14px 0 4px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: .92rem;
    font-weight: 600;
    text-align: left;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer {
    width: min(880px, 100%);
    margin: 6px auto 0;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer .blog-footer-content {
    width: 100%;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer .blog-footer-meta-panel {
    display: grid;
    gap: 8px;
    padding: 10px 0 12px;
    border-top: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
    color: #6f7782;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-author-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-author-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-avatar {
    --avatar-flag-clip-radius: 18px;
    --avatar-flag-clip-y: -10px;
    --avatar-online-bottom: 1px;
    --avatar-role-top: -5px;
    --avatar-role-right: -5px;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-avatar-img {
    width: 36px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-author-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-author-name {
    color: #2f3743;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-author-name:hover,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-author-name:focus-visible {
    color: #111827;
    text-decoration: none;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-date {
    color: #8a94a3;
    font-size: 0.76rem;
    line-height: 1.2;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-stats {
    flex: 0 0 auto;
    margin-left: auto;
    width: max-content;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer .custom-tags {
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    color: #7a828c;
    font-size: 0.88rem;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer .custom-tags p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer .custom-tags-a {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 1px 7px;
    border: 1px solid #cfd7e2;
    border-radius: 6px;
    background: #f7f9fb;
    color: #6f7782;
    font-size: 0.88em;
    line-height: 1.2;
    text-decoration: none;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer h5 {
    width: min(880px, 100%);
    margin: 34px auto 12px;
    color: #242932;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.35;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 10px;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 10px;
    color: #374151 !important;
    background: #fff !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-edit-button:hover,
:is(.gallery-work-page, .gallery-modal-root) .gallery-work-edit-button:focus-visible {
    color: #111827 !important;
    background: #f4f5f7 !important;
    border-color: rgba(17, 24, 39, 0.22);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.10);
    transform: translateY(-1px);
    outline: none;
    text-decoration: none;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-edit-button i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-right: 9px;
    border-right: 1px solid rgba(17, 24, 39, 0.14);
    color: #6b7280;
    font-size: 0.85em;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-promo {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-support-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 34px;
    margin-bottom: 10px;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-support-head .adv-sup {
    justify-self: center;
    margin: 0;
    text-align: center;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-support-head .edit-button-container {
    justify-self: end;
    margin: 0;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-promo .promo-wrapper {
    margin-top: 0;
}

@media (max-width: 560px) {
    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-author-panel {
        align-items: flex-start;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-stats {
        justify-content: flex-end;
        gap: 7px;
        width: auto;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-author-name {
        font-size: 0.9rem;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer-date {
        font-size: 0.72rem;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer .custom-tags {
        font-size: 0.78rem;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer .custom-tags-a {
        min-height: 20px;
        padding: 1px 6px;
        font-size: 0.82em;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-support-head {
        gap: 8px;
        margin-bottom: 8px;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-support-head .adv-sup {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-support-head .gallery-work-edit-button {
        min-height: 30px;
        padding: 3px 8px;
        font-size: 0.78rem;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-support-head .gallery-work-edit-button i {
        padding-right: 7px;
    }
}

@media (max-width: 380px) {
    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-support-head {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-support-head .edit-button-container {
        justify-self: end;
    }
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer .rating-block {
    gap: 7px;
    margin-top: 24px !important;
    padding: 0 0 18px;
    color: #7a828c;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer .rating-block p {
    margin: 0;
    color: #7a828c;
    font-size: 0.9rem;
    line-height: 1.3;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer .like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    padding: 0;
    border: 1px solid #dde2e8;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .06);
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer .like-icon {
    width: 25px;
    height: 25px;
}

:is(.gallery-work-page, .gallery-modal-root) .gallery-work-footer .share-blog {
    padding-top: 22px !important;
}

.gallery-work-page .gallery-work-footer .share-block,
.gallery-modal-root .gallery-work-footer .share-block {
    gap: 18px;
}

.gallery-work-page .gallery-work-footer .share-icon,
.gallery-modal-root .gallery-work-footer .share-icon {
    width: 56px !important;
    height: 56px !important;
    font-size: 24px !important;
}

.gallery-work-page .gallery-work-footer .share-icon i,
.gallery-modal-root .gallery-work-footer .share-icon i {
    font-size: 25px !important;
}

.gallery-work-page .gallery-work-footer .gallery-author-title,
.gallery-modal-root .gallery-work-footer .gallery-author-title {
    display: block;
    width: 100%;
    margin: 34px auto 13px !important;
    color: #5f6368;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
}

.gallery-author-works-strip {
    max-width: 100%;
    overflow: hidden;
}

.gallery-author-works-strip .similar-blogs-swiper {
    overflow: visible;
}

.gallery-author-works-strip.is-carousel-ready .similar-blogs-swiper {
    overflow: hidden;
}

.gallery-author-works-strip .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    transform: none;
}

.gallery-author-works-strip.is-carousel-ready .swiper-wrapper {
    display: flex !important;
    grid-template-columns: none;
    align-items: stretch;
    transform: translate3d(0, 0, 0);
}

.gallery-author-works-strip .swiper-slide {
    min-width: 0;
    width: auto !important;
}

.gallery-author-works-strip.is-carousel-ready .swiper-slide {
    width: auto !important;
    flex: 0 0 auto;
}

.gallery-author-placeholder {
    cursor: default;
    pointer-events: none;
}

.gallery-author-placeholder .similar-blog-img-wrapper {
    border: 1px dashed #d8dee8;
    background: #f6f7f9;
}

.gallery-author-placeholder__media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa3ad;
    background: linear-gradient(135deg, #f7f8fa 0%, #eef1f5 100%);
    font-size: 28px;
}

html:has(.gallery-work-page),
html:has(.gallery-work-page) body,
.gallery-work-page,
.gallery-work-page .gallery-work-modal,
.gallery-work-page .gallery-work-modal__dialog,
body.gallery-modal-open .gallery-work-modal,
body.gallery-modal-open .gallery-work-modal__dialog,
.gallery-modal-root .gallery-work-modal,
.gallery-modal-root .gallery-work-modal__dialog {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html:has(.gallery-work-page)::-webkit-scrollbar,
html:has(.gallery-work-page) body::-webkit-scrollbar,
.gallery-work-page::-webkit-scrollbar,
.gallery-work-page .gallery-work-modal::-webkit-scrollbar,
.gallery-work-page .gallery-work-modal__dialog::-webkit-scrollbar,
body.gallery-modal-open .gallery-work-modal::-webkit-scrollbar,
body.gallery-modal-open .gallery-work-modal__dialog::-webkit-scrollbar,
.gallery-modal-root .gallery-work-modal::-webkit-scrollbar,
.gallery-modal-root .gallery-work-modal__dialog::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

@media (max-width: 1023px) {
    html:has(.gallery-work-page) .header,
    html:has(.gallery-work-page) .search-bar-mob,
    body.gallery-modal-open .header,
    body.gallery-modal-open .search-bar-mob,
    body.image-preview-open .header,
    body.image-preview-open .search-bar-mob {
        display: none !important;
    }

    body.gallery-modal-open .gallery-work-modal {
        z-index: 100200 !important;
    }

    body.gallery-modal-open .burger-menu,
    body.gallery-modal-open .header-mobile-actions .search-button,
    body.image-preview-open .burger-menu,
    body.image-preview-open .header-mobile-actions .search-button {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 980px) {
    .gallery-work-hero__title {
        width: auto;
        right: 20px;
        bottom: 88px;
    }

    .gallery-work-hero__stats {
        left: 20px;
        right: 20px;
        bottom: 24px;
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 760px) {
    .gallery-work-page,
    .gallery-work-modal,
    .gallery-work-modal__dialog {
        max-width: 100%;
        overflow-x: hidden;
    }

    .gallery-work-hero {
        min-height: 560px;
    }

    .gallery-work-hero__profile {
        top: 16px;
        left: 16px;
        width: calc(100% - 32px);
    }

    .gallery-work-hero__title {
        left: 16px;
        right: 16px;
        bottom: 94px;
        padding: 0;
    }

    .gallery-work-hero__title h1 {
        font-size: 24px;
    }

    .gallery-work-hero__stats {
        left: 16px;
        right: 16px;
        bottom: 18px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .gallery-work-hero__stats::-webkit-scrollbar {
        display: none;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-shell {
        --gallery-work-shell-x: 14px;
        padding: 20px var(--gallery-work-shell-x);
        max-width: 100%;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-content {
        max-width: 100%;
        overflow-x: visible;
    }

    :is(.gallery-work-page, .gallery-modal-root) .gallery-work-article.blog-article-content {
        grid-template-columns: 1fr;
        gap: 0;
        width: calc(100% + (var(--gallery-work-shell-x) * 2)) !important;
        max-width: calc(100% + (var(--gallery-work-shell-x) * 2)) !important;
        margin-right: calc(var(--gallery-work-shell-x) * -1) !important;
        margin-left: calc(var(--gallery-work-shell-x) * -1) !important;
        overflow-x: visible;
    }

    .gallery-work-modal .image-preview-close {
        width: 34px;
        height: 34px;
        box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
    }

    .gallery-work-modal .image-preview-close::before,
    .gallery-work-modal .image-preview-close::after {
        width: 13px;
        height: 1.8px;
    }

    .gallery-work-modal .image-preview-nav {
        padding: 0 12px;
    }

    .gallery-work-modal .image-preview-prev,
    .gallery-work-modal .image-preview-next {
        width: 38px;
        height: 38px;
        background: rgba(17, 24, 39, .44);
        box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
    }

    .gallery-work-modal .image-preview-prev::before,
    .gallery-work-modal .image-preview-next::before {
        width: 12px;
        height: 12px;
        border-width: 0 1.5px 1.5px 0;
    }

    .gallery-work-page .gallery-work-footer .gallery-author-title,
    .gallery-modal-root .gallery-work-footer .gallery-author-title {
        margin-top: 30px !important;
        font-size: 0.94rem !important;
    }

    .gallery-author-works-strip.is-carousel-ready .swiper-wrapper {
        gap: 0;
    }
}
