/* 1.4.14: mobile header geometry and uncropped hero photography.
   Keep the desktop layout and existing Elementor off-canvas behavior. */

/* The hosted player must not leave an inline baseline or a black paint edge. */
body.maghsoodi-site .maghsoodi-elementor-front .elementor-element-3c520c6,
body.maghsoodi-site .maghsoodi-elementor-front .elementor-element-3c520c6 .elementor-wrapper,
body.maghsoodi-site .maghsoodi-native-front .maghsoodi-home-feature-watch .maghsoodi-home-feature-media {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  line-height: 0 !important;
  overflow: hidden !important;
}
body.maghsoodi-site .maghsoodi-elementor-front .elementor-element-3c520c6 video,
body.maghsoodi-site .maghsoodi-native-front .maghsoodi-home-feature-watch video {
  display: block !important;
  vertical-align: top;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  /* Cover the fractional player edge without changing the video's proportions. */
  clip-path: inset(0 0 1px 0);
}

@media (max-width: 1024px) {
  /* Equal side columns keep the wordmark at the page's actual center. */
  body.maghsoodi-site .elementor-location-header .elementor-element-074d1e1 {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 80px !important;
    height: auto !important;
    overflow: visible !important;
  }
  body.maghsoodi-site .elementor-location-header .elementor-element-074d1e1 > .e-con-inner,
  body.maghsoodi-site .maghsoodi-mobile-header {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr) 88px;
    align-items: center !important;
    column-gap: 4px !important;
    row-gap: 0 !important;
    direction: ltr !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 80px !important;
    height: auto !important;
    padding: 0 12px !important;
    margin: 0 !important;
  }
  body.maghsoodi-site .maghsoodi-native-header {
    height: auto;
  }
  body.maghsoodi-site .elementor-location-header .elementor-element-09e2b38,
  body.maghsoodi-site .maghsoodi-mobile-brand {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center !important;
    width: 100% !important;
    max-width: 220px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
  }
  body.maghsoodi-site .elementor-location-header .elementor-element-09e2b38 a,
  body.maghsoodi-site .elementor-location-header .elementor-element-09e2b38 img,
  body.maghsoodi-site .maghsoodi-mobile-brand .maghsoodi-logo-link,
  body.maghsoodi-site .maghsoodi-mobile-brand .maghsoodi-logo {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain;
  }
  body.maghsoodi-site .elementor-location-header .elementor-element-b851207,
  body.maghsoodi-site .maghsoodi-mobile-actions {
    position: static !important;
    inset: auto !important;
    grid-column: 1;
    grid-row: 1;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: center !important;
    direction: ltr !important;
    gap: 8px !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.maghsoodi-site .maghsoodi-mobile-actions {
    flex-direction: row-reverse !important;
  }
  body.maghsoodi-site .elementor-location-header .elementor-element-66b971a,
  body.maghsoodi-site .maghsoodi-menu-toggle {
    position: static !important;
    inset: auto !important;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center !important;
  }
  body.maghsoodi-site .elementor-location-header .elementor-element-43e7b06 {
    position: absolute !important;
    margin: 0 !important;
  }
  body.maghsoodi-site .elementor-location-header .elementor-element-b851207 > .elementor-widget-icon,
  body.maghsoodi-site .elementor-location-header .elementor-element-66b971a,
  body.maghsoodi-site .maghsoodi-mobile-header .maghsoodi-tool {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
  }
  body.maghsoodi-site .elementor-location-header :is(.elementor-element-66b971a, .elementor-element-b851207) .elementor-icon-wrapper,
  body.maghsoodi-site .elementor-location-header :is(.elementor-element-66b971a, .elementor-element-b851207) .elementor-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
  }
  body.maghsoodi-site .elementor-location-header :is(.elementor-element-66b971a, .elementor-element-b851207) .elementor-icon svg,
  body.maghsoodi-site .maghsoodi-mobile-header .maghsoodi-icon {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
  }

  /* Match the source photograph's 1672 x 941 ratio instead of a fixed offset. */
  body.maghsoodi-site .maghsoodi-elementor-front .elementor-element-f1e7177,
  body.maghsoodi-site .maghsoodi-native-front .maghsoodi-hero {
    --min-height: 0px;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 1672 / 941;
    margin: 0 !important;
    padding: 0 !important;
    background-position: center center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
  }
  body.maghsoodi-site .maghsoodi-native-front .maghsoodi-hero > img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

@media (max-width: 1024px) {
  /* One continuous row. Narrow screens can pan; no links or rates are hidden. */
  body.maghsoodi-site .elementor-location-header .mgs-topbar,
  body.maghsoodi-site .maghsoodi-goldbar {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap;
    direction: rtl;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  body.maghsoodi-site .elementor-location-header .mgs-topbar::-webkit-scrollbar,
  body.maghsoodi-site .maghsoodi-goldbar::-webkit-scrollbar {
    display: none;
  }
  body.maghsoodi-site .elementor-location-header .mgs-topbar > .e-con-inner,
  body.maghsoodi-site .maghsoodi-goldbar-inner {
    display: flex !important;
    flex-direction: row-reverse !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    direction: rtl !important;
    width: 100% !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 36px !important;
    padding: 0 10px !important;
    margin: 0 !important;
  }
  body.maghsoodi-site .elementor-location-header .mgs-topbar .elementor-element-920cab2,
  body.maghsoodi-site .elementor-location-header .mgs-topbar .elementor-widget,
  body.maghsoodi-site .maghsoodi-goldbar-price,
  body.maghsoodi-site .maghsoodi-utility {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.maghsoodi-site .elementor-location-header .mgs-topbar nav,
  body.maghsoodi-site .maghsoodi-utility {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    height: auto !important;
    white-space: nowrap;
    direction: rtl;
  }
  body.maghsoodi-site .elementor-location-header .mgs-topbar nav a,
  body.maghsoodi-site .elementor-location-header .mgs-topbar .wpg-gold-price,
  body.maghsoodi-site .maghsoodi-utility > a,
  body.maghsoodi-site .maghsoodi-goldbar-price,
  body.maghsoodi-site .maghsoodi-goldbar-price .wpg-gold-price {
    font-size: 10.5px !important;
    line-height: 26px !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }
}
