/* Law firm styles moved from the shared app stylesheet. */
.lawfirm-us-map-shell {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.lawfirm-us-map-placeholder {
  position: absolute;
  inset: 0;
  width: 96%;
  height: 96%;
  z-index: 2;
  margin: auto;
  opacity: 1;
  object-fit: contain;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#lawfirm-us-map-shell > #map {
  min-height: 555px;
}

@supports (aspect-ratio: 900 / 555) {
  #lawfirm-us-map-shell > #map {
    min-height: 0;
    aspect-ratio: 900 / 555;
  }
}

.lawfirm-us-map-shell.is-map-loaded .lawfirm-us-map-placeholder {
  opacity: 0;
}

.badgeSection.badge-law-firm-section .badge-container {
  display: inline-block;
  height: auto;
  min-height: 0;
}

/* law firm profile */
.law-firm-h1 {
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--text-color);
  font-family: var(--serif-font);

  @media only screen and (max-width: 640px) {
    font-size: 1.75rem;
  }
}

.law-firm-video-title {
  color: var(--text-color);
  font-weight: 700;
}

.law-firm-featured-video-frame {
  display: block;
  max-width: 560px;
  height: 315px;
  width: 100%;
}

/* law firm people row */
.law-firm-people-row {
  display: grid;
  column-gap: 1rem;
  margin-top: -1rem;
  grid-template-columns: repeat(var(--people-cols, 2), 1fr);

  @media only screen and (max-width: 640px) {
    column-gap: 0.5rem;
  }
}

.law-firm-listing-container .law-firm-people-row {
  --photo-size: 108px;

  @media only screen and (max-width: 1200px) {
    --photo-size: 72px;
  }

  @media only screen and (max-width: 767px) {
    --photo-size: 64px;
  }

  @media only screen and (max-width: 640px) {
    --photo-size: 48px;
  }

  @media only screen and (min-width: 641px) {
    --people-cols: 3;
  }
}

.law-firm-listing-container .law-firm-people-row .law-firm-people-column {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  @media only screen and (min-width: 641px) {
    &:nth-child(4) {
      display: none;
    }
  }
}

.law-firm-people-row .law-firm-people-column {
  position: relative;
  margin-top: 1rem;
}

.law-firm-people-row.law-firm-people-slick .law-firm-people-column {
  margin-top: 0;
  position: initial;
  justify-content: left;
}

.law-firm-people-row.law-firm-people-slick .slick-track {
  position: initial;
}

.law-firm-people-row .law-firm-people-column .law-firm-people-link {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: nowrap;
  color: var(--text-color);
}

.law-firm-people-row .law-firm-people-column a.law-firm-people-link:hover {
  text-decoration: none;

  .law-firm-people-link-name {
    text-decoration: underline;
    color: var(--red);
  }
}

.law-firm-people-row .law-firm-people-column .law-firm-people-link .law-firm-people-link-img-wrapper {
  margin-right: 0.875rem;

  @media only screen and (max-width: 640px) {
    margin-right: 0.5rem;
  }
}

.law-firm-people-row .law-firm-people-column .law-firm-people-link .law-firm-people-link-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--photo-size, 114px);
  height: var(--photo-size, 114px);
  max-width: var(--photo-size, 114px);
  max-height: var(--photo-size, 114px);
  border: 5px solid #F7F0D4;
  border-radius: 50%;
  overflow: hidden;

  @media only screen and (max-width: 640px) {
    border-width: 3px;
  }
}

.law-firm-people-row .law-firm-people-column .law-firm-people-link .law-firm-people-link-img-container img {
  width: 100%;
}

.law-firm-people-row .law-firm-people-column .law-firm-people-link .law-firm-people-link-content {
  margin-top: 0.5rem;
  // width: 60%;

  @media only screen and (max-width: 640px) {
    margin-top: 0;
  }
}

.law-firm-people-row .law-firm-people-column .law-firm-people-link .law-firm-people-link-content .law-firm-people-link-name {
  font-weight: 700;
}

.law-firm-people-row .law-firm-people-column .law-firm-people-link .law-firm-people-link-content .h-divider {
  width: 90%;
  margin: .5em 0;
  height: 1px;
  background: var(--border-color);
  display: block;
}

.law-firm-people-row .law-firm-people-column .law-firm-people-link .law-firm-people-link-content .law-firm-people-link-specialist {
  font-weight: 700;
}

.law-firm-people-row .law-firm-people-column .law-firm-people-link .law-firm-people-link-content .law-firm-people-link-profile {
  color: blue;
  margin-top: .3em;
  display: block;
}

.law-firm-people-row .law-firm-people-column .law-firm-people-link:hover .law-firm-people-link-content .law-firm-people-link-profile {
  text-decoration: underline;
}

@media(min-width: 1024px) {
  .firm-result-img {
    max-height: 180px;
  }

  .law-firm-tooltip .badgeHover-info .badgeHover-name {
    font-size: 1em;
  }
}

@media(max-width: 1324px) {
  .law-firm-people-row .law-firm-people-column .law-firm-people-link {
    font-size: 0.9em;
  }
}

@media(max-width: 1128px) {
  .law-firm-people-row .law-firm-people-column .law-firm-people-link {
    font-size: 0.88em;
  }
}

@media(max-width: 1024px) {
  .law-firm-people-row .law-firm-people-column {
    width: 100%;
  }
}

@media only screen and (max-width: 640px) {
  .law-firm-people-row .law-firm-people-column {
    --photo-size: 64px;
  }
}

/* law firm search results */
.law-firm-listing .fa-ul > li > .fa-li > .fa {
  font-size: 1.3em;
}

.law-firm-listing .fa-ul > li > * {
  display: inline-block;
  vertical-align: center;
}

.law-firm-listing .fa-ul > li > .fa-li > .fa {
  font-size: 1.3em;
}

/* law firm specialty certifications */
.law-firm-certification-row {
  margin-top: 1rem;
  padding-bottom: 0;
  margin-bottom: 1rem;
  margin-left: 0 !important;
  position: relative;

  &:last-child {
    margin-bottom: 0;
  }

  &::before {
    position: absolute;
    left: 0;
    top: 0;
    // margin-top: -1.25rem;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
  }

  & + .law-firm-certification-row {
    padding-top: 1rem;

    &::before {
      content: '';
    }
  }
}

.law-firm-certification-row .law-firm-certification-col-title {
  color: var(--text-color);
  font-weight: 700;
  font-size: 1em;
  // line-height: 1.2em;
  padding: 0;
  margin: 0;
}

.law-firm-certification-row .law-firm-certification-col-img {
  max-width: 25%;
}

.rblock-container .pageSection:first-child {
  margin-top: 0;
}

.law-firm-certification-row .law-firm-certification-col-ppl-col {
  width: 33.33%;
}

.law-firm-certification-row .law-firm-certification-col-ppl-col-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  margin-top: 10px;
}

.law-firm-certification-row .law-firm-certification-col-ppl-col-link:hover,
.law-firm-certification-row .law-firm-certification-col-ppl-col-link:active,
.law-firm-certification-row .law-firm-certification-col-ppl-col-link:focus {
  text-decoration: underline;
}

.law-firm-certification-row .law-firm-certification-col-ppl-col-img {
  width: 50%;

  .ppl-col-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 80px;
    max-height: 80px;
    width: 80px;
    height: 80px;
    border: 5px solid #F7F0D4;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1em;
  }
}

@media(max-width: 1330px) {
  .law-firm-certification-row .law-firm-certification-col-ppl-col-img .ppl-col-img-wrapper {
    max-width: 5vw;
    max-height: 5vw;
    width: 5vw;
    height: 5vw;
  }
}

@media(max-width: 1024px) {
  .law-firm-certification-row .law-firm-certification-col-ppl-col-img .ppl-col-img-wrapper {
    max-width: 15vw;
    max-height: 15vw;
    width: 15vw;
    height: 15vw;
  }
}

.law-firm-certification-row .law-firm-certification-col-ppl-col-img .ppl-col-img-wrapper img {
  display: block;
  margin: 0 auto;
}

.law-firm-certification-row .law-firm-certification-col-ppl-col-name {
  margin-right: 0.5em;
}

.lawfirm-lawyers-row .pageSection {
  margin-left: 0px !important;

  @media only screen and (max-width: 1023px) {
    padding-bottom: 0.5rem;
  }
}

.lawfirm-lawyers-row > div > .pageSection > .main-sec-content {
  margin-left: 0px !important;
}

.lawfirm-card-left-col > div.lawfirm-cta-buttons {
  width: auto;
  flex-grow: 1;
  // max-width: 250px;
}

.lawfirm-card-left-col > div.lawfirm-cta-buttons > a {
  // min-height: 60px;
  padding: 1.25rem 1em;
  align-content: center !important;

  @media only screen and (max-width: 1023px) {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }

  @media only screen and (max-width: 640px) {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.875rem;
  }

  @media only screen and (max-width: 500px) {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }
}

.lawfirm-card-left-col {
  @media only screen and (max-width: 1023px) {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  @media only screen and (min-width: 1024px) {
    max-width: 15rem;
    margin-left: 1.5rem;
  }
}

.lawfirm-card-left-col .button {
  font-size: 1rem;
}

.lawfirm-card-left-col .card-content {
  @media only screen and (max-width: 1023px) {
    width: 33%;
  }
}

.lawfirm-card-left-col .portrait-frame {
  height: auto;
  padding: 10px;
  background-color: transparent;

  img {
    max-height: 100%;
  }

  @media only screen and (max-width: 1023px) {
    margin-bottom: 0;
    max-height: none;
  }

}

.lawfirm-info-column {
  @media only screen and (min-width: 641px) {
    margin-left: 0.5rem;
  }
}

div.lawfirm-info-column:nth-of-type(2),
div.lawfirm-info-column:nth-of-type(3) {
  max-width: 250px;
  border-right: 1px solid var(--border-color);
}

@media only screen and (max-width: 640px) {
  div.lawfirm-info-column:nth-of-type(3) {
    border-right: 0;
  }
}

div.lawfirm-info-column:nth-of-type(4) {
  max-width: 550px;
  justify-content: flex-start;

  @media only screen and (max-width: 640px) {
    margin-top: 1rem;
  }
}

.lawfirm-info-column > .principal-office > address {
  margin-left: 1em;
}

.lawfirm-info-column > .practice-areas > ul,
.lawfirm-info-column > .additional-locations > ul {
  margin-left: 1em;
  list-style-type: none;
}

.lawfirm-info-column > .additional-locations > ul > li {
  margin-bottom: 0.25em;
}

.lawfirm-info-column > .practice-areas > ul.practice-list {
  margin-left: 0px !important;
  list-style-type: none;
}

.lawfirm-info-column > .practice-areas > ul.practice-list > li {
  margin-left: 1em;
  margin-bottom: 0.25em;
}

.lawfirm-info-column > .video-grid {
  flex-shrink: 0;
}

@media(max-width: 1320px) {
  .law-firm-certification-row .law-firm-certification-col-ppl-col-name {
    font-size: 0.8em;
  }
}

@media(max-width: 1023px) {
  .law-firm-certification-row .law-firm-certification-col-title {
    margin-top: 0.8em;
  }

  .law-firm-certification-row .law-firm-certification-col-ppl-col-name {
    text-align: left;
    padding-left: 0.5em;
    font-size: 1em;
    width: 100%;
  }

  .law-firm-certification-row .law-firm-certification-col-ppl-row {
    flex-direction: column;
  }

  .law-firm-certification-row .law-firm-certification-col-ppl-col {
    width: 100%;
  }
}

/* law firm profile card */
.law-firm-card .contact-btns {
  flex-wrap: wrap;
  column-gap: 0.5rem;
}

.law-firm-card .contact-btns .button {
  margin-bottom: 0.5rem;
}

.law-firm-card .contact-btn-half {
  @media only screen and (max-width: 1024px) {
    flex: 1 1 0;
  }
}

.law-firm-card .contact-address {
  text-align: center;
  color: var(--text-color);
  margin-top: 1em;
  margin-bottom: .5rem;
}

.law-firm-card .contact-map-link {
  padding: 1em 0;
  display: block;
  background-image: url(../../images/map-link-bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  margin: 1.5em 0;
  border-radius: 5px;
}

.law-firm-card .contact-map-link .card-btn {
  max-width: 192px;
  margin: 0 auto;
  display: block;
}

.law-firm-card .contact-map-link:hover {
  text-decoration: none;
}

.law-firm-card .contact-map-link:hover .card-btn {
  color: #fff;
}

.law-firm-card .contact-map-link:hover .card-btn {
  background: var(--red);
  color: #fff;
}

.law-firm-card .contact-address address {
  font-style: normal;
}

@media(max-width: 1200px) {
  .law-firm-card .contact-btns .card-btn {
    // flex: none;
    // display: block;
    // width: 100%;
    padding: 1em 0.25em;
  }
}

@media(max-width: 1024px) {
  .law-firm-card .contact-btns .card-btn {
    flex: none;
    display: block;
    width: 100%;
  }
}

div.law-firm-container a.wide-btn {
  flex: 0 1 calc(100% - 2px);
}

div.law-firm-container a.pf-nav-link {
  flex: 0 1 calc(33% - 2px);
}

.law-firm-container .portrait-frame.square-frame {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.law-firm-card .portrait-frame.square-frame {
  height: 288px;

  @media only screen and (max-width: 640px) {
    height: 160px;
  }
}

.law-firm-card.is-stuck .portrait-frame.square-frame {
  height: auto;

}

/* No uploaded logo: drop overlap offset on the sidebar card */
@media only screen and (min-width: 1024px) {
  .atty-card.law-firm-card.no-logo {
    transform: none;
    margin-bottom: 0;
  }

  .atty-card.law-firm-card.no-logo::after {
    top: 0;
  }
}

@media only screen and (max-width: 1023px) {
  .atty-card.law-firm-card.no-logo {
    margin-top: 0 !important;
  }
}

.atty-card.law-firm-card.no-logo .square-frame-borders {
  display: none;
}

.atty-card.law-firm-card.no-logo .square-frame-borders + #baseball_top {
  padding-top: 0;
}

.attorney-portrait {
  width: 90%;
  height: 90%;
  max-width: 200px !important;
  max-height: 200px !important;
  object-fit: contain;
}

/*########## * Lawfirm Overview * ##########*/
.firmbiotext {
  max-height: 150px;
  transition: max-height .4s ease-in-out;
  overflow: hidden;
  padding-left: 8px;
}

.firmbiotext + .rMore {
  border-top: 1px solid #d6d6d6;
  margin-top: .5em;
  padding-top: .5em;
}

.update_portrait_photo.lawfirm_update_portrait_photo a {
  border-radius: 0;
}

@media(min-width: 375px) {
  .badgeSection.badge-law-firm-section .badge-container {
    display: inline-block;
    height: auto;
    min-height: 0;
  }
}

/**
 * lawfirm edit
 */
.lawfirm-modal-people-section-button {
  color: var(--primary-color);
  font-size: 0.7em;
}

.attorney_modal_section_container .lawfirm-modal-people-toggle-button {
  font-size: 1.1em;
}

.attorney_modal_section_container .lawfirm-modal-people-toggle-button:hover {
  text-decoration: none;
}

/*
* lawfirm overview
*/
ul.lawfirm-overview-list {
  list-style: none;
  padding: 0;
  margin: 0;

  @media only screen and (min-width: 641px) {
    column-count: 2;
    column-gap: 40px;
  }
}

ul.lawfirm-overview-list .overview-specialty-certifications {
  padding-left: 0;
  margin-top: 0;
}

/* optional overview text content  */
div.lawfirm-overview-html {
  margin: 0 0 1em;
  padding: 0 1.125em;
  font-family: var(--sans-font);
  font-size: 1.125em;
  line-height: 1.5em;
  color: var(--primary-color);
  text-align: left;
}

ul.overview-specialty-certifications {
  padding-left: 1em;
  margin-top: 4px;
  list-style: none;
}

ul.sidebar_additional_locations_list {
  list-style: none;
  text-align: left;
  padding-left: 1em;
  margin-left: 0;
}

.law-firm-container {
  @media only screen and (max-height: 700px) {
    a.pf-nav-link {
      padding-top: 0.25em;
      padding-bottom: 0.25em;
    }

    .contact-btns .card-btn {
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }
  }
}

.law-firm-listing-container {
  @media only screen and (max-width: 640px) {
    padding-left: 0;
    padding-right: 0;
  }
}

/*
* lawfirm details section
*/
.law-firm-container #details ul {
  column-count: 2;
  column-gap: 40px;
  padding: 0;
  margin: 0;
}

/**
* Lawfirm contact section - additional locations
*/
.twocols {
  text-align: left;

  :where(ul) {
    margin-left: 2rem;
  }

  columns: 2;
  column-gap: 16px;

  @media only screen and (min-width: 1025px) {
    column-gap: 40px;
  }
}

.firm-practice-areas-group,
.addr-info {
  page-break-inside: avoid;
}

.addr-info {
  margin-bottom: 1rem;
}

.force-column-break {
  break-before: column;
}

.law-firm-container .law-firm-h1 {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

@media only screen and (min-width: 641px) {
  .law-firm-container .law-firm-name-wrapper {
    margin: 0 0 0 1em;
  }
}

.law-firm-container .photo-grid {
  margin-left: 0;
}

/* Law Firm Listing Styles */
.law-firm-people-row {
  margin-bottom: 0.5rem;
  // padding-bottom: 1rem;
  // border-bottom: 1px solid var(--border-color);
  justify-content: left;
}

.lawfirm-lawyers-row .lawyer-item {
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

.high-separator::after {
  content: '';
  display: block;
  background-color: #F9F9F9;
  border-radius: 4px;
  height: 1rem;
  margin-top: 1rem;
}

.lawfirm-lawyers-row::after {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* State Sections */
.state-section {
  margin-bottom: 2rem;
  // padding-bottom: 1rem;
  // margin-left: 1rem;

  @media only screen and (max-width: 1023px) {
    margin-bottom: 1rem;
  }
}

.state-heading {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid;
  font-weight: 600;
  // font-size: 1.75rem;
}

.state-section > h2.section-heading.top-level {
  font-weight: 600;
  // font-size: 1.5em;
  margin-bottom: 0.25rem;

  @media only screen and (max-width: 640px) {
    margin-left: 0;
  }
}

.contactSection {
  > br {
    display: none;
  }

  .main-sec-content {
    margin-top: 1.25rem;

    .pageSection {
      padding-bottom: 0;
    }
  }
}

/* Law Firm Cards */
.lawfirm-card {
  /* margin-bottom: 1.5rem; */
  padding-top: 1.25rem;
  margin-bottom: 0rem;

  @media only screen and (max-width: 1023px) {
    padding-left: 0;
  }

  @media only screen and (min-width: 1024px) {
    padding: 1.25rem;
  }
}

.card-firm-name-link:is(:hover, :focus) {
  text-decoration: none;
}

h3.card-firm-name {
  font-weight: 600;
  background: var(--sub-color);
  color: #4A0E01;

  @media only screen and (max-width: 640px) {
    margin-left: 0;
  }
}

.lawfirm-name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid;
  font-weight: 600;
}

.lawfirm-people-column > .large-badge {
  max-width: 120px;
  max-height: 120px;
  width: 100%;
  height: auto;
}

/* Logo and CTAs */
.lawfirm-logo {
  margin-bottom: 1rem;
  text-align: center;
}

.lawfirm-logo img {
  max-width: 100%;
  height: auto;
  border: 1px solid;
  padding: 0.25rem;
  max-height: 120px;
  object-fit: contain;
}

.lawfirm-cta-buttons .button {
  margin-bottom: 0.375rem;
  border-radius: 5px;
  transition: background-color 0.2s ease;

  &:last-child {
    margin-bottom: 0;
  }
}

.lawfirm-cta-buttons .red_background {
  background: var(--red);
  color: #fff;
}

.lawfirm-cta-buttons .red_background:hover {
  background: #4A0E01;
}

.lawfirm-card-info {
  margin-top: 0.75rem;
  max-width: 52rem;

  @media only screen and (min-width: 1200px) {
    margin-left: 1.5rem;
  }

  @media only screen and (max-width: 1199px) {
    font-size: 14px;
  }

  @media only screen and (max-width: 1023px) {
    margin-bottom: 1rem;
  }
}

/* Lawyers Row */
.lawyers-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid;
}

.lawyer-item {
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

.lawyer-name {
  display: block;
  font-weight: bold;
}

.lawyer-title {
  display: block;
  font-size: 0.875rem;
}

.more-lawyers a {
  font-weight: bold;
}

.more-lawyers a:hover {
  text-decoration: underline;
}

/* Office and Location Info */
#lawfirm_additional_locations .contact-content {
  margin-top: 0;
}

#social_list_dialogH .small-6 a {
  word-break: break-all;
}

.principal-office,
.additional-locations,
.founded-info,
.lawyers-count,
.practice-areas {
  margin-bottom: 1.75em;
}

.principal-office h4,
.additional-locations h4,
.founded-info h4,
.lawyers-count h4,
.practice-areas h4,
.featured-video h4 {
  color: var(--text-color);
  font-size: inherit;
  line-height: inherit;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.principal-office address {
  font-style: normal;
}

.additional-locations ul,
.practice-areas ul.practice-list {
  margin-left: 1rem;
  list-style-type: disc;
}

.practice-areas ul.practice-list li {
  margin-bottom: 0.25rem;
}

.principal-office a,
.additional-locations a,
.practice-areas a {
  font-weight: 600;
}

.principal-office a:hover,
.additional-locations a:hover,
.practice-areas a:hover {
  text-decoration: underline;
}

/* Featured Video */
.featured-video {
  margin-top: 0.5rem;
}

.featured-video iframe {
  max-width: 100%;
  border: 1px solid;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#video_list_dialogH.grid-container {
  padding-left: 0;
  padding-right: 0;
}

.video-grid {
  @media only screen and (max-width: 1024px) {
    [data-title] {
      margin-bottom: 0.5rem;

      &::before {
        content: attr(data-title)':';
        margin-right: 4px;
        float: left;
        color: var(--primary-color);
        font-weight: 700;
        min-width: 90px;
      }
    }
  }
}

/* Responsive Adjustments */
@media screen and (max-width: 39.9375em) {

  .state-section {
    margin-left: 0;
  }

  .lawyer-item {
    margin-right: 1rem;
    flex-basis: 100%;
  }

  .lawyers-row {
    flex-direction: column;
  }

  .lawfirm-name {
    font-size: 1.25rem;
  }
}

/* Law firm profile: red hero with firm banner image */
.cover-photo--lawfirm {
  position: relative;
  min-height: 248px;
  // height: 220px;
  overflow: hidden;
}

.lawfirm-banner-container {

  position: relative;

  @media only screen and (min-width: 1024px) {
    padding-left: 2rem;
  }
}

.cover-photo--lawfirm .lawfirm-banner {
  display: block;
  width: 100%;
  max-width: 830px;
  aspect-ratio: 83/21;
  object-fit: cover;
  margin-right: auto;
  margin-left: auto;

  @media only screen and (min-width: 1024px) {
    margin-right: 0;
  }
}

.cover-photo--lawfirm .update_cover_photo {
  position: absolute;
  top: 0;
  right: 0;
}

.cover-photo--lawfirm .update_cover_photo a {
  display: inline-block;
  position: static;
  border-radius: 0;
  text-align: center;
  padding-left: 2rem;
  padding-right: 2rem;
}

#pages_banner_dialog #upload-bannerh {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  height: auto;
}

/* Centered modal actions (Foundation shrink cells left-aligned unevenly when some are hidden). */
#pages_banner_dialog .pages-banner-modal-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0 0.25rem;
}

/* Cover Photo Banner (listing page) */
.lawfirms-cover-photo {
  border-bottom: 10px solid var(--sub-color);
  background: #4A0E01;
  background-size: cover;

  padding: 3.25rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.lawfirms-cover-photo h1 {
  color: #fff;
  font-family: var(--serif-font);
  margin-bottom: 2.5rem;
  font-weight: 400;
  font-size: 3rem;

  @media only screen and (max-width: 1023px) {
    font-size: 2.5rem;
  }

  @media only screen and (max-width: 640px) {
    font-size: 2rem;
  }
}

.lawfirms-cover-photo .button {
  font-weight: bold;
  border-radius: 2px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  transition: background-color 0.2s ease;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.lawfirms-cover-photo .card-btn {
  color: #FFF;
  background: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  // padding: 1.15rem 2.5rem !important;
  border-radius: 2px;
  font-family: var(--sans-font);
  // font-size: 1.25rem; 
  margin-bottom: 1.5rem;
}

/* .lawfirms-cover-photo .button:hover {
  background-color: #fff;
  color: #4A0E01;
} */

/* Intro text */
.intro-text {
  margin-bottom: 1rem;
  // font-size: 1.1rem;
  // line-height: 1.2;
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure consistency with the foundation grid */
.outer-container {
  max-width: 75rem;
  margin: 0 auto;
}

.profile-content {
  padding: 0 0 6rem;
}

.profile-content :target {
  scroll-margin-top: 100px;
}

/* Board Certifications Styling */
.lawfirm-certifications-row {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  padding: 1rem 0;
}

.cert-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.board-certifications .cert-logo.rb-img {
  max-width: 100%;
  margin-bottom: 4px;
  position: relative;

}

.board-certifications .cert-logo.rb-img img {
  max-height: none;
  margin-right: auto;
  margin-left: 0;
}

/* .cert-logo img {
    max-width: 250px !important;
    height: auto;
} */

.cert-content {
  flex: 1;
}

ul.cert-content {
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}

ul.cert-content li {
  margin-bottom: 0.25rem;
}

ul.cert-content li.bolder {
  line-height: 1.4;
}

.cert-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cert-attorneys {
  font-size: 0.9rem;
  line-height: 1.4;
}


.certified-attorney-names {
  margin-top: 0.25rem;
  font-style: italic;
}

/* force in to 2 columns */
.certified-attorney-names ul {
  columns: 2;
  list-style-type: none;
  font-style: normal;
  margin-bottom: 0px;
}

.certified-attorney-names ul li {
  margin-bottom: 0.25rem;
}

.cert-more-link {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.more-specialties-link {
  font-size: 0.9rem;
  margin-left: 0.5rem;
  color: #4A0E01;
}

.lawfirm-cert-slider .cert-logo .more-specialties-link {
  display: block;
  font-size: 1rem;
  position: absolute;
  right: 2rem;
  text-align: left;
  top: 50%;
  width: 5rem;
  transform: translateY(-50%);
}

.lawfirm-cert-slider .lawfirm-cert-arrow {
  align-items: center;
  background: #fafafa;
  border: 0;
  border-radius: 4px;
  color: #4A0E01;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  height: 5rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  top: 0.5rem;
  width: 1.25rem;
  z-index: 1;
}

.lawfirm-cert-slider .lawfirm-cert-prev {
  display: none !important;
}

.lawfirm-cert-slider .lawfirm-cert-next {
  right: 0;
}

.law-firm-people-show-more a {
  color: #4A0E01;
  // font-weight: 600;
  // font-family: var(--serif-font);
}

.law-firm-people-show-more {
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: 2rem;
  // margin-bottom: 1em;

  @media only screen and (max-width: 1023px) {
    margin-top: 1rem;
  }
}