.cms-client-directory,
.cms-client-projects {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.cms-client-directory {
    align-items: stretch;
}

.cms-client-directory.cms-client-directory--graphic-design {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-portfolio-filters {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr repeat(4, minmax(140px, 1fr));
    gap: 10px;
    margin: -24px 0 18px;
    padding: 16px;
    border: 1px solid rgba(3, 7, 18, .12);
    border-radius: 8px;
    background: #fff;
}

.cms-filter-field {
    display: grid;
    gap: 7px;
}

.cms-filter-field label {
    margin: 0;
    color: rgba(3, 7, 18, .58);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.cms-filter-field select {
    width: 100%;
    min-height: 44px;
    padding: 9px 34px 9px 11px;
    border: 1px solid rgba(3, 7, 18, .14);
    border-radius: 6px;
    background-color: #f7f7f6;
    color: #030712;
    font: inherit;
}

.cms-client-card {
    display: flex;
    height: 100%;
    min-width: 0;
    border: 1px solid rgba(3, 7, 18, .12);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.cms-client-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 177, 92, .72);
    box-shadow: 0 18px 42px rgba(3, 7, 18, .1);
}

.cms-client-card.is-hidden {
    display: none;
}

.cms-client-card__link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    color: inherit;
}

.cms-client-card__cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0b0d12;
    overflow: hidden;
}

.cms-client-card__cover > img:first-child {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.cms-client-card:hover .cms-client-card__cover > img:first-child {
    transform: scale(1.025);
}

.cms-client-card__logo {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 6px;
    background: rgba(7, 9, 13, .9);
    object-fit: contain !important;
}

.cms-client-card__featured {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 7px 9px;
    border-radius: 4px;
    background: #c9b15c;
    color: #050505;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.cms-client-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 258px;
    padding: 20px;
}

.cms-client-card__body h3 {
    margin: 0 0 8px;
    color: #030712;
    font-size: 25px;
    line-height: 1.15;
    text-transform: none;
}

.cms-client-card__body p {
    min-height: 48px;
    margin: 0 0 18px;
    color: rgba(3, 7, 18, .66);
    font-size: 14px;
    line-height: 1.6;
}

.cms-client-card__meta,
.cms-client-card__services,
.cms-client-profile__meta,
.cms-project-card__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cms-client-card__meta {
    margin-top: auto;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(3, 7, 18, .09);
    color: #030712;
    font-size: 12px;
    font-weight: 700;
}

.cms-client-card__services {
    margin-bottom: 16px;
}

.cms-portfolio-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid rgba(3, 7, 18, .12);
    border-radius: 999px;
    color: rgba(3, 7, 18, .72);
    background: #f7f7f6;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.cms-portfolio-empty {
    grid-column: 1 / -1;
    padding: 52px 24px;
    border: 1px dashed rgba(3, 7, 18, .18);
    border-radius: 8px;
    color: rgba(3, 7, 18, .62);
    text-align: center;
}

.cms-client-profile {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 34px;
    align-items: end;
    padding: 32px;
    border: 1px solid rgba(3, 7, 18, .12);
    border-radius: 8px;
    background: #fff;
}

.cms-client-profile__eyebrow {
    margin: 0 0 10px;
    color: #8b772f;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cms-client-profile h2 {
    margin: 0 0 13px;
    color: #030712;
    font-size: 42px;
    line-height: 1.05;
    text-transform: none;
}

.cms-client-profile p {
    max-width: 760px;
    margin: 0;
    color: rgba(3, 7, 18, .68);
    line-height: 1.65;
}

.cms-client-profile__side {
    display: grid;
    gap: 15px;
}

.cms-client-profile__website {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    min-height: 48px;
    padding: 11px 15px;
    border-radius: 6px;
    background: #05070b;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.cms-client-category-nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: 8px 0 14px;
}

.cms-client-category-button {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid rgba(3, 7, 18, .13);
    border-radius: 999px;
    background: #fff;
    color: #030712;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.cms-client-category-button.active,
.cms-client-category-button:hover {
    border-color: #030712;
    background: #030712;
    color: #fff;
}

.cms-client-project-entry.is-hidden {
    display: none !important;
}

.cms-client-video-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.cms-client-video-group.is-hidden {
    display: none !important;
}

.cms-client-projects.cms-client-layout-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cms-client-projects.cms-client-layout-social {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-client-projects.cms-client-layout-instagram-posts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-client-projects.cms-client-layout-design-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-design-image {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.cms-design-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.cms-design-image:focus-visible {
    outline: 2px solid #c9b15c;
    outline-offset: 4px;
}

.cms-client-projects.cms-client-layout-reels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-client-projects.cms-client-layout-website {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-client-projects.cms-client-layout-photography {
    grid-template-columns: 1fr;
    gap: 38px;
}

.cms-client-layout-website .cms-website-preview {
    grid-column: 1 / -1;
    width: min(100%, 860px);
    justify-self: center;
}

.cms-client-direct-embed {
    position: relative;
    top: auto;
    display: block;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.cms-client-direct-embed .image-area {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #050505;
    line-height: 0;
    box-shadow: none;
}

.cms-client-direct-embed .image-area .shape {
    display: none;
}

.cms-client-direct-embed.cms-instagram-post {
    width: 100%;
}

.cms-client-direct-embed.cms-instagram-post .image-area {
    height: clamp(620px, 44vw, 760px);
    aspect-ratio: auto;
    background: #fff;
}

.cms-client-direct-embed.cms-instagram-local-preview .image-area {
    height: auto;
    aspect-ratio: auto;
    background: transparent;
}

.cms-client-direct-embed.cms-instagram-local-preview .cms-instagram-local-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

.cms-client-direct-embed.cms-instagram-reel {
    width: min(100%, 360px);
    justify-self: center;
}

.cms-client-direct-embed.cms-instagram-reel .image-area {
    aspect-ratio: 9 / 16;
}

.cms-client-direct-embed.cms-instagram-reel .cms-instagram-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #050505;
}

.cms-client-direct-embed.cms-instagram-reel .cms-instagram-embed iframe {
    position: absolute;
    left: 50%;
    top: -92px;
    width: 100%;
    height: calc(100% + 184px);
    border: 0;
    transform: translateX(-50%) scale(1.62);
    transform-origin: top center;
    background: #050505;
}

.cms-client-direct-embed .cms-work-caption {
    padding: 15px 2px 0;
    background: transparent;
    text-align: left;
}

.cms-client-direct-embed .cms-work-caption .title {
    margin: 0 0 6px;
    color: #030712;
    font-size: 21px;
    line-height: 1.2;
    text-transform: none;
}

.cms-client-direct-embed .cms-work-caption .desc {
    margin: 0;
    color: rgba(3, 7, 18, .62);
    line-height: 1.55;
}

.cms-client-direct-embed .cms-instagram-caption {
    text-align: center;
}

.cms-project-card {
    width: 100%;
    padding: 0;
    border: 1px solid rgba(3, 7, 18, .12);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    color: inherit;
    font: inherit;
    text-align: left;
    transition: transform .22s ease, border-color .22s ease;
}

.cms-project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 177, 92, .72);
}

.cms-project-card.is-hidden {
    display: none;
}

.cms-website-preview {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(3, 7, 18, .12);
    border-radius: 8px;
    background: #fff;
    color: #030712;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.cms-website-preview:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 177, 92, .72);
    box-shadow: 0 18px 42px rgba(3, 7, 18, .1);
}

.cms-website-preview__browser {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(3, 7, 18, .09);
    background: #f7f7f6;
}

.cms-website-preview__browser span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(3, 7, 18, .18);
}

.cms-website-preview__browser em {
    min-width: 0;
    margin-left: 6px;
    overflow: hidden;
    color: rgba(3, 7, 18, .58);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-website-preview__screen {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #07090d;
}

.cms-client-layout-website .cms-website-preview__screen {
    aspect-ratio: 16 / 9;
}

.cms-client-layout-website .cms-website-preview__browser {
    min-height: 44px;
    padding: 0 18px;
}

.cms-client-layout-website .cms-website-preview__body {
    padding: 20px 22px;
}

.cms-client-layout-website .cms-website-preview__body strong {
    font-size: 24px;
}

.cms-website-preview__screen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform .55s ease;
}

.cms-website-preview:hover .cms-website-preview__screen img {
    transform: scale(1.025);
}

.cms-website-preview__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px;
}

.cms-website-preview__body strong {
    min-width: 0;
    color: #030712;
    font-size: 20px;
    line-height: 1.2;
}

.cms-website-preview__body small {
    flex: 0 0 auto;
    color: #8b772f;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cms-project-card__image {
    width: 100%;
    aspect-ratio: 16 / 11;
    display: block;
    object-fit: cover;
    background: #0b0d12;
}

.cms-project-card__body {
    padding: 17px;
}

.cms-project-card__body h3 {
    margin: 0 0 12px;
    color: #030712;
    font-size: 21px;
    line-height: 1.2;
    text-transform: none;
}

.cms-project-card__meta {
    color: rgba(3, 7, 18, .58);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.cms-photography-album {
    position: relative;
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 1080px);
    min-width: 0;
    padding: 14px;
    overflow: visible;
    border: 1px solid rgba(201, 177, 92, .34);
    border-radius: 4px;
    background: #080a0e;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 9px 0 #dededb, 0 10px 0 rgba(3, 7, 18, .15), 0 24px 50px rgba(3, 7, 18, .12);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.cms-photography-album::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 50%;
    z-index: 2;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .13), transparent);
    pointer-events: none;
}

.cms-photography-album:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 177, 92, .72);
    box-shadow: 0 11px 0 #dededb, 0 12px 0 rgba(3, 7, 18, .16), 0 30px 64px rgba(3, 7, 18, .18);
}

.cms-photography-album__visual {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(150px, 1fr);
    align-items: stretch;
    aspect-ratio: 8 / 3;
    gap: 12px;
    min-width: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
}

.cms-photography-album__visual::after {
    display: none;
}

.cms-photography-album--reverse .cms-photography-album__visual {
    grid-template-columns: minmax(150px, 1fr) minmax(0, 2.1fr);
}

.cms-photography-album__lead,
.cms-photography-album__stack > span {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 5px solid #f3f2ef;
    background: #11141a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.cms-photography-album__lead {
    display: block;
    min-height: 0;
}

.cms-photography-album__stack {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    min-height: 0;
}

.cms-photography-album__stack > span {
    display: block;
    min-height: 0;
}

.cms-photography-album--reverse .cms-photography-album__lead {
    order: 2;
}

.cms-photography-album--reverse .cms-photography-album__stack {
    order: 1;
}

.cms-photography-album__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .35s ease;
}

.cms-photography-album:hover .cms-photography-album__lead img {
    transform: scale(1.018);
}

.cms-photography-album:hover .cms-photography-album__stack > span:first-child img {
    transform: scale(1.035) translateY(-1px);
}

.cms-photography-album:hover .cms-photography-album__stack > span:last-child img {
    transform: scale(1.035) translateY(1px);
}

.cms-photography-album__count {
    position: absolute;
    right: 18px;
    bottom: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 2px;
    background: rgba(3, 5, 9, .84);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.cms-photography-album__count b {
    color: #d8be62;
    font-size: 16px;
}

.cms-photography-album__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 110px;
    padding: 19px 7px 7px;
}

.cms-photography-album__folio {
    align-self: start;
    padding-top: 3px;
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.cms-photography-album__copy {
    display: grid;
    gap: 6px;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.cms-photography-album__copy small {
    color: #d0b85f;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.cms-photography-album__copy strong {
    color: #fff;
    font-size: 30px;
    line-height: 1.08;
}

.cms-photography-album__copy em {
    display: -webkit-box;
    max-width: 620px;
    overflow: hidden;
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cms-photography-album__view {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.cms-photography-album__view b {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(201, 177, 92, .68);
    border-radius: 50%;
    color: #d8be62;
    font-size: 18px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.cms-photography-album:hover .cms-photography-album__view b {
    transform: rotate(4deg);
    background: #d0b85f;
    color: #05070b;
}

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

.cms-project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 5, 9, .76);
}

.cms-project-modal.is-open {
    display: flex;
}

.cms-project-modal__dialog {
    position: relative;
    width: min(1080px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: #f4f4f3;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

.cms-project-modal__close {
    position: sticky;
    top: 14px;
    z-index: 2;
    float: right;
    width: 42px;
    height: 42px;
    margin: 14px 14px -56px 0;
    border: 0;
    border-radius: 50%;
    background: #05070b;
    color: #fff;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.cms-project-modal__header {
    padding: 34px 34px 24px;
}

.cms-project-modal__header h2 {
    max-width: 780px;
    margin: 0 0 12px;
    color: #030712;
    font-size: 36px;
    line-height: 1.08;
    text-transform: none;
}

.cms-project-modal__header p {
    max-width: 800px;
    margin: 14px 0 0;
    color: rgba(3, 7, 18, .68);
    line-height: 1.65;
}

.cms-project-modal__media {
    display: grid;
    gap: 16px;
    padding: 0 34px 34px;
}

.cms-project-modal--photography .cms-project-modal__dialog {
    width: min(1240px, 100%);
    border-color: rgba(201, 177, 92, .28);
    background: #080a0e;
}

.cms-project-modal--photography .cms-project-modal__media {
    display: block;
    padding-top: 8px;
}

.cms-project-modal--photography .cms-project-modal__header h2 {
    color: #fff;
}

.cms-project-modal--photography .cms-project-modal__header p {
    color: rgba(255, 255, 255, .6);
}

.cms-project-modal--photography .cms-portfolio-chip {
    border-color: rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .72);
}

.cms-photo-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.cms-photo-gallery__item {
    position: relative;
    grid-column: span 6;
    align-self: start;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 2px;
    background: #0b0d12;
}

.cms-photo-gallery__item:first-child,
.cms-photo-gallery__item:nth-child(5n + 1),
.cms-photo-gallery__item:last-child:nth-child(odd) {
    grid-column: span 12;
}

.cms-photo-gallery__item:nth-child(5n + 4) {
    grid-column: span 7;
}

.cms-photo-gallery__item:nth-child(5n + 5) {
    grid-column: span 5;
}

.cms-photo-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .35s ease;
}

.cms-photo-gallery__item:hover img {
    transform: scale(1.012);
    filter: saturate(1.035);
}

.cms-photo-gallery__number {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 27px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 2px;
    background: rgba(3, 5, 9, .66);
    color: rgba(255, 255, 255, .9);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(7px);
}

.cms-photo-gallery__item figcaption {
    padding: 10px 12px;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    line-height: 1.45;
}

.cms-project-media {
    overflow: hidden;
    border-radius: 6px;
    background: #07090d;
}

.cms-project-media--embed {
    border-radius: 0;
    background: transparent;
}

.cms-project-media img,
.cms-project-media video {
    width: 100%;
    max-height: 78vh;
    display: block;
    object-fit: contain;
}

.cms-project-media iframe {
    width: 100%;
    min-height: min(76vh, 760px);
    display: block;
    border: 0;
    background: #fff;
}

.cms-project-media__caption {
    margin: 0;
    padding: 10px 13px;
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
}

.cms-before-after {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
}

.cms-before-after figure {
    position: relative;
    margin: 0;
    background: #07090d;
}

.cms-before-after span {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(5, 7, 11, .82);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 1199px) {
    .cms-client-video-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-client-directory,
    .cms-client-projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-client-projects.cms-client-layout-social {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-portfolio-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cms-client-video-group--wide {
        grid-template-columns: 1fr;
    }

    .cms-client-video-group--reels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .cms-client-video-group--reels .cms-client-direct-embed.cms-instagram-reel {
        width: 100%;
    }

    .cms-client-video-group--reels .cms-client-direct-embed.cms-instagram-reel .cms-instagram-embed iframe {
        left: calc(50% + 9px);
    }

    .cms-client-directory,
    .cms-client-projects,
    .cms-client-projects.cms-client-layout-wide,
    .cms-client-projects.cms-client-layout-social,
    .cms-portfolio-filters,
    .cms-client-profile {
        grid-template-columns: 1fr;
    }

    .cms-client-directory.cms-client-directory--graphic-design {
        grid-template-columns: 1fr;
    }

    .cms-client-projects.cms-client-layout-instagram-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
        align-items: start;
    }

    .cms-client-projects.cms-client-layout-design-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
        align-items: start;
    }

    .cms-client-projects.cms-client-layout-instagram-posts .cms-client-direct-embed.cms-instagram-post .image-area {
        height: auto;
        aspect-ratio: 4 / 5;
        border-radius: 12px;
        background: #fff;
    }

    .cms-client-projects.cms-client-layout-instagram-posts .cms-client-direct-embed.cms-instagram-local-preview .image-area {
        aspect-ratio: auto;
        border-radius: 0;
        background: transparent;
    }

    .cms-client-projects.cms-client-layout-instagram-posts .cms-client-direct-embed.cms-instagram-local-preview .cms-instagram-local-image {
        border-radius: 12px;
    }

    .cms-client-projects.cms-client-layout-instagram-posts .cms-client-direct-embed.cms-instagram-post .cms-instagram-embed {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background: #fff;
    }

    .cms-client-projects.cms-client-layout-instagram-posts .cms-client-direct-embed.cms-instagram-post .cms-instagram-embed iframe {
        position: absolute;
        left: 50%;
        top: -54px;
        width: 100%;
        height: 760px;
        border: 0;
        transform: translateX(-50%);
        transform-origin: top center;
        background: #fff;
    }

    .cms-portfolio-filters {
        margin-top: -8px;
        gap: 12px;
        padding: 14px;
    }

    .cms-client-profile {
        padding: 22px;
        gap: 20px;
    }

    .cms-client-profile h2 {
        font-size: 32px;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .cms-client-profile__website {
        min-height: 48px;
    }

    .cms-client-category-nav {
        gap: 8px;
        margin: 4px 0 12px;
    }

    .cms-project-modal {
        padding: 8px;
    }

    .cms-project-modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 16px);
        overscroll-behavior: contain;
    }

    .cms-project-modal__header,
    .cms-project-modal__media {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cms-project-modal__header h2 {
        padding-right: 42px;
        font-size: 28px;
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .cms-project-modal__close {
        width: 44px;
        height: 44px;
    }

    .cms-project-media iframe {
        min-height: min(70dvh, 640px);
    }

    .cms-website-preview__body {
        align-items: flex-start;
        padding: 15px;
    }

    .cms-client-layout-website .cms-website-preview__body strong,
    .cms-website-preview__body strong {
        font-size: 19px;
        overflow-wrap: anywhere;
    }

    .cms-website-preview__body small {
        padding-top: 3px;
        white-space: nowrap;
    }

    .cms-client-card__link,
    .cms-project-card,
    .cms-photography-album,
    .cms-website-preview {
        touch-action: manipulation;
    }

    .cms-before-after {
        grid-template-columns: 1fr;
    }

    .cms-client-projects.cms-client-layout-reels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px !important;
    }

    .cms-client-projects.cms-client-layout-reels .cms-client-direct-embed.cms-instagram-reel {
        width: 100%;
    }

    .cms-client-projects.cms-client-layout-reels .cms-client-direct-embed.cms-instagram-reel .cms-instagram-embed iframe {
        left: calc(50% + 9px);
    }

    .cms-client-projects.cms-client-layout-photography {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cms-photography-album {
        padding: 8px;
        box-shadow: 0 6px 0 #dededb, 0 7px 0 rgba(3, 7, 18, .15), 0 18px 36px rgba(3, 7, 18, .12);
    }

    .cms-photography-album::before {
        display: none;
    }

    .cms-photography-album__visual,
    .cms-photography-album--reverse .cms-photography-album__visual {
        grid-template-columns: minmax(0, 2fr) minmax(76px, 1fr);
        gap: 7px;
    }

    .cms-photography-album--reverse .cms-photography-album__lead {
        order: 0;
    }

    .cms-photography-album--reverse .cms-photography-album__stack {
        order: 0;
    }

    .cms-photography-album__lead,
    .cms-photography-album__stack > span {
        border-width: 3px;
    }

    .cms-photography-album__stack {
        gap: 7px;
    }

    .cms-photography-album__body {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 14px;
        min-height: 0;
        padding: 15px 5px 7px;
    }

    .cms-photography-album__folio {
        grid-column: 1 / -1;
        padding: 0;
    }

    .cms-photography-album__copy {
        gap: 5px;
        padding-left: 0;
        border-left: 0;
    }

    .cms-photography-album__copy strong {
        font-size: 21px;
    }

    .cms-photography-album__copy em {
        font-size: 11px;
    }

    .cms-photography-album__view > span {
        display: none;
    }

    .cms-photography-album__view b {
        width: 40px;
        height: 40px;
    }

    .cms-photography-album__count {
        right: 9px;
        bottom: 8px;
        padding: 6px 7px;
    }

    .cms-photo-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cms-photo-gallery__item,
    .cms-photo-gallery__item:first-child,
    .cms-photo-gallery__item:nth-child(5n + 1),
    .cms-photo-gallery__item:nth-child(5n + 4),
    .cms-photo-gallery__item:nth-child(5n + 5),
    .cms-photo-gallery__item:last-child:nth-child(odd) {
        grid-column: 1;
        width: auto;
    }

    .cms-photo-gallery__item:nth-child(even) {
        margin-left: 18px;
    }

    .cms-photo-gallery__item:nth-child(odd):not(:first-child) {
        margin-right: 18px;
    }
}

@media (max-width: 519px) {
    .cms-client-projects.cms-client-layout-photography {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .cms-portfolio-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-filter-field:first-child {
        grid-column: 1 / -1;
    }

    .cms-before-after {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 520px) and (max-width: 767px) {
    .cms-client-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .cms-client-card__body {
        min-height: 248px;
        padding: 15px;
    }

    .cms-client-card__body h3 {
        font-size: 20px;
    }

    .cms-client-card__body p {
        min-height: 0;
        margin-bottom: 14px;
        font-size: 13px;
    }

    .cms-client-card__logo {
        left: 12px;
        bottom: 12px;
        width: 48px;
        height: 48px;
    }

    .cms-client-projects:not(.cms-client-layout-social):not(.cms-client-layout-website) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .cms-client-projects.cms-client-layout-social:not(.cms-client-layout-reels),
    .cms-client-projects.cms-client-layout-website {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 374px) {
    .cms-client-profile {
        padding: 18px;
    }

    .cms-client-profile h2 {
        font-size: 28px;
    }

    .cms-client-category-button {
        min-height: 38px;
        padding-inline: 11px;
        font-size: 11px;
    }

    .cms-project-modal__header,
    .cms-project-modal__media {
        padding-left: 14px;
        padding-right: 14px;
    }
}
