.com-content-article.item-page.single-portfolio.type-2 .title-lead,
.com-content-article.item-page.single-portfolio.type-2 .share-box {
    display: none;
}
.nav-item.hidden-title>.nav-link>span>.menu-item-title {
    display: none;
}
div.t4-offcanvas .t4-off-canvas-body .navbar .fa.nav-link span.menu-item-title { display: none; }

div.t4-offcanvas .t4-off-canvas-body li.nav-item a.hidden-this  {
    display: none;
}

/* Make the mobile off-canvas trigger a native, iPhone-friendly control. */
#triggerButton.t4-offcanvas-toggle {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    touch-action: manipulation;
    position: relative;
    z-index: 20;
}

#triggerButton.t4-offcanvas-toggle .patty,
#triggerButton.t4-offcanvas-toggle .visually-hidden,
#triggerButton.t4-offcanvas-toggle .c-button__text {
    pointer-events: none;
}

/* Reusable EasySocial primary button style outside #es scope (for JCE/content buttons). */
.btn.btn-es-primary-global,
a.btn.btn-es-primary-global,
button.btn.btn-es-primary-global {
  color: #fff !important;
  background: #4a90e2 !important;
  border-color: rgba(74, 144, 226, 0) !important;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  padding: 6px 12px;
  text-align: center;
  text-transform: uppercase;
}

.btn.btn-es-primary-global:hover,
.btn.btn-es-primary-global:focus,
.btn.btn-es-primary-global:active,
a.btn.btn-es-primary-global:hover,
a.btn.btn-es-primary-global:focus,
a.btn.btn-es-primary-global:active,
button.btn.btn-es-primary-global:hover,
button.btn.btn-es-primary-global:focus,
button.btn.btn-es-primary-global:active {
  color: #fff !important;
  background-color: #2171ce !important;
  border-color: rgba(33, 113, 206, 0) !important;
}

/* Reusable logo-gold button variant (same shape/typography as primary global). */
.btn.btn-es-logo-gold-global,
a.btn.btn-es-logo-gold-global,
button.btn.btn-es-logo-gold-global {
  color: #fff !important;
  background: #f09830 !important;
  border-color: rgba(240, 152, 48, 0) !important;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  padding: 6px 12px;
  text-align: center;
  text-transform: uppercase;
}

.btn.btn-es-logo-gold-global:hover,
.btn.btn-es-logo-gold-global:focus,
.btn.btn-es-logo-gold-global:active,
a.btn.btn-es-logo-gold-global:hover,
a.btn.btn-es-logo-gold-global:focus,
a.btn.btn-es-logo-gold-global:active,
button.btn.btn-es-logo-gold-global:hover,
button.btn.btn-es-logo-gold-global:focus,
button.btn.btn-es-logo-gold-global:active {
  color: #fff !important;
  background-color: #d98320 !important;
  border-color: rgba(217, 131, 32, 0) !important;
}

/* Professional hospital color variants (global). */
.btn.btn-es-medical-teal-global,
a.btn.btn-es-medical-teal-global,
button.btn.btn-es-medical-teal-global {
  color: #fff !important;
  background: #0f6d7a !important;
  border-color: rgba(15, 109, 122, 0) !important;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  padding: 6px 12px;
  text-align: center;
  text-transform: uppercase;
}

.btn.btn-es-medical-teal-global:hover,
.btn.btn-es-medical-teal-global:focus,
.btn.btn-es-medical-teal-global:active,
a.btn.btn-es-medical-teal-global:hover,
a.btn.btn-es-medical-teal-global:focus,
a.btn.btn-es-medical-teal-global:active,
button.btn.btn-es-medical-teal-global:hover,
button.btn.btn-es-medical-teal-global:focus,
button.btn.btn-es-medical-teal-global:active {
  color: #fff !important;
  background-color: #0b5863 !important;
  border-color: rgba(11, 88, 99, 0) !important;
}

.btn.btn-es-medical-green-global,
a.btn.btn-es-medical-green-global,
button.btn.btn-es-medical-green-global {
  color: #fff !important;
  background: #2f7d5c !important;
  border-color: rgba(47, 125, 92, 0) !important;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  padding: 6px 12px;
  text-align: center;
  text-transform: uppercase;
}

.btn.btn-es-medical-green-global:hover,
.btn.btn-es-medical-green-global:focus,
.btn.btn-es-medical-green-global:active,
a.btn.btn-es-medical-green-global:hover,
a.btn.btn-es-medical-green-global:focus,
a.btn.btn-es-medical-green-global:active,
button.btn.btn-es-medical-green-global:hover,
button.btn.btn-es-medical-green-global:focus,
button.btn.btn-es-medical-green-global:active {
  color: #fff !important;
  background-color: #25684c !important;
  border-color: rgba(37, 104, 76, 0) !important;
}

.btn.btn-es-medical-navy-global,
a.btn.btn-es-medical-navy-global,
button.btn.btn-es-medical-navy-global {
  color: #fff !important;
  background: #1f4e79 !important;
  border-color: rgba(31, 78, 121, 0) !important;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  padding: 6px 12px;
  text-align: center;
  text-transform: uppercase;
}

.btn.btn-es-medical-navy-global:hover,
.btn.btn-es-medical-navy-global:focus,
.btn.btn-es-medical-navy-global:active,
a.btn.btn-es-medical-navy-global:hover,
a.btn.btn-es-medical-navy-global:focus,
a.btn.btn-es-medical-navy-global:active,
button.btn.btn-es-medical-navy-global:hover,
button.btn.btn-es-medical-navy-global:focus,
button.btn.btn-es-medical-navy-global:active {
  color: #fff !important;
  background-color: #173b5c !important;
  border-color: rgba(23, 59, 92, 0) !important;
}

.btn.btn-es-medical-slate-global,
a.btn.btn-es-medical-slate-global,
button.btn.btn-es-medical-slate-global {
  color: #fff !important;
  background: #4b637a !important;
  border-color: rgba(75, 99, 122, 0) !important;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  padding: 6px 12px;
  text-align: center;
  text-transform: uppercase;
}

.btn.btn-es-medical-slate-global:hover,
.btn.btn-es-medical-slate-global:focus,
.btn.btn-es-medical-slate-global:active,
a.btn.btn-es-medical-slate-global:hover,
a.btn.btn-es-medical-slate-global:focus,
a.btn.btn-es-medical-slate-global:active,
button.btn.btn-es-medical-slate-global:hover,
button.btn.btn-es-medical-slate-global:focus,
button.btn.btn-es-medical-slate-global:active {
  color: #fff !important;
  background-color: #3d5164 !important;
  border-color: rgba(61, 81, 100, 0) !important;
}

/* Make securimage captcha blocks responsive and prevent mobile overflow. */
.captcha-container {
  max-width: 100% !important;
  overflow-x: hidden;
}

.captcha-container[style] {
  min-width: 0 !important;
}

.captcha-container a[href="#captcha"],
.captcha-container .img-securimage-captcha,
img.img-securimage-captcha {
  display: block;
  max-width: 100% !important;
}

.captcha-container .img-securimage-captcha,
img.img-securimage-captcha {
  width: auto !important;
  height: auto !important;
}

@media (max-width: 767.98px) {
  .captcha-container,
  .captcha-container[style] {
    width: 100% !important;
    min-width: 0 !important;
  }

  .captcha-textbox-container {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .captcha-textbox-container label {
    display: block;
  }

  .captcha-textbox-container .captchacode,
  .captcha-textbox-container input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* Keep offcanvas Contact Us CTA visually aligned with the EasySocial Login button. */
div.t4-offcanvas .t4-off-canvas-body #Mod633 .custom p {
  margin: 0;
}

div.t4-offcanvas .t4-off-canvas-body a.btn.btn-outline-dark[href*="request-a-consultation"] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background-color: #4a90e2;
  border: 1px solid transparent;
  border-radius: 6px;
}

div.t4-offcanvas .t4-off-canvas-body a.btn.btn-outline-dark[href*="request-a-consultation"]:hover,
div.t4-offcanvas .t4-off-canvas-body a.btn.btn-outline-dark[href*="request-a-consultation"]:focus,
div.t4-offcanvas .t4-off-canvas-body a.btn.btn-outline-dark[href*="request-a-consultation"]:active {
  color: #fff;
  background-color: #4a90e2;
  border-color: transparent;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Aspect ratio (height:width) of 16:9 */
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.theme-dark .readmore .btn {
  border: 1px solid rgba(255,255,255,.5);
  color: rgba(255,255,255,.5);
}
.theme-dark .readmore .btn:hover,
.theme-dark .readmore .btn:focus {
	color: #fff;
}

.t4-navbar {
  display: flex;
  flex-wrap: nowrap; /* Ensures menu stays on one line */
  justify-content: space-between; /* Distributes menu items evenly */
}

.t4-navbar a {
  flex-shrink: 1; /* Allows menu items to shrink if necessary */
  white-space: nowrap; /* Prevents items from wrapping */
}

/* Keep the main navigation layered above sticky patient metadata panels */
#t4-header,
#t4-header .header-block.header-default {
  z-index: 4000 !important;
}

/* Enforce Sticky Top for header/mainnav on mobile and desktop when enabled in T4 row settings. */
#t4-header.t4-sticky {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
}

#t4-header .t4-navbar {
  position: relative;
  z-index: 4010 !important;
}

#t4-header .dropdown-menu {
  z-index: 4050 !important;
}

/* Keep patient phone placeholders clear of the intl-tel-input country selector. */
#ed .ed-patient-meta-edit [data-ed-patient-phone] .iti input.o-form-control,
#ed .ed-patient-meta-edit [data-ed-patient-phone] .iti input.iti__tel-input,
.ed-patient-meta-edit [data-ed-patient-phone] .iti input.o-form-control,
.ed-patient-meta-edit [data-ed-patient-phone] .iti input.iti__tel-input {
  padding-left: 104px;
  padding-right: 10px;
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext !important;
}

html[dir="rtl"] #ed .ed-patient-meta-edit [data-ed-patient-phone] .iti input.o-form-control,
html[dir="rtl"] #ed .ed-patient-meta-edit [data-ed-patient-phone] .iti input.iti__tel-input,
html[dir="rtl"] .ed-patient-meta-edit [data-ed-patient-phone] .iti input.o-form-control,
html[dir="rtl"] .ed-patient-meta-edit [data-ed-patient-phone] .iti input.iti__tel-input {
  padding-right: 104px;
  padding-left: 10px;
}

/* Keep the native EasySocial photo popup above the sticky main menu while open. */
body.is-es-photo-popup #es.es-photo-popup,
body.is-es-photo-popup [data-photo-popup] {
  z-index: 4100 !important;
}

/* In RTL photo popups, keep the comments heading in normal flow so it doesn't get covered by the form. */
html[dir="rtl"] body.is-es-photo-popup #es.es-photo-popup .es-comments-control__load,
html[dir="rtl"] body.is-es-photo-popup [data-photo-popup] .es-comments-control__load {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 4px;
  margin: 0 0 8px;
  padding: 8px;
}

html[dir="rtl"] body.is-es-photo-popup #es.es-photo-popup .es-comments-control__stats,
html[dir="rtl"] body.is-es-photo-popup [data-photo-popup] .es-comments-control__stats {
  position: static;
  text-align: right;
}

/* Force EasyDiscuss to respect RTL directionality */
html[dir="rtl"] #ed {
  direction: rtl;
  text-align: right;
}

/* Ensure EasyDiscuss dropdowns render correctly in RTL layouts */
html[dir="rtl"] #ed .o-form-select {
  padding-right: calc(var(--si-root-font-size) * 0.75);
  padding-left: calc(var(--si-root-font-size) * 1.75);
  background-position: left 0.75em center;
  background-origin: padding-box;
  direction: rtl;
  text-align: right;
  text-align-last: right;
}

html[dir="rtl"] #ed .o-form-select option {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] #ed .o-form-select[multiple],
html[dir="rtl"] #ed .o-form-select[size]:not([size="1"]) {
  padding-left: calc(var(--si-root-font-size) * 0.75);
  padding-right: calc(var(--si-root-font-size) * 0.75);
}

/* Ensure EasySocial videos render inside responsive containers (iOS Safari) */
.video-container .es-video-player,
.video-container .es-video-player .video-js,
.video-container .es-video-player video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-container .es-video-player {
  display: block;
}

/* Email parser content: preserve original email HTML layout and remove injected styling. */
#ed .ed-email-content {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  line-height: normal;
  font-size: inherit;
  color: inherit;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Strip template-injected borders/outline/shadows while leaving inline email styles intact. */
#ed .ed-email-content,
#ed .ed-email-content * {
  outline: 0;
  box-shadow: none;
}

#ed .ed-email-content table,
#ed .ed-email-content td,
#ed .ed-email-content th {
  border: 0;
}

/* Remove editor-styled blockquote chrome for forwarded emails */
#ed .ed-email-content blockquote,
#ed .ed-email-content .ed-quotes {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

#ed .ed-email-content blockquote:before,
#ed .ed-email-content .ed-quotes:before {
  display: none;
  content: none;
}

/* Force legacy email-markup blocks to fit on phones without clipping/cropping. */
@media (max-width: 767.98px) {
  #ed .ed-email-content,
  #ed .ed-email-content * {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  #ed .ed-email-content table,
  #ed .ed-email-content .wrapper-table,
  #ed .ed-email-content .tolkien-column,
  #ed .ed-email-content [style*="min-width"],
  #ed .ed-email-content [style*="calc("] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
  }

  #ed .ed-email-content .tolkien-column,
  #ed .ed-email-content .cell,
  #ed .ed-email-content [style*="min-width"],
  #ed .ed-email-content [style*="calc("] {
    display: block !important;
  }

  #ed .ed-email-content td,
  #ed .ed-email-content th,
  #ed .ed-email-content .cell {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
  }

  #ed .ed-email-content img,
  #ed .ed-email-content iframe,
  #ed .ed-email-content video,
  #ed .ed-email-content embed,
  #ed .ed-email-content object {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* EasyDiscuss mobile action dropdown: keep items tappable on iOS */
@media (max-width: 991.98px) {
  .ed-entry-actions-group .o-dropdown-menu,
  .ed-entry-actions-group .dropdown-menu {
    z-index: 1200;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .ed-entry-actions-group .o-dropdown-menu .o-dropdown__item,
  .ed-entry-actions-group .dropdown-menu .o-dropdown__item {
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-touch-callout: none;
  }
}

/* EasyDiscuss post body responsiveness: prevent mobile overflow in rich content. */
#ed [data-ed-post-body],
#ed [data-ed-post-content] {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#ed [data-ed-post-body] img,
#ed [data-ed-post-content] img,
#ed [data-ed-post-body] svg,
#ed [data-ed-post-content] svg,
#ed [data-ed-post-body] canvas,
#ed [data-ed-post-content] canvas {
  max-width: 100% !important;
  height: auto !important;
}

#ed [data-ed-post-body] iframe,
#ed [data-ed-post-content] iframe,
#ed [data-ed-post-body] video,
#ed [data-ed-post-content] video,
#ed [data-ed-post-body] embed,
#ed [data-ed-post-content] embed,
#ed [data-ed-post-body] object,
#ed [data-ed-post-content] object {
  max-width: 100% !important;
}

#ed [data-ed-post-body] table,
#ed [data-ed-post-content] table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
}

#ed [data-ed-post-body] th,
#ed [data-ed-post-body] td,
#ed [data-ed-post-content] th,
#ed [data-ed-post-content] td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#ed [data-ed-post-body] pre,
#ed [data-ed-post-content] pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 767.98px) {
  #ed [data-ed-post-wrapper],
  #ed .ed-entry,
  #ed .o-card,
  #ed .o-card__body,
  #ed [data-ed-post-body],
  #ed [data-ed-post-content] {
    max-width: 100%;
    min-width: 0;
  }

  #ed [data-ed-post-body] iframe,
  #ed [data-ed-post-content] iframe,
  #ed [data-ed-post-body] video,
  #ed [data-ed-post-content] video,
  #ed [data-ed-post-body] embed,
  #ed [data-ed-post-content] embed,
  #ed [data-ed-post-body] object,
  #ed [data-ed-post-content] object {
    width: 100% !important;
    height: auto !important;
  }
}

/* Lightweight replacements for community widgets on non-community landing pages. */
.t4-offcanvas #es.mod-es-login {
  font-size: 14px;
  line-height: 1.45;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.t4-offcanvas #es.mod-es-login *,
.t4-offcanvas #es.mod-es-login *::before,
.t4-offcanvas #es.mod-es-login *::after {
  box-sizing: border-box;
}

.t4-offcanvas #es.mod-es-login .es-form-login {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.t4-offcanvas #es.mod-es-login .o-form-group {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 12px;
}

.t4-offcanvas #es.mod-es-login .o-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.t4-offcanvas #es.mod-es-login .o-input-group__addon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  min-width: 42px;
  border: 1px solid #d8dee7;
  border-right: 0;
  background: #f6f8fb;
  color: #4b637a;
}

.t4-offcanvas #es.mod-es-login .o-form-control {
  flex: 1 1 0;
  display: block;
  min-width: 0;
  width: auto;
  max-width: 100%;
  border: 1px solid #d8dee7;
  border-radius: 0 4px 4px 0;
  padding: 9px 10px;
  font: inherit;
}

.t4-offcanvas #es.mod-es-login .o-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.t4-offcanvas #es.mod-es-login .btn-es-primary {
  display: block;
  width: 100%;
  border: 0 !important;
  border-radius: 6px;
  padding: 9px 12px;
  background: #4a90e2 !important;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
}

.t4-offcanvas #es.mod-es-login .btn-es-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid #242424 !important;
  border-radius: 6px;
  padding: 9px 12px;
  background: #fff !important;
  color: #242424 !important;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
}

.t4-offcanvas #es.mod-es-login .btn-es-default:hover,
.t4-offcanvas #es.mod-es-login .btn-es-default:focus,
.t4-offcanvas #es.mod-es-login .btn-es-default:active {
  background: #f7f7f7 !important;
  border-color: #111 !important;
  color: #111 !important;
}

.t4-offcanvas #es.mod-es-login .btn-es-default .fa {
  color: currentColor !important;
}

.t4-offcanvas #es.mod-es-login .o-nav {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.t4-offcanvas #es.mod-es-login .o-nav li + li {
  margin-top: 6px;
}

.ed-mod--ask .ed-mod-card {
  width: 100%;
  max-width: none;
  margin: 0;
}

.ed-mod--ask .ed-mod-card__body {
  padding: 22px 16px;
  text-align: center;
}

.ed-mod--ask .ed-mod-ask__status {
  margin-bottom: 10px;
  font-weight: 700;
}

.ed-mod--ask .ed-mod-ask__support-msg,
.ed-mod--ask .ed-mod-ask__time-comparison {
  margin-top: 12px;
}

#ed.ed-mod--ask .o-grid,
#ed.ed-mod--ask [class~="lg:o-grid"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ed-mod--ask .t-bg--100 {
  background: #f6f8fb;
}

.ed-mod--ask .t-rounded--lg {
  border-radius: 6px;
}

.ed-mod--ask .t-px--lg {
  padding-left: 12px;
  padding-right: 12px;
}

.ed-mod--ask .t-py--xs {
  padding-top: 8px;
  padding-bottom: 8px;
}

.ed-mod--ask .t-font-weight--bold {
  font-weight: 700;
}

.ed-mod--ask .ed-mod-ask__action {
  margin-top: 16px;
}

.ed-mod--ask .o-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  padding: 8px 16px;
  background: #4a90e2;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
}

.img-grayscale img {
  filter: grayscale(1);
  opacity: .68;
  transition: opacity .2s ease, filter .2s ease;
}

.img-grayscale .client-item:hover img,
.img-grayscale .client-item:focus-within img,
.img-grayscale .client-item.is-active img {
  filter: none;
  opacity: 1;
}

@media (max-width: 767.98px) {
  #ed.ed-mod--ask .o-grid,
  #ed.ed-mod--ask [class~="lg:o-grid"] {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .img-grayscale img {
    transition: none;
  }
}

/* Keep EasySocial photo/album location suggestions above the Leaflet map. */
#es .es-photo-location-form,
#es .es-album-location-form {
  overflow: visible;
}

#es .es-photo-location-form .es-locations,
#es .es-album-location-form .es-locations {
  position: relative;
  isolation: isolate;
}

#es .es-photo-location-form .es-location-map,
#es .es-album-location-form .es-location-map {
  position: relative;
  z-index: 1;
}

#es .es-photo-location-form .es-location-textbox,
#es .es-album-location-form .es-location-textbox {
  position: relative;
  z-index: 3;
}

#es .es-photo-location-form .es-location-autocomplete,
#es .es-album-location-form .es-location-autocomplete {
  z-index: 4;
}

#es .es-photo-location-form .es-location-buttons,
#es .es-album-location-form .es-location-buttons {
  z-index: 5;
}

/* Keep EasySocial photo/album date dropdowns inside the mobile popup viewport. */
@media (max-width: 767.98px) {
  #es .es-photo-meta-field .es-photo-date .es-photo-date-form,
  #es .es-album-meta-field .es-album-date .es-album-date-form {
    left: 0;
    right: auto;
    min-width: 0;
    max-width: calc(100vw - 32px);
    width: auto;
    box-sizing: border-box;
  }

  #es .es-photo-date-form [data-date-form],
  #es .es-album-date-form [data-date-form] {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    width: 235px;
    width: min(235px, calc(100vw - 44px));
    max-width: 100%;
  }

  #es .es-photo-date-form [data-date-day],
  #es .es-album-date-form [data-date-day],
  #es .es-photo-date-form [data-date-year],
  #es .es-album-date-form [data-date-year] {
    flex: 0 0 50px;
  }

  #es .es-photo-date-form [data-date-month],
  #es .es-album-date-form [data-date-month] {
    flex: 1 1 120px;
    min-width: 0;
  }
}

/* Show original-password validation failures beside the field that failed. */
#es .o-form-group.has-error [data-field-joomla_password] [data-field-password-orig],
#es [data-field-joomla_password] [data-field-password-orig].is-invalid,
#es [data-field-joomla_password] [data-original-password-row].has-error [data-field-password-orig],
#es [data-field-item="joomla_password"] input[name$="-orig"].is-invalid,
#es input.peace-original-password-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.16);
}

#es [data-field-joomla_password] [data-original-password-error],
#es [data-field-item="joomla_password"] [data-original-password-error] {
  margin-top: 6px;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.35;
}

/* Keep the off-canvas logo proportional when intrinsic image dimensions exist. */
div.t4-offcanvas .t4-off-canvas-header .logo-img {
  width: auto;
}
