/* =====================================================================
   SYN ARCHITECTS: CUSTOM CODE GUIDE (read this first)
   Everything above the block "Projects page: 2 per row on mobile only" is Cargo's own default styling. Leave it alone.
   Everything below it was added for this site. Each block starts with a comment that names it. Search for the name to find it.

   MOBILE (screens up to 700px)
   - Projects page: 2 per row, equal row spacing (see "Projects page, mobile")
   - About page: no side padding, image full width
   - Home page: nav across the top, small slideshow, large logo at the bottom
   - Project pages: order is English text, image, Arabic text (classes proj-row, proj-text, proj-en, proj-ar, proj-gallery)
   - proj-align: one small margin-top rule per project page, so the text clears the navigation
   - Press & Print: press-grid, press-grid-type, press-grid-tweaks, press-wide, press-item-size, press-list-size
   - mobile edge alignment: navigation and Press content start 20px from the screen edge
   - project galleries, mobile: no touch scrub (pointer-events none); tapping is handled by the script syn-gallery-click

   DESKTOP (screens wider than 700px)
   - press-desktop: Press & Print text hierarchy
   - Projects page, desktop: equal row spacing
   - proj-gallery-size: every project gallery is 570 x 570
   - proj-layout-desktop: gallery 60px lower, English text centred on the image. ONE LINE PER PROJECT PAGE (see the comment above it)
   - home-image-desktop, home-no-logo-desktop, home-image-gap, home-gallery-square: home page slideshow
   - home-type: typewriter text on the home page (needs the home-type script in the HTML tab)

   BOTH
   - Page transition, footer-reveal, landing-card (and landing-card-mobile), syn-no-arrows (no gallery arrows)
   - Contact popup rules (fade). Known open issue: it sometimes opens abruptly. Do not tidy these without testing on Home, Projects and About.

   HTML TAB: the scripts are listed at the top of the HTML tab. Cargo CSS does not allow :has() selectors.
   Pages are identified by id: .page.container[data-id="..."]. A page's id shows in the address bar when you edit it in Cargo.
   ===================================================================== */

/**
 * Content
 */

body {
	background-color: #fff;
	color: #000;
}

a:active {
	opacity: 0.7;
}

.page a.active {
	opacity: .4;
}

i,
em {
	font-style: italic;
}

b,
strong {
	font-weight: bolder;
}

sub,
sup {
	position: relative;
	vertical-align: baseline;
}

sub {
	top: 0.3em;
}

sup {
	top: -0.4em;
}

s {
	text-decoration: line-through;
}

img {
	border: 0;
	padding: 0;
}

ul,
ol {
	margin: 0;
	padding: 0 0 0 1em;
}

blockquote {
	margin: 0;
	padding: 0 0 0 2em;
}

hr {
	background: rgba(127, 127, 127, 0.2);
	border: 0;
	height: 1px;
	display: block;
}

.content img {
	float: none;
	margin-bottom: .5em;
}

.gallery_image_caption {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.3);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-style: normal;
	line-height: 1.3;	
}

/**
 * Loading Animation
 */

.loading[data-loading] {
	position: fixed;
	bottom: 8px; 
    left: 8px;
}

/**
 * Editor styles
 */

[data-predefined-style="true"] bodycopy {
	font-size: 1.7rem;
	font-weight: 300;
	color: rgb(0, 0, 0);
	font-family: "Favorit Variable", Icons;
	font-style: normal;
	line-height: 1.3;
	font-variation-settings: 'slnt' 0;
}

[data-predefined-style="true"] bodycopy a {
	color: rgb(0, 0, 0);
	padding-bottom: 0.1em;
	border-bottom: 0.0em solid rgba(127, 127, 127, 0.2);
	text-decoration: none;
}

[data-predefined-style="true"] bodycopy a:hover {

}

bodycopy a.image-link,
bodycopy a.icon-link,
bodycopy a.image-link:hover,
bodycopy a.icon-link:hover {
	border-bottom: 0;
	padding-bottom: 0;
}

[data-predefined-style="true"] h1 {
	font-family: "Social Condensed Variable", Icons; 
	padding: 0;
	margin: 0;
	font-size: 5.7rem;
	line-height: 1.3;
	color: rgb(0, 0, 0);
		letter-spacing: .04em;
	font-style: normal;
	font-weight: 200;
	font-variation-settings: 'wdth' 75, 'slnt' 0;
}

[data-predefined-style="true"] h1 a {
	color: rgba(0, 0, 0, 1);
}

[data-predefined-style="true"] h2 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	color: rgba(0, 0, 0, 0.85);
	font-size: 1.5rem;
	line-height: 1.3;
	}

[data-predefined-style="true"] h2 a {
	color: rgba(0, 0, 0, 0.85);
}

[data-predefined-style="true"] small {
	display: inline-block;
	font-size: 1.5rem;
	line-height: 1.3;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, 'Sans Serif', Icons;
	font-style: normal;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.3);
}

[data-predefined-style="true"] small a {
	color: rgba(0, 0, 0, 0.3);
	border-bottom-width: 0em;
}

/**
 * Breakpoints
 */


[data-css-preset] .page {
    background-color: initial /*!page_bgcolor*/;
}

.mobile .page,
[data-css-preset].mobile .page {
	position: relative;
	min-height: 10px;
	max-width: 100%;
	width: 100%;
	background-color: transparent /*!page_bgcolor*/;
}

[data-css-preset] .container {
	margin-left: auto /*!content_center*/;
	margin-right: auto /*!content_center*/;
	text-align: center /*!text_center*/;
}

[data-css-preset] body {
	background-color: #e5e2db/*!body_bgcolor*/;
}

[data-css-preset] .container_width {
	width: 100%/*!content_center*/;
}

[data-css-preset] .content_padding {
	padding-top: 3.9rem /*!main_margin*/;
	padding-bottom: 3.9rem /*!main_margin*/;
	padding-left: 3.9rem /*!main_margin*/;
	padding-right: 3.9rem /*!main_margin*/;
}


[data-css-preset] text-limit {
	display: inline-block /*!text_width*/;
	max-width: 66rem/*!text_width*/;
}

/**
 * Thumbnails
 */

div[thumbnails] {
	justify-content: flex-start;
}

[data-css-preset] .thumbnails {
   	background-color: rgba(0, 0, 0, 0)/*!thumbnails_bgcolor*/;   
}

[data-css-preset] .thumbnails_width {
    width: 100%/*!thumbnails_width*/;
}

[data-css-preset] [thumbnails-pad] {
    padding: 0.75rem/*!thumbnails_padding*/;
}

[data-css-preset] [thumbnails-gutter] {
    margin: -1.5rem/*!thumbnails_padding*/;
}

[data-css-preset] [responsive-layout] [thumbnails-pad] {
    padding: 0.5rem/*!responsive_thumbnails_padding*/; 
}

[data-css-preset] [responsive-layout] [thumbnails-gutter] {
    margin: -1rem/*!responsive_thumbnails_padding*/; 
}

.thumbnails .thumb_image {
	outline: 1px solid rgba(0,0,0,.12);
    outline-offset: -1px;
}

.thumbnails .title {
    margin-top: 1.2rem;
    margin-bottom: .3rem;
    font-size: 1.8rem;
	font-weight: normal;
	color: rgba(0, 0, 0, 0.85);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-style: normal;
	line-height: 1.1;
}

.thumbnails .tags {
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.35);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-style: normal;
	line-height: 1.2;
}

.thumbnails .tags a {
	border-bottom: 0;
    color: rgba(0, 0, 0, 0.35);
    text-decoration: none;
}

.thumbnails .has_title .tags {
	margin-top: 0rem;
}

/**
 * Site Menu
 */

[data-css-preset] #site_menu_button {
    color: rgba(157, 157, 157, 0.75);
    line-height: 1;
    font-size: 36px /*!site_menu_button*/;
    padding: 6px;
    line-height: 1;
    background: rgba(33, 32, 46, 0);
    position: fixed;
	top: 3rem /*!site_menu_button*/;
	left: 3rem /*!site_menu_button*/;
}

body.mobile #site_menu_button {
	margin: -6px;
    font-size: 34px;
}

#site_menu_button.custom_icon {
	width: 40px;
    height: auto;
}

#site_menu_button.active {
	display: none;
}

/**
 * Site Menu
 */

#site_menu {
	font-family: -apple-system, BlinkMacSystemFont, "Montserrat", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	background: rgba(20, 20, 20, 0.95);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	padding: 20px 30px 90px 30px;
	max-width: 400px;
	min-width: 300px;
	text-align: left;
	display: flex;
	justify-content: flex-start;
}

body.mobile #site_menu {
	width:75%;
    min-width: 0;
    max-width: 75%;
}

#site_menu .page-link a {
	color: rgba(255, 255, 255, 0.75);
}

#site_menu .set-link > a {
	color: rgba(255, 255, 255, 0.75);
	font-weight: bold;
}

#site_menu a:active {
	opacity: .7;
}

#site_menu a.active {
	opacity: .4;
}

#site_menu .close {
	display: none;
	color: rgba(255, 255, 255, 0.4);
	line-height: .85em;
	font-size: 45px;
}

body.mobile #site_menu .close {
	display: block;
	font-size: 50px;
	line-height: 1em;
}

#site_menu .break {
	height: 28px;
}

#site_menu .indent {
	margin-left: 28px;
}

/*
 * Shop Button
 */

[data-css-preset] #shop_button {
	color: rgba(0, 0, 0, 0.85);
    background: transparent;
	font-size: 32px;
    font-style: normal;
	font-weight: 400;
    line-height: 1;
    position: fixed;
	padding: 0px;
	top: 1.5rem /*!shop_button*/;
	right: 1.5rem /*!shop_button*/;
}

#shop_button.text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-size: 1.5rem;
    padding: 0;
    line-height: 1.2;
}

#shop_button.custom_icon {
	width: 40px;
    height: auto;
}

body.mobile #shop_button:not(.text) {
	margin: -6px;
    font-size: 36px;
}

/*
 * Shop Product Widget
 */

.shop_product {
    width: 100%;
	max-width: 22rem;
    position: relative;
    display: block;
}

.shop_product .price {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-size: 1.5rem;
	line-height: 1;
	color: rgba(0, 0, 0, 1);
    display: block;
    margin-bottom: 1rem;
}

.shop_product .dropdown {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
    font-size: 1.5rem;
    display: inline-block;
	width: 100%;
    border: 1px solid rgba(0,0,0,.2);
    background:  white url(https://static.cargo.site/assets/images/select-line-arrows.svg) no-repeat right;
    margin-bottom: 1rem;
    line-height: 1.2;
    padding: .6rem 2.3rem .7rem 1rem;
}

.shop_product .button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255,255,255,1);
    flex: 0 0 50%;
    text-align: left;
    display: inline-block;
	line-height: 1;
    padding: .8rem 1rem .9rem;
}

/*
 * Image Zoom
 */

.content img.image-zoom:active {
  opacity: .7;
}

/**
 * Quick View
 */

[data-css-preset] .quick-view {
    padding-top: 2.5rem /*!quick_view_padding*/;
    padding-bottom: 2.5rem /*!quick_view_padding*/;
    padding-left: 2.5rem /*!quick_view_padding*/;
    padding-right: 2.5rem /*!quick_view_padding*/;
    height: 100% /*!quick_view_height*/;
    width: 100% /*!quick_view_width*/;
}

body.mobile .quick-view {
    width: 100%;
    height: 100%;
    margin: 0;
}


[data-css-preset] .quick-view-background {
	background: rgba(255, 255, 255, 0.95) /*!quick_view_bgcolor*/;
}

.quick-view-caption {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
    transition: 100ms opacity ease-in-out;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 3.5rem 0;
    text-align: center;
    font-size: 1.5rem;
	font-style: normal;
	font-weight: 400;
    line-height: 1.3;
}

.quick-view-caption span {
    padding: 0.5rem 1rem;
    display: inline-block;
    background: rgba(0,0,0,0.5);
    color: white;
}


/**
 * Quick View Navigation 
 */

.quick-view-navigation .left-arrow {
    left: 10px;
}

.quick-view-navigation .right-arrow {
    right: 10px;
}

.quick-view-navigation .left-arrow,
.quick-view-navigation .right-arrow {
    /* Change height/width together to scale */
    height: 36px;
    width: 36px;
}

.quick-view-navigation .left-arrow .inner-color,
.quick-view-navigation .right-arrow .inner-color {
    stroke: rgba(0, 0, 0, 0.85);
    stroke-width: 1.5px;
}

.quick-view-navigation .left-arrow .outer-color,
.quick-view-navigation .right-arrow .outer-color {
    stroke: transparent;
    stroke-width: 2.5px;
}

.quick-view-navigation .close-button {  
    top: 10px;
    right: 10px;
    /* Change height/width together to scale */
    width: 36px;
    height: 36px;
}

.quick-view-navigation .close-button .inner-color {
    stroke: rgba(0, 0, 0, 0.85);
    stroke-width: 1.5px;
}

.quick-view-navigation .close-button .outer-color {
    stroke: transparent;
    stroke-width: 2.5px;
}

/** 
 * Image Gallery Navigation Arrows 
 */
 
.image-gallery-navigation .left-arrow,
.image-gallery-navigation .right-arrow {
    /* Change height/width together to scale */
    height: 36px;
    width: 36px;
}

.image-gallery-navigation .left-arrow .inner-color,
.image-gallery-navigation .right-arrow .inner-color {
    stroke: #fff;
    stroke-width: 1.5px;
}

.image-gallery-navigation .left-arrow .outer-color,
.image-gallery-navigation .right-arrow .outer-color {
    stroke: rgba(0, 0, 0, 0.6);
    stroke-width: 2.5px;
}

/**
 * Wallpaper Backdrop Navigation Arrows 
 */

.wallpaper-navigation .left-arrow,
.wallpaper-navigation .right-arrow {
   /* Change height/width together to scale */
   width: 36px;
   height: 36px;
}

.wallpaper-navigation .left-arrow .inner-color,
.wallpaper-navigation .right-arrow .inner-color {
   stroke: #fff;
    stroke-width: 1.5px;
}

.wallpaper-navigation .left-arrow .outer-color,
.wallpaper-navigation .right-arrow .outer-color {
    stroke: rgba(0, 0, 0, 0.6);
    stroke-width: 2.5px;
}


/**
 * Feed
 */

.feed .content_container .page {
    border-top: 0px dashed rgba(0, 0, 0, 0.2);
}

.feed .content_container .page_container:first-child .page {
	border-top: 0;
}



/*
 * Audio Player
 */

.audio-player {
    max-width: 36rem;
    height: 3.3rem;
    outline: 1px solid rgba(0,0,0,0.15);
    color: rgba(0, 0, 0, 0.6);
    background: #fff;
    font-size: 1.2rem;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
    font-style: normal;
    font-weight: 400;
    text-align: left;
    margin: 1px 1px 1em 1px;
}

body.mobile .audio-player {
    max-width: 100%;
}

.audio-player .separator {
    width: 1px;
    background-color: rgba(0,0,0,0.15);
}

.audio-player .button {
    background: transparent;
    cursor: pointer;
    fill: rgba(0, 0, 0, 0.85);
}

.audio-player .icon {
    fill: rgba(0, 0, 0, 0.85);
    padding: 30%;
    width: 100%;
    margin: auto;
}

.audio-player .buffer {
    background: rgba(0,0,0,0.03);
}

.audio-player .progress {
    background: rgba(0,0,0,0.1);
}

.audio-player .progress-indicator {
    border: 1px solid rgba(0, 0, 0, 0.7);
    width: 1px;
    height: 100%;
    right: 0;
    position: absolute;
    cursor: ew-resize;
}

.audio-player .note-icon {
    height: 100%;
    width: 3.8rem;
    padding: 1rem;
    fill: rgba(0, 0, 0, 0.5);
}

.audio-player .current-time {
    padding-left: 1rem;
}

.audio-player .total-time {
    padding-right: 1rem;
}
@keyframes syn-contact-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#site_menu {
  animation: syn-contact-fade 0.35s ease-out;
}
@keyframes syn-contact-open {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#site_menu_panel_container[data-type="page"] {
  animation: syn-contact-open 0.4s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  #site_menu_panel_container[data-type="page"] {
    animation: none;
  }
}
#site_menu_panel_container[data-type="page"] {
  transition:
    opacity 0.4s ease,
    display 0.4s allow-discrete;
}

#site_menu_panel_container[data-type="page"][style*="display: none"],
#site_menu_panel_container[data-type="page"][style*="display:none"] {
  opacity: 0;
}
[data-predefined-style="true"] bodycopy {
  font-family: "Montserrat", sans-serif, Icons;
	font-size: 1.2rem;
}
[data-predefined-style="true"] h2 {
  font-family: "Tajawal", Icons;
	font-size: 1.2rem;
}
.extra-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 18px;
  color: #787878;
}
#site_menu_panel_container {
  transition: opacity 0.3s ease;
}
#site_menu_panel_container.fading {
  opacity: 0;
}
@keyframes menuFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#site_menu_panel_container {
  animation: menuFadeIn 0.3s ease;
}

/* Projects page: 2 per row on mobile only */
@media (max-width: 700px) {
  .projects-grid [grid-col] {
    width: 50% !important;
    float: left;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

/* About page: mobile only, remove wide side padding */
@media (max-width: 700px) {
  .page.container[data-id="38022125"] > bodycopy.content_padding {
    padding-left: 7.4% !important;
    padding-right: 7.4% !important;
  }
  .page.container[data-id="38022125"] .page_content img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 1;
    object-fit: cover;
  }
  /* tighten gap between image and text (about 30% less) */
  .page.container[data-id="38022125"] [grid-col="8"] {
    margin-top: -4.4em;
    line-height: 1.3 !important;
  }
}

/* Home page: mobile only (nav links across the top, small image centred, large logo at bottom) */
@media (max-width: 700px) {
  body.homepage .page.container[data-id="38716250"] [grid-row] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
  }
  body.homepage .page.container[data-id="38716250"] [grid-col] {
    width: auto !important;
    float: none !important;
    flex: 0 0 auto !important;
  }
  body.homepage .page.container[data-id="38716250"] [grid-col]:first-child {
    position: fixed !important;
    left: 0;
    bottom: 0;
    width: 100% !important;
    padding: 0 2.7rem 3rem !important;
    box-sizing: border-box;
    z-index: 2;
  }
  body.homepage .page.container[data-id="38716250"] [grid-col]:first-child > div {
    text-align: center !important;
  }
  body.homepage .page.container[data-id="38716250"] [grid-col]:first-child a {
    display: block;
    width: min-content;
    margin: 0 auto;
    text-align: left !important;
    font-size: 10vw !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
  }
  body.homepage .page.container[data-id="38022123"] bodycopy {
    position: fixed !important;
    top: 8.55rem;
    bottom: calc(3rem + 20vw);
    left: 0;
    right: 0;
    padding: 0 2.7rem !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  body.homepage .page.container[data-id="38022123"] .page_content {
    width: 100%;
  }
  body.homepage .page.container[data-id="38022123"] .page_content > br {
    display: none !important;
  }
  body.homepage .page.container[data-id="38022123"] [grid-col] {
    padding-left: 23vw !important;
    padding-right: 23vw !important;
  }
}

/* Page transition: soft fade between pages (phones and desktop) */
@media all {
  /* screen fades back in slowly (0.45s) */
  [data-container="set"] {
    transition: opacity 0.45s ease-out;
  }
  /* and fades out quickly (0.2s) */
  html.pt-hold [data-container="set"] {
    opacity: 0 !important;
    transition-duration: 0.2s;
  }
  /* images fade in one by one as they load */
  .page_content img.pt-img {
    opacity: 0;
    transition: opacity 0.6s ease;
  }
  .page_content img.pt-img.pt-img-in {
    opacity: 1;
  }
}

/* Project pages (tagged pages only): mobile order is English text, image, Arabic text */
@media (max-width: 700px) {
  .proj-row {
    display: flex !important;
    flex-direction: column !important;
  }
  .proj-row > [grid-col] {
    width: 100% !important;
  }
  .proj-text {
    display: contents !important;
  }
  .proj-en {
    order: 1;
    padding: 0 1.5rem;
    box-sizing: border-box;
  }
  .proj-gallery {
    order: 2;
    margin: 1.5rem 0;
  }
  /* photo credit: half size */
  .proj-gallery > div:not(.image-gallery) {
    font-size: 0.5em !important;
  }
  .proj-text > * {
    order: 1;
  }
  .proj-text > .proj-ar,
  .proj-text > .proj-ar ~ * {
    order: 3;
  }
  .proj-text > div {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
  }
  .proj-ar {
    padding: 0 1.5rem;
    box-sizing: border-box;
    width: 100%;
  }
  .proj-ar::before {
    content: "";
    display: block;
    height: 1px;
    background: rgba(127, 127, 127, 0.2);
    margin: 0 0 1.5rem;
  }
  .proj-sp {
    order: 4;
  }
  /* loose line breaks between the blocks would add stray space */
  .proj-text > br {
    display: none;
  }
  /* top gap on pages where the line breaks sit outside the English block */
  .proj-lead {
    padding-top: 7.8em;
  }
}

/* project pages: start of text aligned with Shamalat (mobile only) */
@media (max-width: 700px) {
  .page.container[data-id="38646648"] .proj-en { margin-top: 4px; } /* proj-align */
  .page.container[data-id="38646726"] .proj-en { margin-top: 7px; } /* proj-align */
  .page.container[data-id="38649338"] .proj-en { margin-top: 141px; } /* proj-align */
  .page.container[data-id="38653071"] .proj-en { margin-top: 73px; } /* proj-align */
  .page.container[data-id="38657302"] .proj-en { margin-top: -137px; } /* proj-align */
  .page.container[data-id="38657313"] .proj-en { margin-top: -96px; } /* proj-align */
  .page.container[data-id="38659804"] .proj-en { margin-top: -69px; } /* proj-align */
  .page.container[data-id="38659844"] .proj-en { margin-top: -69px; } /* proj-align */
  .page.container[data-id="38659851"] .proj-en { margin-top: -110px; } /* proj-align */
  .page.container[data-id="38659866"] .proj-en { margin-top: -69px; } /* proj-align */
  .page.container[data-id="38672346"] .proj-en { margin-top: -69px; } /* proj-align */
}

/* footer-reveal (phones and desktop): soft fade and rise, line draws in */
@media all {
  .ft-pre { opacity: 0; transform: translateY(12px); transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); }
  hr.ft-pre { transform: scaleX(0); transform-origin: left center; transition: opacity 1s ease, transform 1.2s cubic-bezier(.22,.61,.36,1); }
  .ft-pre.ft-in { opacity: 1; transform: none; }
}

/* press-grid: Press & Print page (id 38066740), mobile only. Two items per row, start height matched to project pages */
@media (max-width: 700px) {
  .page.container[data-id="38066740"] [grid-col]:first-child {
    margin-top: 78px;
  }
  .page.container[data-id="38066740"] .pr-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 10px;
  }
  .page.container[data-id="38066740"] .pr-item {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    min-width: 0;
  }
  .page.container[data-id="38066740"] .pr-title,
  .page.container[data-id="38066740"] .pr-media,
  .page.container[data-id="38066740"] .pr-link {
    min-width: 0;
  }
  .page.container[data-id="38066740"] .pr-media {
    overflow: hidden;
  }
  .page.container[data-id="38066740"] .pr-media > img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  /* slideshow slides keep their own ratio in the narrower column */
  .page.container[data-id="38066740"] .pr-media .gallery_card_image img {
    width: 100% !important;
    height: auto !important;
  }
  .page.container[data-id="38066740"] .pr-media .slick-list,
  .page.container[data-id="38066740"] .pr-media .slick-track,
  .page.container[data-id="38066740"] .pr-media .slick-slide,
  .page.container[data-id="38066740"] .pr-media .slick-slide > div,
  .page.container[data-id="38066740"] .pr-media .gallery_card_image {
    height: auto !important;
  }
}

/* press-grid-type: hierarchy and spacing on Press & Print (mobile only) */
@media (max-width: 700px) {
.page.container[data-id="38066740"] span[style*="font-weight: 600"] { font-size: 2.025em; color: rgb(40,37,37); }
.page.container[data-id="38066740"] .pr-grid { column-gap: 8px; row-gap: 0; margin-top: 1rem; }
.page.container[data-id="38066740"] .pr-item { row-gap: 0; padding-bottom: 1.4rem; }
.page.container[data-id="38066740"] .pr-title { color: rgb(70,66,66); line-height: 1.3; text-align: left; margin: 0 0 0.5rem; hyphens: none; }
.page.container[data-id="38066740"] .pr-title br, .page.container[data-id="38066740"] .pr-media br, .page.container[data-id="38066740"] .pr-link br { display: none; }
.page.container[data-id="38066740"] .pr-link { margin-top: 0.5rem; }
.page.container[data-id="38066740"] .pr-link a { font-size: 0.8em; }
.page.container[data-id="38066740"] .pr-link hr { margin: 0.7rem 0 0; }
.page.container[data-id="38066740"] .pr-grid { margin-top: 1.6rem; }
.page.container[data-id="38066740"] div[style*="text-align: center"] br { display: none; }
.page.container[data-id="38066740"] div[style*="text-align: center"] { margin-top: 2.2rem; }
.page.container[data-id="38066740"] [grid-col]:nth-child(3) { display: none; }
.page.container[data-id="38066740"] [grid-col]:nth-child(4) > br { display: none; }
.page.container[data-id="38066740"] [grid-col]:nth-child(4) > span { display: block; margin-top: 2.2rem; margin-bottom: 1rem; }
}

/* press-grid-tweaks: titles not bold, arrow on read more (mobile only; hidden on desktop) */
.pr-arrow { display: none; }
@media (max-width: 700px) {
  .page.container[data-id="38066740"] span[style*="font-weight: 600"] { font-weight: 300 !important; }
  .page.container[data-id="38066740"] .pr-arrow { display: inline; }
  .page.container[data-id="38066740"] [grid-col] div[style*="text-align: center"] { text-align: left !important; }
}

/* press-wide: larger images on Press & Print (mobile only) */
@media (max-width: 700px) {
  .page.container[data-id="38066740"] .pr-grid {
    column-gap: 6px;
  }
  /* everything on the page shares one left edge; headings left-aligned */
  .page.container[data-id="38066740"] [grid-col] {
    margin-left: -14px;
    width: calc(100% + 28px) !important;
    max-width: none;
    text-align: left !important;
  }
  .page.container[data-id="38066740"] div[style*="text-align: center"] {
    text-align: left !important;
  }
}

/* press-item-size: image titles and Purchase / read more links about 25% larger (mobile only) */
@media (max-width: 700px) {
  .page.container[data-id="38066740"] .pr-item {
    font-size: 1.25em;
  }
}

/* press-list-size: Press list slightly larger, still smaller than the image titles (mobile only) */
@media (max-width: 700px) {
  .page.container[data-id="38066740"] [grid-col]:nth-child(4) > div {
    font-size: 1.12em;
    line-height: 1.45;
  }
}

/* press-desktop: text hierarchy on desktop (lighter version of mobile) */
@media (min-width: 701px) {
  .page.container[data-id="38066740"] [grid-col]:nth-child(1),
  .page.container[data-id="38066740"] [grid-col]:nth-child(2),
  .page.container[data-id="38066740"] [grid-col]:nth-child(4) { text-align: left !important; }
  .page.container[data-id="38066740"] [grid-col] span[style*="font-weight: 600"] { font-size: 1.55em; font-weight: 300 !important; color: rgb(40,37,37); letter-spacing: .01em; }
  .page.container[data-id="38066740"] .pr-title { color: rgb(70,66,66); line-height: 1.35; }
  .page.container[data-id="38066740"] .pr-link a { font-size: .85em; }
  .page.container[data-id="38066740"] .pr-arrow { display: inline; }
  .page.container[data-id="38066740"] [grid-col] div[style*="text-align: center"] { text-align: left !important; }
}

/* landing-card: links sit bottom-left of the business card, locked to the card at any screen size.
   The card image is the page wallpaper (cover). Card position inside the image: left .316, width .3707, top .3128, height .3744, image ratio 3000x1687. */
.page.container[data-id="38642348"] .lp-links {
  --cw: max(100vw, calc(var(--lpvh, 100vh) * 1.7783));
  --ch: calc(var(--cw) / 1.7783);
  --cardL: calc((100vw - var(--cw)) / 2 + var(--cw) * .316);
  --cardW: calc(var(--cw) * .3707);
  --cardB: calc((var(--lpvh, 100vh) - var(--ch)) / 2 + var(--ch) * .6872);
  --cardH: calc(var(--ch) * .3744);
  position: fixed;
  left: calc(var(--cardL) + var(--cardW) * .07);
  top: calc(var(--cardB) - var(--cardH) * .09);
  transform: translateY(-100%);
  z-index: 5;
  text-align: left;
}
.page.container[data-id="38642348"] .lp-links h1 { margin: 0; padding: 0; font-size: clamp(11px, calc(var(--cw) * .0094), 24px); line-height: 1.3; }
.page.container[data-id="38642348"] .lp-links a { display: block; width: fit-content; transition: color .25s ease; }
.page.container[data-id="38642348"] .lp-links a:hover { color: #0000ee; }

/* landing-card-mobile: on phones show the whole card (not a cropped slice) and keep the links locked to it */
html.lp-on { background: #262424 !important; }
html.lp-on, html.lp-on body { min-height: 100%; }
html.lp-on body { background: transparent !important; }
html.lp-off { background: #e5e2db !important; }
.backdrop[data-id="38642348"] { background-color: transparent; }
@media (max-width: 700px) {
  .backdrop[data-id="38642348"] .slide_container { width: 237vw !important; height: 133.3vw !important; margin-left: -68.5vw !important; margin-top: calc((var(--lpvh, 100vh) - 133.3vw) / 2) !important; }
  .backdrop[data-id="38642348"] .slide_container img { width: 100% !important; height: 100% !important; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .page.container[data-id="38642348"] .lp-links { --cw: 237vw; }
  .page.container[data-id="38642348"] .lp-links h1 { font-size: 13px; }
}

/* proj-gallery-size */
@media (min-width:701px){
.proj-gallery .image-gallery{width:570px !important}
.proj-gallery .gallery_card_image img{width:570px !important;height:570px !important;object-fit:contain !important;object-position:center top !important}
}

/* home-no-bottom-logo: mobile only, logo image goes in the gallery instead */
@media (max-width: 700px) {
  body.homepage .page.container[data-id="38716250"] [grid-col]:first-child {
    display: none !important;
  }
  body.homepage .page.container[data-id="38022123"] bodycopy {
    bottom: 3rem;
  }
}

/* home-no-logo-desktop: hide the top-left wordmark on the home page only */
@media (min-width: 701px) {
  body.homepage .page.container[data-id="38022122"] [grid-col]:first-child {
    visibility: hidden;
  }
}

/* home-image-desktop: slideshow centred in the left half of the page, about 25% larger (desktop only) */
@media (min-width: 701px) {
  body.homepage .page.container[data-id="38022123"] [grid-col] {
    position: fixed !important;
    left: 0;
    top: 0;
    width: 50vw !important;
    height: 100vh;
    padding: 100px 0 0 !important; /* home-image-gap: sits a little lower so it keeps clear of the contact card */
    margin: 0 !important;
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body.homepage .page.container[data-id="38022123"] [grid-col] > div {
    width: 300px;
    max-width: 100%;
  }
  body.homepage .page.container[data-id="38022123"] .image-gallery {
    width: 300px !important;
  }
}

/* home-gallery-square: logo images are square, so the slideshow box is square (desktop) */
@media (min-width: 701px) {
  body.homepage .page.container[data-id="38022123"] .image-gallery,
  body.homepage .page.container[data-id="38022123"] .image-gallery .slick-list,
  body.homepage .page.container[data-id="38022123"] .image-gallery .slick-slide,
  body.homepage .page.container[data-id="38022123"] .image-gallery .gallery_card_image,
  body.homepage .page.container[data-id="38022123"] .image-gallery img {
    width: 280px !important;
    height: 280px !important;
  }
}


/* home-type: typewriter intro on the home page (script home-type in the HTML tab). Gallery stays hidden until the typing finishes; the animation is a safety net that reveals it after 7s even if the script fails. */
body.homepage .page.container[data-id="38022123"] [grid-col] > div {
  position: relative;
}
/* the column needs a real beige backdrop so the difference blend on the typed text has something to blend with */
body.homepage .page.container[data-id="38022123"] .syn-col {
  background: #e5e2db;
  isolation: isolate;
}
body.homepage .page.container[data-id="38022123"] .image-gallery {
  opacity: 0;
  animation: syn-type-reveal 0.01s 7s forwards;
}
body.homepage .page.container[data-id="38022123"] .image-gallery.syn-in {
  opacity: 1;
  transition: opacity 1.6s ease-in-out;
  animation: none;
}
@keyframes syn-type-reveal {
  to { opacity: 1; }
}
.syn-type {
  position: absolute;
  left: 12%;
  top: 100%;
  transform: translateY(-100%);
  z-index: 5;
  pointer-events: none;
  white-space: pre;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  /* beige + difference blend: black on the beige page, light on dark photos */
  color: #e5e2db;
  mix-blend-mode: difference;
  text-align: left;
}
.syn-type {
  height: 2.1em;
}
.syn-type.syn-out {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.syn-type .syn-cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.8em;
  margin-left: 0.05em;
  vertical-align: -0.05em;
  background: currentColor;
  animation: syn-blink 0.7s steps(1) infinite;
}
@keyframes syn-blink {
  50% { opacity: 0; }
}

/* mobile edge alignment: nav and Press content start 20px from the screen edge */
@media (max-width: 700px) {
  .page.container[data-id="38716250"] bodycopy { padding-left: 20px !important; padding-right: 20px !important; }
  .page.container[data-id="38066740"] bodycopy { padding-left: 34px !important; padding-right: 34px !important; }
}

/* Projects page, mobile: equal distance between rows of projects */
@media (max-width: 700px) {
  .projects-grid [grid-col] { height: 47.4vw !important; overflow: visible; }
  .projects-grid + br { display: none !important; }
  .projects-grid { margin-bottom: -12px !important; }
}

/* Projects page, desktop: equal distance between rows of projects */
@media (min-width: 701px) {
  .projects-grid [grid-col] { height: 20.7vw !important; overflow: visible; }
  .projects-grid + br { display: none !important; }
  .projects-grid { margin-bottom: -22px !important; }
}

/* project galleries, mobile: no touch scrub, so scrolling the page past a gallery never flips the images; they advance on their own timer only */
@media (max-width: 700px) {
  .proj-gallery .image-gallery, .proj-gallery .image-gallery * { pointer-events: none !important; }
}

/* syn-no-arrows: no prev/next arrows on any gallery (click or tap the image to advance) */
.image-gallery .image-gallery-navigation, .image-gallery .slick-arrow { display: none !important; }

/* proj-layout-desktop (desktop only): project page layout.
   - Every gallery sits 60px lower (image top about y=158 at 1440x900).
   - The English text block is centred vertically on the image (image centre about y=443). The Arabic block follows below it.
   - Each page needs its own text offset in the table below, because text length differs per page.
   NEW PROJECT PAGE: add one line to the table. offset = (image top + 285) - (English block top + English block bottom) / 2, plus the offset it already has (0 for a new page),
   measured at a 1440x900 window with no offset applied. (Image top is about 158 with the 60px shift, so the image centre is about 443.) */
@media (min-width: 701px) {
  .proj-gallery { position: relative; top: 60px; }
  .page.container[data-id="38646648"] .proj-gallery { top: 24px; } /* Saudi Architecture: its image starts 36px lower than the others, so it needs less */
  .page.container[data-id="38646726"] [grid-col]:nth-child(1), .page.container[data-id="38646726"] [grid-col]:nth-child(2) { position: relative; top: 82px; } /* Um Slaim Labs */
  .page.container[data-id="38639967"] [grid-col]:nth-child(1), .page.container[data-id="38639967"] [grid-col]:nth-child(2) { position: relative; top: 103px; } /* Shamalat */
  .page.container[data-id="38649338"] [grid-col]:nth-child(1), .page.container[data-id="38649338"] [grid-col]:nth-child(2) { position: relative; top: 114px; } /* Sokon */
  .page.container[data-id="38676844"] [grid-col]:nth-child(1), .page.container[data-id="38676844"] [grid-col]:nth-child(2) { position: relative; top: -44px; } /* Venice Biennale */
  .page.container[data-id="38676840"] [grid-col]:nth-child(1), .page.container[data-id="38676840"] [grid-col]:nth-child(2) { position: relative; top: -26px; } /* Dammam District Gates */
  .page.container[data-id="38672079"] [grid-col]:nth-child(1), .page.container[data-id="38672079"] [grid-col]:nth-child(2) { position: relative; top: -16px; } /* Nabil Fanous Exhibition */
  .page.container[data-id="38653071"] [grid-col]:nth-child(1), .page.container[data-id="38653071"] [grid-col]:nth-child(2) { position: relative; top: 67px; } /* Desert X */
  .page.container[data-id="38659851"] [grid-col]:nth-child(1), .page.container[data-id="38659851"] [grid-col]:nth-child(2) { position: relative; top: -44px; } /* Orion */
  .page.container[data-id="38672346"] [grid-col]:nth-child(1), .page.container[data-id="38672346"] [grid-col]:nth-child(2) { position: relative; top: -7px; } /* Open Segments */
  .page.container[data-id="38659866"] [grid-col]:nth-child(1), .page.container[data-id="38659866"] [grid-col]:nth-child(2) { position: relative; top: 11px; } /* Anywhere can be a place of Worship */
  .page.container[data-id="38657313"] [grid-col]:nth-child(1), .page.container[data-id="38657313"] [grid-col]:nth-child(2) { position: relative; top: -26px; } /* Abu Makhrouq */
  .page.container[data-id="38646648"] [grid-col]:nth-child(1), .page.container[data-id="38646648"] [grid-col]:nth-child(2) { position: relative; top: 13px; } /* Saudi Architecture */
  .page.container[data-id="38657302"] [grid-col]:nth-child(1), .page.container[data-id="38657302"] [grid-col]:nth-child(2) { position: relative; top: -72px; } /* Almasar */
  .page.container[data-id="38659804"] [grid-col]:nth-child(1), .page.container[data-id="38659804"] [grid-col]:nth-child(2) { position: relative; top: 95px; } /* Artist's Pavilion */
  .page.container[data-id="38659844"] [grid-col]:nth-child(1), .page.container[data-id="38659844"] [grid-col]:nth-child(2) { position: relative; top: 21px; } /* Private Villa */
  .page.container[data-id="38657476"] [grid-col]:nth-child(1), .page.container[data-id="38657476"] [grid-col]:nth-child(2) { position: relative; top: 122px; } /* Project Template (To duplicate): the example for a new page */
}


/* contact-clearance (desktop only, added 2026-11-17): the Contact card opens at the top of the page
   and grows with the screen width. On these pages the text started high enough to sit under it,
   so the whole page (text and images together) is pushed down just enough to clear the card.
   Pages: Press & Print, Venice, Dammam, Nabil Fanous, Sokon. */
@media (min-width: 701px) {
  .page.container[data-id="38066740"] .page_content { padding-top: max(0px, calc(4.2vw - 41px)); }
  .page.container[data-id="38676844"] .page_content { padding-top: max(0px, calc(4vw - 4px)); }
  .page.container[data-id="38676840"] .page_content { padding-top: max(0px, calc(4vw - 22px)); }
  .page.container[data-id="38672079"] .page_content { padding-top: max(0px, calc(4vw - 32px)); }
  .page.container[data-id="38649338"] .page_content { padding-top: max(0px, calc(4vw - 49px)); }
}
