@font-face { font-family: "Beiruti"; src: url("../fonts/beiruti/Beiruti-Variable.ttf") format("truetype"); font-style: normal; font-weight: 200 900; font-display: swap; }
/* Branding, category icons, and bilingual presentation only.
   Portfolio and gallery geometry remains in the original Canvas theme. */
body { opacity: 1; font-family: Arial, sans-serif; box-sizing: border-box; }
[hidden] { display: none !important; }
/* Keep detail thumbnails within the slideshow edges using Canvas's original gutter. */
.project-thumbnails { margin-top: 30px; }
.project-thumbnails .portwrap { display: flex; flex-wrap: wrap; }
.page .project-thumbnails .portwrap .portfolio_item .item { padding-left: 50px; }
.project-thumbnails .portfolio_item { width: 25%; margin-left: 0; }
body[data-page="detail"] .nivoSlider img { aspect-ratio: 1170 / 650; object-fit: contain; background: #f3f3f3; }
#project-slider:focus { outline: none; }
body[data-page="detail"] .nivo-directionNav a { width: 40px; height: 80px; margin-top: -40px; background: none; text-indent: 0; color: #000; }
body[data-page="detail"] .nivo-directionNav svg { display: block; width: 40px; height: 80px; overflow: visible; }
body[data-page="detail"] .nivo-directionNav path { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767px) { .project-thumbnails .portfolio_item { width: 50%; } }
@media (max-width: 767px) {
  body[data-page="detail"] #project-slider { display: none; }
  body[data-page="detail"] .project-thumbnails { margin-top: 0; }
  body[data-page="detail"] .project-thumbnails a { cursor: default; }
  body[data-page="detail"] .project-thumbnails a:hover,
  body[data-page="detail"] .project-thumbnails .featured_item_fadder:hover { opacity: 1 !important; }
}
/* Preserve the Canvas navbar; display the supplied logo without a background. */
.logo .non_retina_image, .logo .retina_image { width: 102px; height: auto; background: transparent; padding: 0; }
@media (min-width: 768px) { .logo .non_retina_image, .logo .retina_image { width: 130px; } }
.menu_toggler:focus-visible { outline: 2px solid #a17443; outline-offset: 5px; }
a:focus-visible, button:focus-visible { outline: 2px solid #a17443; outline-offset: 4px; }
/* Match Canvas image edges, including its negative gutter and Isotope column rounding. */
.category-icons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 30px 6px 30px -14px; }
.category-icons a { display: flex; align-items: center; flex-direction: column; gap: 14px; padding: 24px 8px; border: 1px solid #eee; color: #333; }
.category-icons a:hover { background: #f6f3ef; }
.category-icons img { width: 64px; height: 64px; object-fit: contain; }
/* Retain the template menu while centering its contents in a compact header. */
.site_wrapper header .container.fw .fw_ip { padding-top: 10px; padding-bottom: 10px !important; }
.site_wrapper header .logo_links_cont_hor { float: none; display: flex; align-items: center; justify-content: space-between; }
.site_wrapper header .logo_links_cont_hor > .fr { line-height: 0; margin-top: 0; }
.logo { display: block; line-height: 0; }
.logo img { margin-top: 0; }
.horizontal_menu .menu { display: flex; align-items: center; }
.horizontal_menu ul li a { padding-top: 0; padding-bottom: 0; }
.phone_menu { line-height: 0; }
@media (max-width: 767px) {
  /* Canvas increases item padding to 50px on phones. */
  .category-icons { margin-left: -1px; margin-right: 1px; }
}
@media (min-width: 980px) { .category-icons { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
[dir="rtl"] .optionset li { float: right; }
/* Legacy sliders and Isotope position images using left coordinates. Text remains RTL. */
[dir="rtl"] .portfolio_block, [dir="rtl"] .sorting_block, [dir="rtl"] .nivoSlider { direction: ltr; }
[dir="rtl"] .item_info { direction: rtl; text-align: right; }
/* Canvas's negative grid gutters are empty space; contain them for RTL scrolling. */
[dir="rtl"] .wrapper { overflow: clip; }
/* Category filter labels must stay separated when translated or wrapped. */
.page ul.optionset { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
.page ul.optionset li { float: none; margin: 0; padding: 0; }

[dir="rtl"] .logo_links_cont_hor > .fl { float: right; }
[dir="rtl"] .logo_links_cont_hor > .fr { float: left; }
[dir="rtl"] .horizontal_menu ul li { margin-right: 0; margin-left: 27px; }
[dir="rtl"] .horizontal_menu ul li:last-child { margin-left: 0; }
/* One shared box, matching the approved slideshow width at each Canvas breakpoint. */
:root { --site-box-width: 948px; --site-box-offset: -10px; }
body { padding-left: 0 !important; padding-right: 0 !important; }
.site_wrapper { width: var(--site-box-width) !important; margin: 0 auto !important; position: relative; left: var(--site-box-offset); }
footer { width: 100% !important; margin: 0 !important; position: relative; left: 0; }
.site_wrapper .container { width: 100%; box-sizing: border-box; }
.site_wrapper header .container.fw .fw_ip { padding-left: 0; padding-right: 0; }
.site_wrapper header .row { margin-left: 0; }
.site_wrapper header .logo_links_cont_hor { width: 100%; margin-left: 0; }
.home-hero .concept, .variation .concept { margin-left: 0; margin-right: 0; }
.category-icons { margin-left: 0; margin-right: 0; }
.page .portfolio_block .portwrap .portfolio_item .item { padding-left: 50px; }
.page .portfolio_block .portfolio_item { margin-left: 0; }
footer .ip { padding-left: 0; padding-right: 0; text-align: center; }
@media (min-width: 1270px) { :root { --site-box-width: 1178px; } }
@media (min-width: 768px) and (max-width: 979px) { :root { --site-box-width: 732px; } }
@media (max-width: 767px) {
  :root { --site-box-width: calc(100% - 70px); --site-box-offset: -1px; }
  .category-icons { margin-left: 0; margin-right: 0; }
}
/* Push the footer to the viewport bottom without covering longer page content. */
body { display: flex; flex-direction: column; height: auto; min-height: 100vh; min-height: 100dvh; }
.site_wrapper { flex: 1 0 auto; display: flex; flex-direction: column; }
.site_wrapper > header { flex-shrink: 0; }
.site_wrapper > main { flex: 1 0 auto; }
footer { flex-shrink: 0; }
@media (max-width: 767px) {
  .menu_mobile, .menu_mobile .gt3_menu { background: #f5f2ed; }
  .menu_mobile .gt3_menu .menu > li a { border-bottom-color: #ded9d0; color: #393732; }
  .menu_mobile .gt3_menu .menu li span { color: #393732; }
  .menu_mobile .gt3_menu .menu > li:hover a,
  .menu_mobile .gt3_menu .menu > li a:focus-visible { background: #eae4da; }
  .menu_mobile .gt3_menu .menu > li:hover a > span,
  .menu_mobile .gt3_menu .menu > li a:focus-visible > span,
  .menu_mobile .gt3_menu .menu > li.current-menu-item > a > span { color: #8a603a; }
}
/* Long, fine menu strokes and a full-screen, quiet navigation dialog. */
.phone_menu .menu_toggler { width: 50px; height: 44px; margin: 0; padding: 0; border: 0; background: none; color: #393732; animation: none; }
.menu_toggler svg { display: block; width: 50px; height: 24px; }
[lang="ar"] .menu_toggler svg { direction: ltr; transform: scaleX(-1); }
.menu_toggler path, .menu-close path { fill: none; stroke: currentColor; stroke-width: 1.2; }
.menu_mobile a[lang="ar"] { font-family: "Beiruti", Tahoma, Arial, sans-serif; }
@media (max-width: 767px) {
  body.gt3_menu_active { overflow: hidden !important; left: 0; }
  .menu_mobile { position: fixed; inset: 0; z-index: 40000; width: 100%; height: 100vh; height: 100dvh; box-sizing: border-box; padding: 90px 35px; display: flex; align-items: center; justify-content: center; overflow-y: auto; background: #f5f2ed; }
  .menu_mobile .gt3_menu { position: static; width: 100%; height: auto; background: transparent; }
  .menu_mobile .menu_scroll { height: auto; }
  .menu_mobile .menu { margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .menu_mobile .gt3_menu .menu > li { margin: 0; width: 100%; text-align: center; }
  .menu_mobile .gt3_menu .menu > li a { padding: 10px 0; border: 0; }
  .menu_mobile .gt3_menu .menu li span { font-size: clamp(32px, 9vw, 42px); line-height: 1.2; font-weight: 400; letter-spacing: -1px; text-transform: none; }
  .menu_mobile .gt3_menu .menu > li:hover a, .menu_mobile .gt3_menu .menu > li a:focus-visible { background: transparent; }
  .menu-close { position: absolute; top: 16px; right: 34px; padding: 0; width: 50px; height: 50px; color: #393732; border: 0; background: none; cursor: pointer; }
  .menu-close svg { width: 50px; height: 50px; }
  [lang="ar"] .menu-close { right: auto; left: 34px; }
  [lang="ar"] .menu_mobile .gt3_menu .menu li span { letter-spacing: 0; font-size: 42px; }
}
/* Paired hairlines frame the restrained album headings. */
.album-page-heading { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 32px 0 48px; font-size: 26px; line-height: 1.4; font-weight: 300; letter-spacing: 3px; text-transform: none; }
.album-page-heading::before, .album-page-heading::after { content: ""; flex: 0 1 160px; height: 5px; border-top: 1px solid #ded9d1; border-bottom: 1px solid #ded9d1; }
.album-page-heading span { flex-shrink: 0; }
[lang="ar"] .album-page-heading { letter-spacing: 0; font-weight: 300; font-size: 32px; }
@media (max-width: 767px) {
  .album-page-heading { gap: 16px; margin: 26px 0 35px; font-size: 21px; letter-spacing: 2px; }
  .album-page-heading::before, .album-page-heading::after { flex-basis: 64px; }
  [lang="ar"] .album-page-heading { font-size: 28px; }
}

/* Minimal globe dropdown and a separate mobile language link. */
header .menu > li.language-selector { position: relative; }
.language-dropdown summary { display: flex; align-items: center; justify-content: center; padding: 10px 0 10px 20px; list-style: none; cursor: pointer; color: #393732; }
.language-dropdown summary::-webkit-details-marker { display: none; }
.language-dropdown summary svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1; }
.language-dropdown summary:focus-visible { outline: 1px solid #8b8882; outline-offset: 4px; }
header .language-options { position: absolute; z-index: 1000; right: 0; top: calc(100% + 12px); min-width: 140px; padding: 10px; background: #fff; box-shadow: 0 5px 24px #0000000d; }
header .menu .language-options > a { display: block; box-sizing: border-box; width: 100%; margin: 0; padding: 10px 14px; border: 0; background: none; text-align: start; font: inherit; color: #393732; text-decoration: none; }
header .menu .language-options span { font-size: 14px; font-weight: 400; letter-spacing: 0; color: inherit; text-transform: none; }
header .menu .language-options > a:hover, header .menu .language-options > a:focus-visible { background: transparent; color: #a17443; }
header .language-options [lang="ar"] { font-family: 'Beiruti', sans-serif; font-size: 20px; direction: rtl; }
header .language-options [lang="ar"] span { font-size: 20px; }
[lang="ar"] .language-dropdown summary { padding-left: 0; padding-right: 20px; }
[lang="ar"] header .language-options { right: auto; left: 0; }
@media (max-width: 767px) {
  header .menu_mobile .menu > li.language-selector { width: auto; min-width: 140px; margin-top: 16px; padding-top: 26px; border-top: 1px solid #ded9d1; }
  header .menu_mobile .menu > li.language-selector > a { padding: 8px 16px; }
  header .menu_mobile .menu > li.language-selector span { font-size: 22px; letter-spacing: 0; }
  header .menu_mobile .menu > li.language-selector [lang="ar"] { font-family: 'Beiruti', sans-serif; }
  header .menu_mobile .menu > li.language-selector [lang="ar"] span { font-size: 28px; }
}

/* Apply the local Arabic font to text, including Arabic labels on English pages.
   Icon elements retain their dedicated icon font. */
:lang(ar):is(body, h1, h2, h3, h4, h5, h6, p, a, span, button, input, textarea, select, label, summary, li, dt, dd, blockquote, figcaption, b, strong, em, small, bdi, footer) { font-family: "Beiruti", Tahoma, Arial, sans-serif !important; }

/* Keep category album names in document metadata, without a visible heading. */
body[data-album="category"] .project-description h1 { display: none; }
@media (max-width: 767px) {
  body[data-page="projects"] .item_info,
  body[data-page="categories"] .item_info { text-align: center; }
  body[data-page="projects"] .item_info h5,
  body[data-page="categories"] .item_info h5 { font-size: 20px; line-height: 1.4; }
  html[lang="ar"] body[data-page="projects"] .item_info h5,
  html[lang="ar"] body[data-page="categories"] .item_info h5 { font-size: 26px; }
}
