/*
Theme Name: Mashq Studio
Theme URI: https://mashqstudio.com/
Author: Farzin MOjaver
Description:
Version: 1.0.0
Text Domain: mashq-studio
*/
@font-face {
    font-family: "Nian";
    src: url("assets/fonts/w_Nian.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: "Nian";
    src: url("assets/fonts/w_NianBold.ttf") format("truetype");
    font-style: normal;
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: "Helvena";
    src: url("assets/fonts/Helvena-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: bold;
    font-display: swap;
}
/***************************************************
                global
***************************************************/
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: #f6f6f6;
    color: #1a1a1a;
    font-family: Poppins,Arial,sans-serif;
    -webkit-font-smoothing: antialiased;
}
* {
	outline:none;
}
a {
    color: inherit;
    text-decoration: none;
}
button,input,textarea,select {
    font: inherit;
}
p {
	line-height:1.2;
	text-align:justify;
}
img {
    display: block;
    max-width: 100%;
}
main {
	margin-top:80px;
}
.container {
    max-width: 1440px;
    padding-left: 40px;
    padding-right: 40px;
    margin: auto;
}
.wp-content-page {
    min-height: 55vh;
    padding-top: 70px;
    padding-bottom: 90px;
}
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
/***************************************************
                persian typography
***************************************************/
/* Persian content in every project layout: A / B / C. */
.mashq-single .mashq-lang-text[data-lang="fa"],
.mashq-single .mashq-lang-text[data-lang="fa"] *,
.mashq-single [lang|="fa"],
.mashq-single [lang|="fa"] *,
.mashq-about #about-fa,
.mashq-about #about-fa *,
[lang|="fa"],
[lang|="fa"] * {
    font-family: "Nian", Tahoma, Arial, sans-serif !important;
    line-height: 1.4;
}
/* The visible Persian text is RTL; English text stays left-aligned. */
.mashq-single .mashq-lang-text[data-lang="fa"],
.mashq-single [lang|="fa"],
.mashq-about #about-fa {
    direction: rtl;
    text-align: right;
}
/* This also covers Persian headings (including Services) in A, B and C. */
.mashq-single h1 .mashq-lang-text[data-lang="fa"],
.mashq-single h2 .mashq-lang-text[data-lang="fa"],
.mashq-single h3 .mashq-lang-text[data-lang="fa"],
.mashq-single .project-services-list .mashq-lang-text[data-lang="fa"] {
    font-family: "Nian", Tahoma, Arial, sans-serif !important;
    font-weight: bold;
	font-size:16px;
}
/* Align a whole services block when the Persian switch is active. */
.mashq-single .project-a-services:has(.mashq-lang-text[data-lang="fa"]:not([hidden])),
.mashq-single .project-services-list:has(.mashq-lang-text[data-lang="fa"]:not([hidden])) {
    direction: rtl;
    text-align: right;
}
.mashq-single .project-services-list:has(.mashq-lang-text[data-lang="fa"]:not([hidden])) {
    align-items: flex-start;
}
/***************************************************
                header
***************************************************/
.site-header {
	width:100%;
    height: 77px;
    position: relative;
    z-index: 30;
    background: #f6f6f6;
	position:fixed;
	top:0;
}
.header-inner {
    max-width: 1440px;
    padding: 0 40px;
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 29px;
}
.logo img {
    width: 34px;
    height: 23px;
    object-fit: contain;
}
.nav-links {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: #303030;
}
.nav-links>div {
    display: flex;
    align-items: center;
    gap: 19px;
}
.nav-links i,.footer-navigation i {
    font: 14px Arial,sans-serif;
    color: #ccc;
    font-style: normal;
}
.menu-toggle {
    display: none;
}

/***************************************************
                homepage
***************************************************/
.intro {
    min-height: 147px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 27px;
    padding-bottom: 27px;
}
.intro h1 {
    font-size: 19px;
    line-height: 1.4;
    margin: 0;
}
.intro small {
    font-size: 11px;
}
.intro-copy {
    max-width: 494px;
	min-height:160px;
    font: 14px/1.4 Glory,Arial,sans-serif;
}
.intro-copy p {
    margin: 0;
}
.landing-projects {
    padding-top: 51px;
    padding-bottom: 51px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 19px;
}
.section-heading h2,
.section-heading a {
    font-size: 13px;
    font-weight: 400;
    margin: 0;
}
.page-id-2 .section-heading h2 {
	font-weight:bold;
}
.landing-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 27px 21px;
}
.landing-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}
.landing-image {
    width: 100%;
    height: 312px;
    position: relative;
    background: #e8e8e8;
    overflow: hidden;
}
.landing-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.landing-card:hover .landing-image img.project-cover {
    transform: scale(1.025);
}
.landing-card .landing-image img {
    transition: opacity .3s ease, transform .35s ease;
}
.landing-card .landing-image {
    position: relative;
}
.landing-card .landing-image img.project-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}
.landing-card:hover .landing-image.has-hover-image img.project-hover,
.landing-card:focus-visible .landing-image.has-hover-image img.project-hover {
    opacity: 1;
}

/***************************************************
        HOME - INTRO LANGUAGE SWITCH
***************************************************/

#home-intro [hidden] {
    display: none !important;
}

#home-intro .home-intro-language-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

#home-intro .home-intro-language-switch button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: 11px Poppins, Arial, sans-serif;
    color: #1a1a1a;
    opacity: .4;
}

#home-intro .home-intro-language-switch button[aria-pressed="true"] {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Persian intro only */
#home-intro .home-intro-fa {
    direction: rtl;
    text-align: right;
    font-family: "Nian", Tahoma, sans-serif;
	font-size:16px;
}

#home-intro h1 .home-intro-fa {
    font-family: "Nian", Tahoma, sans-serif;
    font-weight: bold;
	font-size:18px;
}

/***************************************************
                projects
***************************************************/
.project-directory {
    padding-top: 35px;
    padding-bottom: 35px;
	min-height:calc(100dvh - 332px)
}
.directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}
.project-card {
    display: block;
    min-width: 0;
    color: #fff;
    position: relative;
}
.project-card .project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.45;
    overflow: hidden;
    background: #e7e7e7;
}
.project-card .project-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .35s ease, transform .45s ease;
}
.project-card .project-image .project-hover {
    opacity: 0;
}
.project-meta {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
	flex-direction:column;
    align-items: start;
    justify-content: space-between;
    padding: 10px;
    font-size: 11px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    visibility: hidden;
}
.project-meta {
	font-size: 13px;
	color: #fff;
	line-height: 1;
}
.project-meta .project-hover-title {
	font-size: 16px;
	font-weight: bold;
	line-height:1.2;
	margin-top:5px;
}
.project-hover-right {
	display:flex;
	align-items:center;
	line-height:1;
	min-width:59px;
}
.project-hover-action {
	background-color: rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	border-radius: 4px;
	padding:5px;
	font-size:8px;
}
.project-hover-left {
    display: flex;
    flex-direction: column;
}
.project-action {
    flex: none;
    font-size: 9px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .3s ease;
}
.archive-title {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 20px;
}
.project-directory .pagination {
    margin: 30px 0;
    font-size: 12px;
}
.mob-project-pager--a {
	display:none;
}
.project-a-inner .project-a-info .project-pager--a {
	display:flex;
	position:absolute;
	bottom:0;
	padding-bottom:20px;
}
.category-load-more-wrap {
	display:flex;
	justify-content:center;
	margin-top:20px;
}
#category-load-more {
	background:#000;
	color:#fff;
	border:none;
	border-radius:4px;
	font-size:12px;
}
/***************************************************
                project filters
***************************************************/
.project-filter-wrapper {
    margin-bottom: 25px;
}
.project-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: 400 13px/1.4 Poppins, Arial, sans-serif;
    cursor: pointer;
}
.project-filter-toggle .project-filter-icon {
    display: block;
    width: 17px;
    height: 17px;
    flex: none;
    object-fit: contain;
}
.project-filter-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
.project-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 12px 0 0;
    font-size: 10px;
}
.project-filters[hidden] {
    display: none !important;
}
.project-filters a {
    color: #777;
    transition: color .2s ease;
}
.project-filters a:hover, .project-filters a.is-active {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 4px;
}
/***************************************************
                services
***************************************************/
.services-title {
    padding: 20px 0;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #ddd;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 40px 0;
}
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    aspect-ratio: 1.3;
    padding: 30px;
    background: #fff;
    color: #1a1a1a;
    overflow: hidden;
    isolation: isolate;
    transition: color .3s ease;
}
.service-card-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease, transform .5s ease;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .32);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.service-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
	justify-content:end;
    width: 100%;
    height: 100%;
}
.service-card h2 {
    max-width: 100%;
    margin: 0;
    font-family: Poppins, Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.15;
}
.service-card-description {
    max-width: 320px;
    margin-top: 20px;
    font-family: Glory, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    transition: opacity .2s ease, visibility .2s ease;
}
.service-card-description p {
    margin: 0;
}
.service-card-link {
    display: block;
    margin-top: 20px;
    padding: 4px 10px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    background: rgba(255,255,255,.5);
    border-radius: 10px;
    transition: opacity .3s ease, visibility .3s ease;
}
/***************************************************
                single project - shared
***************************************************/
.wp-project-content {
    margin: 50px auto;
}
.wp-project-content img {
    width: auto;
    height: auto;
}
.project-intro-text {
    max-width: 490px;
    font-size: 14px;
    line-height: 1.55;
}
.project-intro-text p {
    margin: 0 0 16px;
}
.mashq-single {
    background: #f6f6f6;
    color: #171717;
}
.mashq-single figure {
    margin: 0;
}
.mashq-single img {
    display: block;
    max-width: 100%;
}
.project-figure img {
    width: 100%;
    height: auto;
}
.project-figure figcaption {
    margin: 8px 0 0;
    font-size: 11px;
    color: #777;
}
.project-breadcrumb {
    font-family: Poppins, sans-serif;
    font-size: 10px;
    padding-top: 12px;
    padding-bottom: 25px;
    color: #555;
}
.project-breadcrumb a:hover {
    text-decoration: underline;
}
.project-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0px, 1fr));
    gap: 22px;
    font-size: 11px;
}
.project-facts-grid span {
    display: block;
    opacity: .42;
    font-size: 10px;
    margin-bottom: 8px;
}
.project-facts-grid-a {
	margin-top:10px;
}
.project-facts-grid-a span {
    opacity: .42;
}
.project-facts-grid p {
    margin: 0;
    line-height: 1.5;
}
.project-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 55px;
    padding-bottom: 50px;
    font-size: 13px;
    background: #f6f6f6;
}
.project-pager > div:last-child {
    text-align: right;
    margin-left: auto;
}
.project-pager a:hover {
    text-decoration: underline;
}
.mashq-single .project-pager {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
	margin-top:40px;
}
.project-pager-card {
    display: flex;
    flex-direction: column;
    width: 237px;
    max-width: 48%;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    transition: opacity .2s ease;
}
.project-pager-card:hover {
    opacity: .73;
    text-decoration: none !important;
}
.project-pager-image {
    display: block;
	width:90%;
	max-width:200px;
    height: 60px;
    overflow: hidden;
    background: #e6e6e6;
}
.project-pager-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.project-pager-card:hover img {
    transform: scale(1.035);
}
.project-pager-direction {
    font-size: 13px;
    line-height: 1;
	margin-top:5px;
}
.project-pager-title {
    font-size: 10px;
    opacity: .55;
    line-height: 1;
	margin-top:5px;
}
.project-pager-card--next {
    margin-left: auto;
    text-align: right;
    align-items: flex-end;
}
.project-pager-card--previous {
    margin-right: auto;
    text-align: left;
    align-items: flex-start;
}
.mashq-lang-text[hidden] {
    display: none !important;
}
.mashq-lang-text {
    display: block;
}
.project-language-switch {
    display: flex;
    gap: 12px;
    font: 11px Poppins, sans-serif;
    margin: 10px 0 22px;
}
.project-language-switch button {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    opacity: .38;
}
.project-language-switch button[aria-pressed="true"] {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.project-figure a, .project-b-hero a, .project-c-hero a {
    display: block;
    cursor: zoom-in;
}
.mashq-single .fancybox-container img {
    max-width: none;
}
/***************************************************
                single project - type a
***************************************************/
.layout-a .project-a-inner.container {
    display: grid;
    grid-template-columns: minmax(0, 38.2fr) minmax(0, 61.8fr);
    align-items: start;
    column-gap: clamp(32px, 4.3vw, 70px);
    max-width: none;
    width: min(1360px, calc(100% - 40px));
	padding:0;
}
.layout-a .project-a-info {
    position: sticky;
    top: 84px;
    align-self: start;
    min-width: 0;
    height: calc(100dvh - 80px);
    margin: 0;
}
.layout-a .project-a-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}
.layout-a .project-a-heading h1 {
    margin: 0;
    font: 600 20px/1.25 Poppins, Arial, sans-serif;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}
.layout-a .project-a-separator {
    font-weight: 400;
}
.layout-a .project-language-switch {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.layout-a .project-language-switch button {
    font: 400 11px/1.4 Poppins, Arial, sans-serif;
}
.layout-a .project-a-content {
    margin-top: 20px;
}
.layout-a .project-a-description, .layout-a .project-a-services, .layout-a .project-services-list a {
    font: 400 14px/1.46 Glory, Arial, sans-serif;
}
.layout-a .project-a-description,
.layout-a .project-a-description .mashq-bilingual,
.layout-a .project-a-description .mashq-lang-text,
.layout-a .project-a-description p {
    max-width: none;
    margin: 0;
    padding: 0;
}
.layout-a .project-a-services {
    margin: 0;
    padding: 0;
    border: 0;
}
.layout-a .project-a-services h2 {
    margin: 0;
    padding: 0;
    font: inherit;
}
.layout-a .project-services-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
}
.layout-a .project-services-list a {
    display: block;
    margin: 0;
    padding: 0;
    text-decoration: none;
    line-height: 1.2;
}
.layout-a .project-services-list a:hover, .layout-a .project-services-list a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 1px;
}
.layout-a .project-a-services {
    direction: ltr;
    text-align: left;
}
.layout-a .project-services-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.layout-a .project-pager--a {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.layout-a .project-a-images {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    margin:0;
    padding: 0;
}
.layout-a .project-a-row {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
}
.layout-a .project-a-row--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
}
.layout-a .project-a-row--two:has(> .project-figure:only-child) {
    grid-template-columns: 1fr;
}
.layout-a .project-a-row .project-figure, .layout-a .project-a-row .project-figure a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 0;
}
.layout-a .project-a-row .project-figure img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    vertical-align: top;
}
.layout-a .project-a-row--two .project-figure a {
    height: 100%;
}
.layout-a .project-a-row--two .project-figure img {
    height: 100%;
    object-fit: cover;
}
.layout-a .project-a-row .project-figure figcaption {
    display: none;
}
/***************************************************
                single project - type b & c
***************************************************/
.project-block {
    width: min(1360px, calc(100% - 40px));
    margin: 0 auto 40px;
}
.project-block h2 {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 18px;
	font-weight:normal;
	font-family:'Helvena';
}
.project-block-copy {
    font-family: Glory, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}
.project-block-copy p {
    margin: 0;
}
.project-block--full-image {
    width: 100%;
    max-width: none;
	aspect-ratio: 100 / 47;
	object-fit:cover;
	overflow:hidden;
}
.project-block--full-image img {
	aspect-ratio: 100 / 47;
	object-fit:cover;
}
.project-block--image {
    display: flex;
}
.project-block--image.position-left {
    justify-content: flex-start;
}
.project-block--image.position-center {
    justify-content: center;
}
.project-block--image.position-right {
    justify-content: flex-end;
}
.project-block--image.width-small .project-figure {
    width: 24%;
}
.project-block--image.width-medium .project-figure {
    width: 50%;
}
.project-block--image.width-large .project-figure {
    width: 75%;
}
.project-block--text {
	width:calc( 50% - 40px );
    display: flex;
    align-items: start;
}
.project-block--text h2 {
    width: 140px;
    flex: none;
}
.project-block--text .project-block-copy {
    width: calc(50% - 200px);
}
.project-block--text.position-center {
    justify-content: center;
}
.project-block--text.position-right {
    justify-content: flex-end;
}
.project-block--image-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
}
.project-block--image-text.media-right .project-figure {
    order: 2;
}
.project-block--image-text.media-right .project-block-copy {
    order: 1;
	display:flex;	
}
.project-block--image-text.media-right .project-block-copy h2 {
    margin: 0 50px 18px 0;
    width: 120px;
}
.layout-b .project-block--image-text.media-right .project-block-copy .mashq-bilingual:nth-child(2) {
    width: calc(100% - 170px);
}
.layout-b .project-block--pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}
.project-block--gallery {
	margin-bottom:40px !important;
}
.project-block--gallery > h2 {
    margin-bottom: 25px;
}
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
}
.project-gallery-grid figure a {
	aspect-ratio:3/2;
	overflow:hidden;	
}
.project-gallery-grid figure a img {
	object-fit:cover;
    width: 100%;
    height: 100%;	
}
/***************************************************
                single project - type b flexible sections
***************************************************/
/* All Type B sections use the site's responsive editorial content width. */
.layout-b .project-b-content {
    min-width: 0;
}
.layout-b .project-b-content .project-block {
    margin-bottom: 10vh;
}
.layout-b .project-b-content .project-figure {
    min-width: 0;
    margin: 0;
}
.layout-b .project-b-content .project-figure img {
    display: block;
    width: 100%;
    height: auto;
}
.layout-b .project-block.project-block--image-text.media-right:first-child .project-b-text-content {
	width:100%;
}
.layout-b .project-block.project-block--image-text.media-right:first-child figure a {
	width:100% !important;
    margin-left: 0 !important;
}
/* Positioned image: presets or a user-entered percentage. */
.layout-b .project-block--image.has-custom-width .project-figure {
    width: var(--b-image-width);
    max-width: 100%;
}
/* Existing Text layout with an optional, editor-defined text width. */
.layout-b .project-block--text {
    justify-content: flex-start;
}
.layout-b .project-block--text.position-center {
    justify-content: center;
}
.layout-b .project-block--text.position-right {
	width:calc(50% - 75px);
    justify-content: flex-end;
	margin:10vh 55px 20vh 55px;
	float:right;
	clear:both;
}
.layout-b .project-block--text.position-right p {
	width:70%;
}
.layout-b .project-block--text.position-left {
	width:calc(50% - 75px);
    justify-content: flex-end;
	margin:10vh 55px 20vh 55px;
	float:left;
	clear:both;
}
.layout-b .project-block--text.position-left p {
	width:70%;
}
.layout-b .project-block--text .project-b-text-content {
	display:flex;
    align-items: start;
    gap: 30px;
    min-width: 0;
}
.layout-b .project-block--text.has-custom-width .project-b-text-content {
    width: var(--b-text-width);
}
.layout-b .project-block--text .project-b-text-content:not(:has(> h2)) > .project-block-copy {
    grid-column: 1 / -1;
}
.layout-b .project-b-text-content h2 {
    margin: 0 0 17px;
}
.layout-b .project-b-text-content .project-block-copy {
    font: 400 16px/1.55 Glory, Arial, sans-serif;
	width: calc(100% - 200px);
}
.layout-b .project-b-text-content .project-block-copy p {
    margin: 0 0 14px;
}
.layout-b .project-b-text-content .mashq-lang-text[data-lang="fa"] {
    direction: rtl;
    text-align: right;
}
/* Existing Image + Text layout, now with flexible image-column width. */
.layout-b .project-block--image-text {
    grid-template-columns: minmax(0, var(--b-media-width, 50%)) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}
.layout-b .project-block--image-text.media-right {
    grid-template-columns: minmax(50%, 1fr) minmax(0, var(--b-media-width, 50%));
	gap:20px;
}
.layout-b .project-block--image-text.media-right figure a{
	width:calc(100% - 20px);
	margin-left:20px;
}

.layout-b .project-block--image-text.media-right figure img,
.layout-b .project-block--image-text.media-right figure a {
	aspect-ratio:1;
	overflow:hidden;
	object-fit:cover;
}
.layout-b .project-block--image-text .project-b-text-content {
    min-width: 0;
}
.layout-b .project-block--image-text.media-right .project-b-text-content {
	width:calc(50% + 10px);
}
.project-block--image-text.media-right .project-b-text-content {
	display:flex;
	align-self:center;
}
.project-block--image-text.media-right h2 {
	width:150px;
	margin-right:50px;
}
.project-block--image-text.media-right .project-block-copy {
	width:calc(100% - 200px);
	max-width:400px;
}
/* Equal-sized or asymmetric image pairs. */
.layout-b .project-block--b-pair {
    display: block;
	clear:both;
}
.layout-b .project-b-pair-grid,
.layout-b .project-b-duo-images {
    display: grid;
    grid-template-columns: minmax(0, var(--b-split, 50%)) minmax(0, 1fr);
    gap: 20px;
    min-width: 0;
    align-items: stretch;
}
.layout-b .project-b-pair-grid {
	overflow:hidden;
}
.layout-b .project-b-pair-grid figure img,
.layout-b .project-b-pair-grid figure a,
.layout-b .project-b-pair-grid figure {
	aspect-ratio: 667 / 432;
	object-fit:cover;
	overflow:hidden;
}
.layout-b .project-b-pair-grid.is-single,
.layout-b .project-b-duo-images.is-single {
    grid-template-columns: minmax(0, 1fr);
}
/* Three images with optional left, center, or right emphasis. */
.layout-b .project-b-triple-grid {
	display:flex;
    justify-content: space-between;
	margin-top:45vh;
}
.project-b-triple-grid figure:nth-child(1),
.project-b-triple-grid figure:nth-child(2) {
	width:calc(25% - 10px);	
	margin-right:10px;
}
.project-b-triple-grid figure:nth-child(3) {
	width:50%;
	transform:translatey(-18vh);
}
/* Consistent height for each photo in pairs and triples. */
.layout-b .project-b-pair-grid .project-figure,
.layout-b .project-b-triple-grid .project-figure,
.layout-b .project-b-duo-images .project-figure {
    overflow: hidden;
    min-width: 0;
}
.layout-b .project-b-pair-grid > .project-figure:first-child {
	align-self: end;
    height: auto;
}
.layout-b .project-b-pair-grid .project-figure a,
.layout-b .project-b-triple-grid .project-figure a,
.layout-b .project-b-duo-images .project-figure a {
    display: block;
    height: 100%;
}
.layout-b .project-b-pair-grid .project-figure img,
.layout-b .project-b-triple-grid .project-figure img,
.layout-b .project-b-duo-images .project-figure img {
    width: 100%;
}
.layout-b .project-b-triple-grid .project-figure:nth-child(1) img,
.layout-b .project-b-triple-grid .project-figure:nth-child(1) {
	aspect-ratio:1;
	object-fit:cover;
	overflow:hidden;
}
.layout-b .project-b-triple-grid .project-figure:nth-child(2) img,
.layout-b .project-b-triple-grid .project-figure:nth-child(2) {
	aspect-ratio:332/585;
	object-fit:cover;
	overflow:hidden;
	
}
.layout-b .project-b-triple-grid .project-figure:nth-child(3) img,
.layout-b .project-b-triple-grid .project-figure:nth-child(3) {
	aspect-ratio:45/34;
	object-fit:cover;
	overflow:hidden;
	
}
/* Two Images + Text can place copy beside or beneath the image pair. */
.layout-b .project-block--b-duo-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--b-text-column, 36%));
    align-items: center;
    column-gap: 42px;
    row-gap: 24px;
}
.layout-b .project-block--b-duo-text .project-b-duo-images:first-child  figure img,
.layout-b .project-block--b-duo-text .project-b-duo-images:first-child figure {
	aspect-ratio: 680/732;
	object-fit:cover;
	overflow:hidden;
}
.layout-b .project-block--b-duo-text .project-b-duo-images .project-b-duo-second  figure img,
.layout-b .project-block--b-duo-text .project-b-duo-images .project-b-duo-second figure {
	aspect-ratio: 447/307;
	object-fit:cover;
	overflow:hidden;
}
.layout-b .project-block--b-duo-text.text-left {
    grid-template-columns: minmax(0, var(--b-text-column, 36%)) minmax(0, 1fr);
}
.layout-b .project-block--b-duo-text.text-left > .project-b-text-content {
    order: -1;
}
.layout-b .project-block--b-duo-text.text-below {
    display: block;
}
.layout-b .project-block--b-duo-text.text-below > .project-b-text-content {
    margin-top: 28px;
    max-width: 560px;
}
.layout-b .project-block--b-duo-text > .project-b-text-content {
    min-width: 0;
}
/* Keep Persian bilingual content in Nian as configured globally. */
.layout-b .project-b-text-content .mashq-lang-text[data-lang="fa"],
.layout-b .project-b-text-content .mashq-lang-text[data-lang="fa"] * {
    font-family: "Nian", Tahoma, sans-serif !important;
    direction: rtl;
    text-align: right;
}
.layout-b .project-block--b-duo-text {
    display: block;
    width: min(1360px, calc(100% - 80px));
    margin-left: auto;
    margin-right: auto;
}
/* Main two-column layout */
.layout-b .project-block--b-duo-text .project-b-duo-images {
    display: grid;
    grid-template-columns:
        minmax(0, var(--b-split, 50%))
        minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    width: 100%;
	position:relative;
}
/* Left image */
.layout-b .project-block--b-duo-text
.project-b-duo-images > .project-figure {
    width: 100%;
    min-width: 0;
    height: auto;
    align-self: start;
    margin: 0;
}
/* Right column: image + text */
.layout-b .project-block--b-duo-text .project-b-duo-second {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}
.layout-b .project-block--b-duo-text .project-b-duo-second h2 {
	width:fit-content !important;
	position:absolute;
	margin:0 !important;
	right:0;
	bottom:0;
} 
.layout-b .project-block--b-duo-text .project-b-duo-second .mashq-lang-text {
	width:50%;
}
/* Both images */
.layout-b .project-block--b-duo-text .project-figure {
    width: 100%;
    height: auto;
    margin: 0;
}
.layout-b .project-block--b-duo-text .project-figure a {
    display: block;
    width: 100%;
    height: auto;
}
.layout-b .project-block--b-duo-text .project-figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
/* Text below the second image */
.layout-b .project-block--b-duo-text
.project-b-duo-second > .project-b-text-content {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 25px 0 0;
    padding: 0;
}
/* Heading */
.layout-b .project-block--b-duo-text
.project-b-text-content > h2 {
    width: 100%;
    margin: 0 0 15px;
    font: 500 19px/1.3 Poppins, Arial, sans-serif;
}
/* Description */
.layout-b .project-block--b-duo-text
.project-b-text-content > .project-block-copy {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font: 400 16px/1.5 Glory, Arial, sans-serif;
}
.layout-b .project-block--b-duo-text
.project-block-copy p {
    margin: 0 0 15px;
}
/* One image fallback */
.layout-b .project-block--b-duo-text
.project-b-duo-images.is-single {
    grid-template-columns: minmax(0, 1fr);
}
/***************************************************
                single project - type b
***************************************************/
.project-b-head {
    display: grid;
    grid-template-columns: 37% minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 70px;
    align-items: stretch;
}
.project-b-intro {
    align-self: stretch;
	display:flex;
	flex-direction:column;
	justify-content:space-between;
}
.project-b-intro p {
	margin-bottom:0;
}
.project-b-intro h1 {
    font-size: clamp(30px,4.2vw,56px);
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 28px;
}
.project-b-intro .project-facts-grid {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.project-b-summary {
    font-family: Glory, sans-serif;
    font-size: 16px;
    line-height: 1.45;
	padding-right:20px;
}
.project-b-hero img {
    width: 100%;
    max-height: 830px;
    object-fit: cover;
}
.layout-b .project-block--full-image {
    margin-bottom: 100px;
}
.layout-b .project-pager--b {
    width: min(1360px, calc(100% - 40px));
    max-width: none;
    margin: 40px auto 40px;
    padding: 0;
}
.project-b-hero img,
.project-b-hero {
	aspect-ratio:1.1/1;
	object-fit:cover;
	overflow:hidden;
}
/***************************************************
                single project - type c
***************************************************/
.project-c-facts {
    padding-top: 30px;
}
.project-c-facts .project-facts-grid {
    max-width: 520px;
	min-height:120px;
}
.project-c-heading h1 {
    margin: 38px 0 28px;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.1;
    font-weight: normal;
	font-family:'Helvena';
}
.project-c-hero {
    width: 100%;
    margin: 0 0 80px !important;
	aspect-ratio: 100 / 47;
	object-fit:cover;
	overflow:hidden;
}
.project-c-hero img {
    width: 100%;
	aspect-ratio: 100 / 47;
    object-fit: cover;
}
.project-c-intro {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 90px;
}
.project-c-intro .project-block-copy {
    width: 45%;
}
.layout-c .project-block {
    margin-bottom: 10vh;
}
.layout-c .project-block--text.position-left {
    justify-content: flex-start;
}
.layout-c .project-block--text.position-right {
    justify-content: flex-end;
}
.layout-c .project-block--pair {
    gap: 8px;
}
.layout-c .project-block--pair .project-figure:nth-child(2) {
    margin-top: 15%;
}
.layout-c .project-block--colors {
    max-width: 810px;
    margin-left: auto;
    margin-right: 4%;
    grid-template-columns: 25% 75%;
}
.layout-c .project-block--gallery {
    margin-top: 130px;
}
.layout-c .project-pager--c {
    width: min(1360px, calc(100% - 40px));
    margin: 40px auto 40px;
    padding: 0;
}
/* Scoped to Type C only; never alter Type A or Type B layouts. */
.layout-c .project-block--c-collage,
.layout-c .project-block--c-duo-text {
    min-width: 0;
}
/* THREE IMAGE COLLAGE: one large visual; two smaller visuals side-by-side. */
.layout-c .project-c-collage-grid {
    display: grid;
    grid-template-columns: minmax(0, var(--c-large-width, 40%)) minmax(0, 1fr);
    column-gap: clamp(26px, 9vw, 150px);
    align-items: start;
    width: 100%;
    min-width: 0;
}
.layout-c .project-block--c-collage.is-large-left .project-c-collage-grid,
.layout-c .project-block--c-collage.is-large-right .project-c-collage-grid {
	display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 40%);
    justify-content: space-between;
    column-gap: 0;
    align-items: start;
}
.layout-c .project-block--c-collage.is-large-right .project-c-collage-grid .project-c-collage-smalls {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}
.layout-c .project-block--c-collage.is-large-right .project-c-collage-large { order: 2; }
.layout-c .project-block--c-collage.is-large-right .project-c-collage-smalls { order: 1; }
.layout-c .project-c-collage-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.layout-c .project-c-collage-smalls {
    display: flex;
	justify-content:end;
    align-items: start;
    gap: 10px;
    min-width: 0;
}
.layout-c .project-block--c-collage.is-large-right .project-c-collage-smalls {
	justify-content:start;
}
.project-c-collage-large img,
.project-c-collage-large {
	width: 100%;
	aspect-ratio: 0.87;
	object-fit: cover;
	overflow:hidden;
}
.layout-c .project-block--c-collage.is-large-left .project-c-collage-smalls figure:nth-child(2),
.layout-c .project-block--c-collage.is-large-right .project-c-collage-smalls figure:nth-child(1) {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	overflow:hidden;
}

.layout-c .project-block--c-collage.is-large-left .project-c-collage-smalls figure:nth-child(1),
.layout-c .project-block--c-collage.is-large-right .project-c-collage-smalls figure:nth-child(2) {
	width: 90%;
	aspect-ratio:1;
	object-fit: cover;
	overflow:hidden;
}
.layout-c .project-block--c-collage.is-large-left .project-c-collage-smalls figure:nth-child(1) img,
.layout-c .project-block--c-collage.is-large-right .project-c-collage-smalls figure:nth-child(2) img{
	aspect-ratio:1;
	object-fit: cover;
	overflow:hidden;
}
.layout-c .project-block--c-collage.is-large-left .project-c-collage-smalls figure:nth-child(1) {
    justify-self: end;
}
.layout-c .project-block--c-collage.is-large-left .project-c-collage-smalls figure:nth-child(2) img,
.layout-c .project-block--c-collage.is-large-right .project-c-collage-smalls figure:nth-child(1) img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.layout-c .project-block--c-collage.is-large-right .project-c-collage-smalls figure:nth-child(1),
.layout-c .project-block--c-collage.is-large-left .project-c-collage-smalls figure:nth-child(2) {
	width: 100%;
	aspect-ratio: 8 / 11;
	object-fit: cover;
	overflow:hidden;
}
.layout-c .project-block--c-collage.is-large-right .project-c-collage-smalls figure:nth-child(1) img,
.layout-c .project-block--c-collage.is-large-left .project-c-collage-smalls figure:nth-child(2) img{
	width: 100%;
	aspect-ratio: 8 / 11;
	object-fit: cover;
}
.layout-c .project-c-collage-smalls.is-single { grid-template-columns: minmax(0, 1fr); }
.layout-c .project-c-collage-grid .project-figure,
.layout-c .project-c-collage-grid .project-figure a {
    display: block;
    min-width: 0;
    height: auto;
    margin: 0;
}
.layout-c .project-c-collage-grid .project-figure img {
    display: block;
    width: 100%;
}
/* TWO IMAGES + TEXT: the copy belongs UNDER the SECOND image, not beside both images. */
.layout-c .project-c-duo-grid {
	display:flex;
	justify-content:space-between;
    align-items: start;
    min-width: 0;
    width: 100%;
}
.layout-c .project-c-duo-grid.is-single { 
	grid-template-columns: minmax(0, 1fr); 
}
.layout-c .project-c-duo-first {
	width:40%;
}
.layout-c .project-c-duo-second {
	width:40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.layout-c .project-c-duo-grid .project-figure,
.layout-c .project-c-duo-grid .project-figure a {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
}
.layout-c .project-c-duo-grid .project-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.layout-c .project-c-duo-first figure img,
.layout-c .project-c-duo-first figure {
	aspect-ratio:10/9;
	object-fit:cover;
	overflow:hidden;
}
.layout-c .project-c-duo-second figure {
    width: 50% !important;
	aspect-ratio:4/3;
	object-fit:cover;
}
.layout-c .project-c-duo-second figure img {
	object-fit:cover;
	aspect-ratio:4/3;
}
.layout-c .project-c-duo-copy {
    width: 50%;
    margin: 22px 0 0 0;
    min-width: 0;
    text-align: left;
}
.layout-c .project-c-duo-copy > h2 {
    width: 100%;
    margin: 0 0 14px;
    font: 500 19px/1.35 Poppins, Arial, sans-serif;
}
.layout-c .project-c-duo-copy > .project-block-copy {
    width: 100%;
    min-width: 0;
    margin: 0;
    font: 400 16px/1.55 Glory, Arial, sans-serif;
}
.layout-c .project-c-duo-copy .project-block-copy p { margin: 0 0 14px; }
.layout-c .project-c-duo-copy .mashq-lang-text[data-lang="fa"] {
    direction: rtl;
    text-align: right;
}
.layout-c .project-block--image-text.media-left {
	display:flex;
	flex-direction:column;
}
.layout-c .project-block--image-text.media-left .project-figure {
	align-self:start;
	width:40%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	overflow:hidden;
}
.layout-c .project-block--image-text.media-left .project-figure img{
	aspect-ratio: 3 / 2;
	object-fit: cover;
	overflow:hidden;
}
.layout-c .project-block--image-text.media-left .project-block-copy {
	align-self:end;
    width: calc( 40% - 20px) ;
    margin-right: calc( 20% + 20px) ;
	position:relative;
}
.layout-c .project-block--image-text.media-left .project-block-copy h2 {
	width:120px;
	transform:translateX(-130px);
	text-align:right;
	position:absolute;
	font-weight:bold;
}

.layout-c .project-block--image-text.media-left .project-block-copy .mashq-bilingual {
	margin-left:10px;
}
.layout-c .project-block--image-text.media-right {
	display:flex;
    justify-content: space-between;
}
.layout-c .project-block--image-text.media-right .project-figure {
	align-self:center;
	width:calc( 20% + 5px );
	aspect-ratio:1/1;
	object-fit:cover;
	overflow:hidden;
}
.layout-c .project-block--image-text.media-right .project-figure img {
	aspect-ratio:1/1;
	object-fit:cover;
	overflow:hidden;
}
.layout-c .project-block--image-text.media-right .project-block-copy {
    width: 20%;
    margin-left: 20%;
	position:relative;
	max-width:unset;
}
.layout-c .project-block--image-text.media-right .project-block-copy h2 {
	width:130px;
	transform:translatex(-140px);
	text-align:right;
	position:absolute;
	font-weight:bold;
}
.layout-c .project-block--image-text.media-right .project-block-copy .mashq-bilingual {
	margin-left:10px;
}
/***************************************************
                about
***************************************************/
.about-page {
    max-width: 1014px;
    margin: 0 auto;
    padding: 86px 0 0;
}
.about-people img {
    width: 100%;
    height: 276px;
    object-fit: cover;
    background: #ddd;
}
.about-people h2 {
    font-size: 13px;
    font-weight: 400;
    margin: 8px 0 5px;
}
.about-people p {
    font-size: 10px;
    margin: 0;
}
.about-statement {
    max-width: 672px;
    margin: 90px 0 45px;
}
.about-statement h1 {
    font-size: 24px;
    font-weight: 400;
}
.about-wide {
    width: 100%;
    height: 451px;
    object-fit: cover;
    background: #e7e7e7;
    margin: 25px 0;
}
.about-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 13px;
    margin: 25px 0 90px;
}
.about-gallery img {
    width: 100%;
    height: 255px;
    object-fit: cover;
}
.about-statement p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 18px;
}
.about-content {
    margin-top: 90px;
    padding-bottom: 90px;
}
.about-content > * {
    max-width: 672px;
}
.about-content > .alignwide,
.about-content > .wp-block-image,
.about-content > .wp-block-gallery,
.about-content > .wp-block-columns {
    max-width: 100%;
}
.about-content .wp-block-image img, .about-content .wp-block-gallery img {
    max-width: 100%;
    height: auto;
}
.about-content p {
    font-family: Glory, sans-serif;
}
.about-people {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 220px));
    gap: 35px 44px;
    align-items: start;
}
.about-person {
    min-width: 0;
}
.about-person img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 220 / 276;
    object-fit: cover;
}
.mashq-about .about-page {
    width: min(1014px, calc(100% - 80px));
    max-width: 1014px;
    margin: 0 auto;
    padding: 86px 0 95px;
}
.mashq-about .about-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    column-gap: 63px;
    row-gap: 40px;
    align-items: start;
    justify-content: start;
}
.mashq-about .about-person img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 220 / 276;
    object-fit: cover;
}
.mashq-about .about-person h2 {
    font-size: 14px;
    font-weight: 400;
    margin: 8px 0 5px;
}
.mashq-about .about-person p {
    font-size: 10px;
    margin: 0;
	opacity:.3;
}
.mashq-about .about-story {
    margin-top: 90px;
}
.mashq-about .about-story-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 28px;    
	max-width: 672px;
}
.mashq-about .about-story-header h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 400;
}
.mashq-about .about-language-switch {
    display: flex;
    gap: 13px;
    align-items: center;
    flex: none;
}
.mashq-about .about-language-switch button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    font: 300 11px/1.5 Poppins, Arial, sans-serif;
    color: #1a1a1a;
    opacity: .4;
    cursor: pointer;
}
.mashq-about .about-language-switch button.active,
.mashq-about .about-language-switch button[aria-pressed="true"] {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mashq-about .about-language-switch button:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 4px;
}
.mashq-about .about-language-content .about-content {
    margin: 0;
    padding: 0;
    max-width: 100%;
    min-width: 0;
}
.mashq-about .about-language-content [hidden] {
    display: none !important;
}
.mashq-about #about-en {
    direction: ltr;
    text-align: left;
}
.mashq-about #about-fa {
    direction: rtl;
    text-align: right;
}
.mashq-about .about-content p {
    margin: 0 0 20px;
}
.mashq-about #about-fa p {
    line-height: 1.5;
}
.mashq-about .about-content .wp-block-gallery {
    display: grid !important;
    grid-template-columns: 2fr 1fr;
    gap: 13px;
    width: 100%;
    max-width: 1014px;
    margin: 0 auto;
    align-items: stretch;
}
.mashq-about .about-content .wp-block-gallery > .wp-block-image {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    display: block;
}
.mashq-about .about-content .wp-block-gallery > .wp-block-image img {
    width: 100% !important;
    height: 255px !important;
    object-fit: cover;
    display: block;
}
/***************************************************
        ABOUT - LANGUAGE SWITCH
***************************************************/
/* Default English */
.mashq-about .about-title-en,
.mashq-about .about-person .about-translation--en {
    display: inline;
}
.mashq-about .about-title-fa,
.mashq-about .about-person .about-translation--fa {
    display: none;
}
/* Persian selected */
.mashq-about[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
.mashq-about[dir="rtl"] .about-page {
    direction: ltr;
    text-align: right;
}
/* Reverse team order in RTL */
.mashq-about[dir="rtl"] .about-people {
    direction: ltr;
    text-align: right;
    justify-content: start;
}
/* Switch team names and job titles */
.mashq-about[dir="rtl"]
.about-person .about-translation--en {
    display: none;
}
.mashq-about[dir="rtl"]
.about-person .about-translation--fa {
    display: inline;
	font-size:15px;
    text-align: left;
    float: left;
    clear: left;
}
.mashq-about[dir="rtl"] .about-person .about-person-job .about-translation--fa {
	font-size:13px;
}
/* Switch main heading */
.mashq-about[dir="rtl"] .about-title-en {
    display: none;
}
.mashq-about[dir="rtl"] .about-title-fa {
    display: inline;
    font-family: "Nian", Tahoma, sans-serif;
    font-weight: 400;
}
/* RTL title and language controls */
.mashq-about[dir="rtl"] .about-story-header {
    direction: ltr;
    text-align: right;
}
/* Persian team typography */
.mashq-about .about-person [lang="fa"] {
    font-family: "Nian", Tahoma, sans-serif;
    font-weight: 400;
    direction: ltr;
}
/* Keep the Persian page content RTL */
.mashq-about[dir="rtl"] #about-fa {
    direction: ltr;
    text-align: right;
}
/* Restore English layout */
.mashq-about[dir="ltr"] .about-page,
.mashq-about[dir="ltr"] .about-people,
.mashq-about[dir="ltr"] .about-story-header {
    direction: ltr;
    text-align: left;
}
.mashq-about #about-fa p {
	direction:rtl;
}
#about-en p,
#about-fa p {
	min-height:480px;
}
#about-en p:nth-child(3),
#about-fa p:nth-child(3) {
    display: flex;
    align-items: center;
}
/***************************************************
                contact & hire
***************************************************/
/* Both pages share this layout. Their image sources stay independent. */
.contact-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    width: 100%;
    min-height: calc(100svh - 77px);
    margin: 0;
    padding: 0;
    background: #e9e9e9;
}
/* Image is always on the right on desktop, regardless of DOM order. */
.contact-art {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    min-width: 0;
    min-height: calc(100svh - 77px);
    height: 100%;
    overflow: hidden;
    background: #dedede;
}
.contact-art img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* The form occupies the centre of the left half. */
.contact-form-wrap {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 38px max(30px, calc((100% - 470px) / 2)) 65px;
    background: #ebebeb;
    color: #222;
}
.contact-kicker {
    margin: 0 0 5px 0;
    font: 400 12px/1.5 Poppins, Arial, sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.contact-form-wrap h1 {
    margin: 0 0 12px;
    font: bold 20px/1.35 Poppins, Arial, sans-serif;
    letter-spacing: -.02em;
}
.contact-form-wrap > p {
    margin: 0 0 25px;
    font-size: 12px;
    line-height: 1.65;
}
.contact-form-wrap .entry-content {
    width: 100%;
    font: 400 13px/1.5 Poppins, Arial, sans-serif;
}
.contact-editor-content > * {
    max-width: 100%;
}
.contact-editor-content .wp-block-shortcode {
    margin: 0;
}
/* Legacy native form fallback. */
.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 24px;
    margin-top: 25px;
}
.contact-form > label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.5;
}
.contact-form > label:nth-of-type(n+3),
.contact-form > label.full,
.contact-form > .full,
.contact-form > .form-note {
    grid-column: 1 / -1;
}
.contact-form input:not([type="file"]),
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 9px 12px;
    border: 0;
    border-radius: 0;
    background: #f4f4f4;
    color: #000;
    font: inherit;
    outline-offset: 2px;
}
.contact-form textarea {
    min-height: 138px;
    resize: vertical;
}
.contact-form input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 13px;
    border: 1px solid #d3d3d3;
    background: #dedede;
    font-size: 11px;
}
.contact-form button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: 150px;
    padding: 13px 22px;
    border: 0;
    border-radius: 0;
    background-color: #2f2f2f !important;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}
.form-note {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 11px;
}
/* WPForms: first two fields side-by-side, remaining fields full width. */
.contact-editor-content .wpforms-container {
    width: 100%;
    max-width: 100%;
    margin: 24px 0 0;
}
.contact-page .wpforms-container .wpforms-field-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 10px;
    width: 100%;
}
.contact-page .wpforms-container .wpforms-field-container > .wpforms-field {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
.contact-page .wpforms-container .wpforms-field-container > .wpforms-field:nth-child(-n+2) {
    grid-column: auto;
}
.contact-page .wpforms-container .wpforms-form .wpforms-field-label,
.contact-page .wpforms-container .wpforms-form label {
    color: #222;
    font: 400 12px/1.5 Poppins, Arial, sans-serif;
}
.contact-page .wpforms-container .wpforms-form .wpforms-field-label {
    display: block;
    margin: 0 0 10px;
}
.contact-page .wpforms-container .wpforms-form .wpforms-required-label {
    color: #bd4949;
}
.contact-page .wpforms-container .wpforms-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]),
.contact-page .wpforms-container .wpforms-form select,
.contact-page .wpforms-container .wpforms-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 40px;
    height: auto;
    padding: 9px 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    color: #222;
    font: 400 13px/1.5 Poppins, Arial, sans-serif;
}
.contact-page .wpforms-container .wpforms-form textarea {
    min-height: 138px;
    resize: vertical;
}
.contact-page .wpforms-container .wpforms-form input:focus-visible,
.contact-page .wpforms-container .wpforms-form select:focus-visible,
.contact-page .wpforms-container .wpforms-form textarea:focus-visible {
    outline: 1px solid #555;
    outline-offset: 1px;
}
.contact-page .wpforms-container .wpforms-form .wpforms-field-row,
.contact-page .wpforms-container .wpforms-form .wpforms-field-row-block {
    max-width: 100%;
}
.contact-page .wpforms-container .wpforms-form .wpforms-field-file-upload input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    background: #dedede;
    border: 1px solid #d0d0d0;
}
.contact-page .wpforms-container .wpforms-submit-container {
    margin: 26px 0 0;
    padding: 0;
    text-align: center;
}
.contact-page .wpforms-container .wpforms-submit-container button[type="submit"],
.contact-page .wpforms-container .wpforms-submit-container input[type="submit"] {
    min-width: 150px;
    min-height: 42px;
    padding: 12px 22px;
    border: 0;
    border-radius: 0;
    background-color: #2f2f2f !important;
    color: #fff;
    font: 400 12px/1.4 Poppins, Arial, sans-serif;
    cursor: pointer;
	float:left;
	margin-top:10px;
}
/* Keep the original fallback when a page has no image at all. */
.contact-page:has(.contact-form-wrap:only-child) {
    grid-template-columns: 1fr;
}
.contact-page:has(.contact-form-wrap:only-child) .contact-form-wrap {
    grid-column: 1;
    padding-left: max(24px, calc((100% - 470px) / 2));
    padding-right: max(24px, calc((100% - 470px) / 2));
}
/***************************************************
                footer
***************************************************/
.site-footer {
    background: white;
}
.site-footer>.container {
    padding-top: 37px;
    padding-bottom: 37px;
}
.footer-logo {
	display:block;
    width: 53px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 22px;
}
.footer-navigation {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 13px;
    margin-bottom: 22px;
}
.footer-bottom {
    display: flex;
	flex-direction:column;
    justify-content: space-between;
    align-items: start;
}
.footer-contacts {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 300;
    line-height: 26px;
}
.footer-contacts a {
    display: flex;
    align-items: center;
    gap: 5px;
}
.footer-contacts img {
    width: 12px;
    height: 12px;
}
.footer-bottom small {
    color: #52525b;
    font-size: 10px;
    line-height: 26px;
}
/***************************************************
                legacy project layout
***************************************************/
.detail-top {
    padding-top: 12px;
}
.breadcrumbs {
    font-size: 9px;
    margin-bottom: 28px;
}
.detail-head {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 20px;
    align-items: end;
}
.detail-title h1 {
    font-size: 54px;
    font-weight: 400;
    letter-spacing: -2px;
    margin: 30px 0;
}
.detail-title>p {
    max-width: 477px;
    font: 16px/1.5 Glory,Arial,sans-serif;
    margin: 20px 0;
}
.detail-facts {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}
.detail-facts div {
    font-size: 10px;
}
.detail-facts small {
    font-size: 9px;
    color: #888;
}
.detail-facts p {
    margin: 4px 0;
    line-height: 1.5;
}
.detail-hero {
    width: 100%;
    height: 750px;
    object-fit: cover;
    background: #e6e6e6;
}
.detail-visual {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.symbol-art {
    width: min(550px,80%);
    max-height: 400px;
    object-fit: contain;
}
.detail-text-block {
    padding-top: 100px;
    padding-bottom: 100px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    max-width: 1100px;
}
.detail-text-block h2 {
    font-size: 19px;
    font-weight: 400;
    margin: 0;
}
.detail-text-block p {
    font: 16px/1.6 Glory,Arial,sans-serif;
    margin: 0;
}
.color-showcase {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 6px;
}
.swatch {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    font-size: 14px;
}
.swatch strong {
    font-size: 22px;
    font-weight: 400;
}
.swatch span {
    font-size: 12px;
}
.primary {
    background: #0e0017;
    color: #fff;
}
.white {
    background: white;
}
.black {
    background: #000;
    color: #fff;
}
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}
.detail-image {
    margin: 0;
    min-height: 300px;
    background: #e9e9e9;
}
.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-image:nth-child(3n) {
    grid-column: 1/-1;
    height: 600px;
}
.highlights {
    padding-top: 70px;
    padding-bottom: 70px;
}
.highlights h2 {
    font-size: 12px;
    font-weight: 400;
    margin: 0 0 30px;
}
.highlights>div {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
}
.highlights img {
    width: 100%;
    aspect-ratio: 1.4;
    object-fit: cover;
    background: #eee;
}
.previous-next {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    padding-bottom: 50px;
    font-size: 13px;
}
.detail-text-block div {
    font-size: 14px;
    line-height: 1.65;
}
/***************************************************
                responsive
***************************************************/
/* All viewport adjustments are collected here. */
@media screen and (max-width: 1140px) {
    .directory-grid {
        grid-template-columns: repeat(3,1fr);
    }
}
@media screen and (max-width: 980px) {
    .category-project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .container,.header-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
    .about-page {
        padding: 60px 20px 0;
    }
    .contact-form-wrap {
        padding-left: 28px;
        padding-right: 28px;
    }
    .detail-head {
        grid-template-columns: 1fr 1fr;
    }
    .detail-hero {
        height: 600px;
    }
    .detail-title h1 {
        font-size: 40px;
    }
    .about-people {
        grid-template-columns: repeat(3, minmax(0, 220px));
    }
    .project-meta {
        position: relative;
        visibility: visible;
        background: transparent;
        height: auto;
        padding: 10px 0;
        color: #000;
        font-size: 13px;
		display:none;
    }
	.project-meta-mob {
		display:block;
	}
    .project-meta .project-hover-title {
        font-size: 16px;
        margin-bottom: 10px;
        margin-top: 5px;
    }
    .project-hover-right {
        display: none;
    }
    .layout-a .project-a-inner.container {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 30px;
        padding: 24px 20px 0;
    }
    .layout-a .project-a-info {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .layout-a .project-a-content {
        margin-top: 25px;
    }
	.layout-a .project-a-info {
		height:auto;
	}
	.mob-project-pager--a {
		display:flex;
		margin-bottom:20px;
	}
	.project-a-info .project-pager--a {
		display:none !important;
	}
    .project-b-head {
        grid-template-columns: 1fr;
        gap: 20px;
    }
	.project-b-intro .project-facts-grid {
		flex-direction:row;
		margin-bottom:20px;
        justify-content: space-between;
        max-width: 460px;
	}
    .project-b-intro {
        order: 0;
    }
    .project-b-hero {
        order: 1;
    }
    .project-c-intro .project-block-copy {
        width: 75%;
    }
    .project-block--text .project-block-copy {
        width: 60%;
    }
    .project-block--image.width-small .project-figure {
        width: 40%;
    }
    .about-content {
        margin-top: 55px;
        padding-bottom: 55px;
    }
    .about-content p {
        font-size: 16px;
    }
    .category-hero {
        max-height: 320px;
    }
    .contact-editor-content .wpforms-container {
        margin-top: 20px;
    }
    .about-people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
    }
    .project-pager-card {
        max-width: 46%;
    }
    .mashq-about .about-page {
        width: calc(100% - 40px);
        padding-top: 60px;
    }
    .mashq-about .about-story {
        margin-top: 65px;
    }
    .category-project-grid:not(.is-initialized) > .category-project-card:nth-of-type(n/**/+11) {
        display: none;
    }
    /* Type B — tablet */
	.layout-b .project-block--b-duo-text {
    	width: calc(100% - 40px);    
	}
	.layout-b .project-block--text.position-right {
    	width: calc(50% - 40px);    
		margin: 10vh 20px 20vh 0;
	}
	.layout-b .project-block--text.position-left {
    	width: calc(50% - 40px);    
		margin: 10vh 0 20vh 20px;
	}
    .layout-b .project-b-content .project-block { margin-bottom: 20px; }
    .layout-b .project-block--b-duo-text { column-gap: 20px; }
    .layout-b .project-block--image-text { gap: 20px; }
	.layout-b .project-b-text-content .project-block-copy,
	.layout-b .project-block--text.position-right p,
	.layout-b .project-block--text.position-left p { width:100%;}
    /* Type C collage layouts stay in two columns on tablets. */
    .layout-c .project-c-collage-grid { column-gap: 20px; }
    .layout-c .project-c-duo-grid { column-gap: 20px; }
	
}
@media screen and (max-width: 780px) {
    .category-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .category-project-image {
        aspect-ratio: 1.1;
    }
    .category-project-meta {
        font-size: 10px;
    }
    .category-project-overlay {
        display: none;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 20px 0 50px;
    }
    .service-card {
        display: flex;
        flex-direction: column;
        gap: 0;
        aspect-ratio: auto;
        min-height: 0;
        padding: 0;
        overflow: visible;
        background: transparent;
        color: #1a1a1a;
    }
    .service-card-image {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        opacity: 1;
        transform: none;
    }
    .service-card-content {
        height: auto;
        padding-top: 16px;
    }
    .service-card h2 {
        font-size: 22px;
        line-height: 1.2;
    }
    .service-card-description {
        max-width: 100%;
        margin-top: 12px;
        font-size: 15px;
        opacity: 1;
        visibility: visible;
    }
    .service-card-link {
        display: none;
    }
    .site-header {
        height: 55px;
		background:#fff;
		border-bottom:1px solid #f6f6f6; 
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: 0;
        padding: 0;
        margin-left: auto;
        align-items: end;
        cursor: pointer;
    }
    .menu-toggle span {
        height: 2px;
        width: 25px;
        background: #000;
		transition:all .3s ease;
    }
	.menu-toggle span:last-child {
        width: 17px;
	}
	.menu-toggle[aria-expanded="true"] span:nth-child(1) {
		transform:rotate(45deg) translate(6px, 9px);
	}
	.menu-toggle[aria-expanded="true"] span:nth-child(2) {
		transform:rotate(-45deg) translate(-3px, 0px);
	}
	.menu-toggle[aria-expanded="true"] span:last-child {
        width: 0;
	}
    .nav-links {
        display: none;
        position: absolute;
        top: 55px;
        left: 0;
        right: 0;
        z-index: 40;
        background: #ffff;
        padding: 28px 20px;
        align-items: flex-start;
        flex-direction: column;
    }
    .nav-links.open {
        display: flex;
    }
	.nav-links.open>div {
		flex-direction:column;
		gap:10px;
		margin-bottom:10px;
	}
	.nav-links {
		font-size:16px;
	}
	.nav-links i {
		display:none;
	}
    .intro {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 25px;
        padding-bottom: 20px;
    }
    .landing-projects {
        padding-top: 35px;
        padding-bottom: 35px;
    }
    .landing-grid {
        gap: 20px 10px;
    }
    .landing-image {
        height: auto;
        aspect-ratio: 1.4;
    }
    .landing-card {
        font-size: 11px;
    }
    .directory-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 8px;
    }
    .about-page {
        padding: 35px 12px 0;
    }
    .about-people {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .about-people img {
        height: auto;
        aspect-ratio: 0.8;
    }
    .about-people h2 {
        font-size: 12px;
    }
    .about-statement {
        margin: 60px 0 25px;
    }
    .about-statement p {
        font-size: 16px;
    }
    .about-wide {
        height: auto;
        aspect-ratio: 2.1;
    }
    .about-gallery img {
        height: auto;
        aspect-ratio: 1.3;
    }
    /* Shared Contact & Hire mobile layout: image first, then form. */
    .contact-page {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }
    .contact-art {
        grid-column: 1;
        grid-row: 1;
        height: clamp(260px, 50vw, 420px);
        min-height: 0;
    }
    .contact-form-wrap {
        grid-column: 1;
        grid-row: 2;
        padding: 32px max(20px, calc((100% - 470px) / 2)) 50px;
    }
    .contact-form,
    .contact-page .wpforms-container .wpforms-field-container {
        column-gap: 16px;
        row-gap: 20px;
    }
    .detail-head {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .detail-hero {
        height: 400px;
    }
    .detail-title h1 {
        font-size: 38px;
    }
    .detail-title {
        display: flex;
        flex-direction: column;
    }
    .detail-facts {
        order: 3;
        margin: 15px 0;
    }
    .detail-visual {
        min-height: 350px;
    }
    .detail-text-block {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 55px;
        padding-bottom: 55px;
    }
    .color-showcase {
        grid-template-columns: 1fr 1fr;
    }
    .color-showcase .primary {
        grid-column: 1/-1;
    }
    .swatch {
        min-height: 135px;
        padding: 20px;
    }
    .swatch strong {
        font-size: 15px;
    }
    .detail-gallery {
        gap: 5px;
    }
    .detail-image {
        min-height: 200px;
    }
    .detail-image:nth-child(3n) {
        height: 300px;
    }
    .highlights>div {
        grid-template-columns: repeat(2,1fr);
    }
    .project-filters {
        gap: 12px;
        font-size: 10px;
    }
    .about-statement p {
        font-size: 16px;
    }
    .wp-content-page {
        padding-top: 30px;
        padding-bottom: 60px;
    }
    /* Type B — mobile: all flexible sections stack neatly. */
    .layout-b .project-b-content .project-block { margin-bottom: 20px; }
    .layout-b .project-block--b-duo-text,
    .layout-b .project-block--b-duo-text.text-left,
    .layout-b .project-block--image-text,
    .layout-b .project-block--image-text.media-right { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .layout-b .project-block--b-duo-text.text-left > .project-b-text-content { order: initial; }
    .layout-b .project-block--image-text.media-right .project-figure,
    .layout-b .project-block--image-text.media-right .project-b-text-content { order: initial; }
    .layout-b .project-block--b-duo-text.text-below > .project-b-text-content { margin-top: 22px; }
    .layout-b .project-block--text .project-b-text-content { 
		grid-template-columns: minmax(0, 1fr); 
		gap: 20px; 
	}
	.layout-b .project-block--b-duo-text .project-b-duo-second > .project-b-text-content,
	.layout-b .project-block--text .project-b-text-content,
	.layout-b .project-b-text-content {
		margin-top:10vh;
		margin-bottom:10vh;
	}
    .layout-b .project-block--image .project-figure,
    .layout-b .project-block--image.has-custom-width .project-figure { max-width: 100%; }
    .layout-b .project-b-text-content h2 { 
		font-size: 17px; 
		margin-bottom: 20px;
    	width: 190px;
    	margin-right: 10px; 
	}
    .layout-b .project-b-text-content .project-block-copy { font-size: 15px; width:100%; }
	.layout-b .project-block--b-duo-text {
		width: calc(100% - 20px);
	}
	.layout-b .project-block--b-duo-text .project-b-duo-images {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.layout-b .project-block--b-duo-text .project-b-duo-images .project-b-duo-second .project-b-text-content {
		position:relative;
		margin-bottom:20px;
	}
	.layout-b .project-block--b-duo-text .project-b-duo-second h2 {
		bottom:20px;
	}
	.layout-b .project-block--b-duo-text,
	.project-b-duo-second > .project-b-text-content {
		margin-top: 20px;
	}
    .layout-c .project-c-collage-grid { column-gap: 10px; }
    .layout-c .project-c-duo-grid { column-gap: 10px; }
    .layout-c .project-c-collage-smalls { gap: 10px; }
    .layout-c .project-c-duo-copy { margin-top: 10px; }
	.layout-c .project-block--image-text.media-left .project-block-copy {
		width: 60%;
		margin-right: 0%;
	}
	.layout-c .project-c-duo-grid {
		flex-direction:column;
	}
	.layout-c .project-c-duo-second,
	.layout-c .project-c-duo-first {
		width: 100%;
	}
	.project-block--c-duo-text .project-c-duo-second .project-c-duo-photo {
		width:130px!important;
	}
	.project-block--c-duo-text .project-c-duo-second .project-c-duo-copy {
		width:calc(100% - 130px) !important;
		margin-left:130px !important;
	}
	.layout-b .project-b-triple-grid {
		display:flex;
        flex-wrap: wrap;
	}
	.layout-b .project-b-triple-grid .project-figure:nth-child(1) {
		order:2 !important;
	}
	.layout-b .project-b-triple-grid .project-figure:nth-child(2) {
		order:3 !important;
	}
	.layout-b .project-b-triple-grid .project-figure:nth-child(3) {
		width:100%;
		order:1 !important;
	}
}
@media screen and (max-width: 750px) {
	.intro-copy {
    	min-height: 200px;
	}
	.nav-links,
	.container,
	.header-inner {
        padding-left: 10px;
        padding-right: 10px;
    }
	.layout-b .project-b-pair-grid,
	.layout-b .project-b-duo-images {
		display:flex;
        flex-direction: column;
	}
	.layout-b .project-block--text.position-left,
	.layout-b .project-block--text.position-right {
		width:calc(100% - 20px);
		margin: 0 10px 10vh 10px;
	}
	.layout-b .project-b-triple-grid {
		margin-top:0;
	}
	.project-b-triple-grid figure:nth-child(1),
	.project-b-triple-grid figure:nth-child(2) {
	    width: calc(50% - 5px);
		float:left;
		margin-bottom:10px !important;
	}
	.project-b-triple-grid figure:nth-child(3) {
		width:100%;
		transform:translatey(0);
	}
	.layout-c .project-block--image-text.media-right .project-figure,
	.layout-c .project-block--image-text.media-left .project-figure {
		width:100%;
	}
	.layout-c .project-block--image-text.media-right .project-block-copy,
	.layout-c .project-block--image-text.media-left .project-block-copy {
		width:calc(100% - 130px);
	}
	.layout-c .project-block--image-text.media-right {
		flex-direction:column;
	}
	.site-footer>.container {
		display:flex;
		justify-content:space-between;
	}
	.footer-logo {
		width:73px;
	}
	.footer-logo img {
		width:53px;
	}
    .footer-bottom {
        align-items: flex-start;
        gap: 18px;
        flex-direction: column;
    }
    .footer-navigation {
        gap: 14px;
        font-size: 11px;
		margin-top:22px;
    }
    .contact-form-wrap {
        padding: 28px 20px 46px;
    }
    .contact-art {
        height: 285px;
    }
    .contact-kicker {
        font-size: 11px;
        margin-bottom: 20px;
    }
    .contact-form-wrap h1 {
        font-size: 19px;
    }
    .contact-form,
    .contact-page .wpforms-container .wpforms-field-container {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 18px;
    }
    .contact-page .wpforms-container .wpforms-field-container > .wpforms-field:nth-child(-n+2) {
        grid-column: 1;
    }
    .layout-a .project-a-inner.container {
        row-gap: 22px;
        padding: 20px 12px 0;
    }
    .layout-a .project-a-heading h1 {
        font-size: 18px;
    }
    .layout-a .project-a-description, .layout-a .project-a-services, .layout-a .project-services-list a {
        font-size: 14px;
    }
    .layout-a .project-pager--a {
        padding: 32px 0 18px;
    }
    .project-block {
        width: calc(100% - 20px);
        margin-bottom: 42px;
    }
	.project-block.project-block--full-image {
        width: 100%;
	}
    .project-facts-grid {
		display:flex;
		justify-content:space-between;
        gap: 10px;
    }
    .project-b-head {
        padding-bottom: 10px;
    }
    .project-b-intro h1 {
        font-size: 34px;
    }
    .project-c-heading h1 {
        font-size: 34px;
        margin: 25px 0;
    }
    .project-c-hero {
        margin-bottom: 45px !important;
    }
    .project-c-intro {
        padding-bottom: 45px;
    }
    .project-c-intro .project-block-copy {
        width: 100%;
    }
    .project-block--image.width-small .project-figure {
        width: 55%;
    }
    .project-block--image.width-medium .project-figure {
        width: 75%;
    }
    .project-block--image.width-large .project-figure {
        width: 100%;
    }
    .project-block--text {
        display: block;
    }
    .project-block--image-text {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-block--image-text.media-right .project-figure,
    .project-block--image-text.media-right .project-block-copy {
        order: initial;
    }
    .project-block--colors, .layout-c .project-block--colors {
        display: block;
        margin-right: auto;
    }
    .project-colors {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-color {
        min-height: 110px;
        padding: 14px;
    }
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .layout-c .project-block, .layout-b .project-block--full-image {
        margin-bottom: 10px;
    }
    .project-pager {
        padding-top: 25px;
        padding-bottom: 35px;
    }
    .mashq-about .about-page {
        width: calc(100% - 20px);
        padding-top: 35px;
        padding-bottom: 60px;
    }
    .mashq-about .about-people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
        row-gap: 25px;
    }
    .mashq-about .about-story {
        margin-top: 55px;
    }
    .mashq-about .about-story-header {
        gap: 12px;
        margin-bottom: 20px;
    }
    .mashq-about .about-story-header h1 {
        font-size: 21px;
    }
    .mashq-about .about-content p {
        font-size: 16px;
    }
    .mashq-about .about-content .wp-block-gallery {
        grid-template-columns: 2fr 1fr;
        gap: 6px;
        margin: 0 0 45px;
    }
    .mashq-about .about-content .wp-block-gallery > .wp-block-image img {
        height: 150px !important;
    }
    .directory-grid {
        grid-template-columns: repeat(1, 1fr);
    }
	.layout-c .project-block--image-text.media-right .project-figure,
	.layout-c .project-block--image-text.media-left .project-figure,
	.project-c-hero,
	.project-block--full-image {
		aspect-ratio: unset;
	}
    /* Type B — small screens */
    .layout-b .project-b-pair-grid,
    .layout-b .project-b-duo-images { gap: 10px; }
    .layout-b .project-b-triple-grid { gap: 10px; }
    .layout-b .project-block--b-duo-text { row-gap: 10px; }
    .layout-b .project-block--image.has-custom-width .project-figure { width: min(100%, var(--b-image-width)); }
	.project-b-summary {
		padding-right:0;
	}
	.layout-b .project-block--image-text.media-right figure a {
		width:100%;
		margin-left:0;
	}
	.layout-b .project-block--text.position-left p,
	.layout-b .project-block--text.position-right p {
		width:100%;
	}
	.layout-b .project-b-content .project-block {
		margin-bottom:10px;
	}
	.layout-b .project-pager--b {
		width: calc(100% - 20px);
	    margin: 10px auto 20px auto;
	}
	.project-b-content section:nth-child(4) .project-b-pair-grid > .project-figure:first-child {
		order:2;
		width:50%;
	}
	.project-b-content section:nth-child(4) .project-b-pair-grid > .project-figure:nth-child(2) {
		order:1;
	}
	.project-b-content section:nth-child(8) {
		display:flex !important;
		flex-direction: column;
		align-items:end;
		margin:10vh auto!important;;
	}
	.project-b-content section:nth-child(8) .project-figure {
		width:25%;
	}
	.project-b-content section:nth-child(8) .project-b-text-content {
		margin: 0;
    	align-self: end;
	}
    /* On small phones: large image first, then the two small images. */
    .layout-c .project-c-collage-grid,
    .layout-c .project-block--c-collage.is-large-right .project-c-collage-grid,
    .layout-c .project-c-duo-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 10px;
    }
    .layout-c .project-c-collage-grid .project-c-collage-large { order: 2; }
    .layout-c .project-c-collage-grid .project-c-collage-smalls { order: 1; }
    .layout-c .project-c-duo-second { align-items: stretch; }
	.layout-c .project-c-collage-smalls figure img,
	.layout-c .project-c-collage-smalls figure {
		aspect-ratio:1 !important;
	}
	.layout-c .project-block--c-collage.is-large-right .project-c-collage-smalls { order: 2; }
	.layout-c .project-block--c-collage.is-large-left .project-c-collage-smalls figure:nth-child(1), 
	.layout-c .project-block--c-collage.is-large-right .project-c-collage-smalls figure:nth-child(2) {
		width: 100%;
	}
	.layout-c .project-block--c-collage.is-large-left .project-c-collage-smalls {
		display:grid !important;
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
	}
	.layout-c .project-block--c-collage.is-large-left .project-c-collage-smalls figure img,
	.layout-c .project-block--c-collage.is-large-left .project-c-collage-smalls figure {
		aspect-ratio:unset !important;
	}
	.layout-c .project-c-collage-grid .project-figure,
	.layout-c .project-c-collage-grid .project-figure a{
        width: 100%;
	}
	.layout-c .project-c-duo-grid .project-figure img {
		max-height:unset;
	}
	
    .layout-c .project-pager--c {
        width: calc(100% - 20px);
        margin: 40px auto;
    }
}
/***************************************************
                hover and accessibility
***************************************************/
@media (hover: hover) {
    .project-card:hover .project-image .project-cover, .project-card:focus-visible .project-image .project-cover {
        transform: scale(1.025);
    }
    .project-card:hover .project-image.has-hover-image .project-hover,
    .project-card:focus-visible .project-image.has-hover-image .project-hover {
        opacity: 1;
        transform: scale(1.025);
    }
    .project-card:hover .project-action, .project-card:focus-visible .project-action {
        opacity: 1;
    }
    .project-card:hover .project-meta, .project-card:focus-visible .project-meta {
        visibility: visible;
    }
    .category-project-card:hover .category-project-hover-image,
    .category-project-card:focus-visible .category-project-hover-image,
    .category-project-card:hover .category-project-overlay,
    .category-project-card:focus-visible .category-project-overlay {
        opacity: 1;
    }
    .category-project-card:hover .category-project-meta,
    .category-project-card:focus-visible .category-project-meta {
        opacity: 0;
    }
}
@media (hover: hover) and (min-width: 781px) {
    .service-card.has-image:hover, .service-card.has-image:focus-visible {
        color: #fff;
    }
    .service-card.has-image:hover .service-card-image, .service-card.has-image:focus-visible .service-card-image {
        opacity: 1;
        transform: scale(1.035);
    }
    .service-card.has-image:hover::before, .service-card.has-image:focus-visible::before {
        opacity: 1;
    }
    .service-card.has-image:hover .service-card-description,
    .service-card.has-image:focus-visible .service-card-description {
        opacity: 0;
        visibility: hidden;
    }
    .services-grid .service-card:hover .service-card-link,
    .services-grid .service-card:focus-visible .service-card-link {
        opacity: 1;
        visibility: visible;
    }
}
@media (hover: none) {
    .category-project-hover-image {
        display: none;
    }
    .project-action {
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .category-project-hover-image, .category-project-overlay, .category-project-meta {
        transition: none;
    }
    .service-card, .service-card-image, .service-card::before, .service-card-description {
        transition: none;
    }
    *,*:before,*:after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
.fancybox-container--ready .fancybox-bg,
.fancybox-bg {
    background: rgba(0,0,0, 0.8) !important;
	opacity:1!important;
}
.fancybox-button:hover,
.fancybox-button,
.fancybox-infobar__body {
    background: rgba(255,255,255, 0);
    color:#fff;
}
.fancybox-button--fullscreen,
.fancybox-button--thumbs,
.fancybox-button--play {
	display:none !important;
}