/* Native ByLaw Home 2 hero with the two portraits supplied by the firm. */
body.home #header-wrapper { margin-bottom: 0; }
.bbl-hero {
  isolation: isolate;
  padding: clamp(28px,3.6vw,59px) clamp(22px,5vw,100px) 0 !important;
}
.bbl-hero > .elementor-container {
  width: 100%;
  max-width: 1440px !important;
  margin-inline: auto;
  align-items: flex-end !important;
  flex-wrap: nowrap !important;
}
.bbl-hero > .elementor-container > .bbl-hero-copy {
  width: 49% !important;
  align-self: center;
  min-width: 0;
}
.bbl-hero-copy > .elementor-widget-wrap {
  padding: 0 0 clamp(30px,4vw,60px) !important;
  width: 100%;
}
.bbl-hero .elementor-element-2fabf28,
.bbl-hero .elementor-element-115cf14 { padding: 0 !important; }
.bbl-hero .elementor-element-f0552f7 > .elementor-widget-container {
  padding-bottom: clamp(22px,2.2vw,36px) !important;
}
.bbl-hero .elementor-element-d7fa8a0,
.bbl-hero .elementor-element-f0552f7 {
  max-width: 100% !important;
}
.bbl-hero h1 { color: #071d45; }
.bbl-hero .wdt-slider-2-heading-style h1 {
  font-size: clamp(42px,4.5vw,82px);
  line-height: 1.04;
  text-wrap: balance;
}
body.home .bbl-hero .wdt-slider-2-heading-style h1,
body.home .bbl-hero .wdt-slider-2-heading-style h1 span,
body.home .bbl-hero .elementor-element-d99032e .wdt-button,
body.home .bbl-hero .elementor-element-d99032e .wdt-button-text,
body.home .bbl-hero .elementor-element-d99032e .wdt-button-text span {
  text-transform: none !important;
}
.bbl-hero > .elementor-container > .bbl-hero-partners {
  width: 51% !important;
  display: flex !important;
  align-self: flex-end;
  min-width: 0;
}
.bbl-hero-partners > .elementor-widget-wrap {
  width: 100%;
  display: flex !important;
  flex-flow: row nowrap !important;
  justify-content: center !important;
  align-items: flex-end !important;
  align-content: flex-end !important;
  padding: 0 !important;
}
.bbl-hero .bbl-hero-portrait {
  flex: 0 0 63%;
  width: 63% !important;
  max-width: none;
  margin: 0 !important;
}
.bbl-hero .bbl-hero-portrait + .bbl-hero-portrait {
  margin-inline-start: -13% !important;
}
.bbl-hero-portrait > .elementor-widget-container {
  position: relative;
  margin: 0 !important;
  padding: 0 0 clamp(32px,3vw,46px) !important;
  line-height: 0;
}
.bbl-hero-portrait figure { margin: 0; width: 100%; max-width: none; }
.bbl-hero-portrait figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  place-items: center;
  min-height: clamp(32px,3vw,46px);
  margin: 0;
  color: #071d45;
  font-size: clamp(12px,1.2vw,17px);
  line-height: 1.2;
  text-align: center;
}
.bbl-hero .bbl-hero-portrait img { width: 100%; max-width: none; height: auto; vertical-align: bottom; }
.bbl-hero .elementor-element-d99032e > .elementor-widget-container { padding: 0 !important; }
.bbl-hero .elementor-element-a1b4e2a .wdt-heading-subtitle-wrapper {
  color: #394453;
  letter-spacing: .15em;
}

/* The editorial sections use editable Elementor headings, columns and text. */
.bbl-section {
  --bbl-ink: #071d45;
  --bbl-body: #263238;
  --bbl-rule: #d6d4cc;
  scroll-margin-top: 90px;
  padding: clamp(56px,7.5vw,112px) clamp(22px,6vw,110px) !important;
  color: var(--bbl-body);
}
.bbl-section > .elementor-container { max-width: 1220px !important; margin-inline: auto; }
.bbl-section .elementor-column > .elementor-widget-wrap { padding: 0; align-content: flex-start; }
.bbl-section .elementor-widget { margin-block-end: 0 !important; }
.bbl-section .elementor-heading-title { font-family: var(--wdtFontTypo_Alt, Georgia, 'Times New Roman', serif); color: var(--bbl-ink); font-weight: 500; }
.bbl-section h2.elementor-heading-title {
  font-family: var(--wdtFontTypo_Alt, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(38px,4.6vw,69px); line-height: 1.05; letter-spacing: -.035em;
  margin: 0; text-wrap: balance;
}
.bbl-section h3.elementor-heading-title {
  font-family: var(--wdtFontTypo_Alt, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(25px,2.35vw,37px); line-height: 1.12; letter-spacing: -.018em;
  margin: 0; text-wrap: pretty;
}
.bbl-section .bbl-copy { font-size: 1rem; line-height: 1.68; color: var(--bbl-body); }
.bbl-section .bbl-copy p { margin: 0 0 .85em; color: inherit; font-size: inherit; line-height: inherit; }
.bbl-section .bbl-copy p:last-child { margin-bottom: 0; }
.bbl-section a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.bbl-section .bbl-heading a { color: inherit; text-decoration: none; }
.bbl-section .bbl-heading a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.bbl-firm { background: #f7f5ef; }
.bbl-firm > .elementor-container { display: grid; grid-template-columns: .82fr 1.18fr; column-gap: clamp(32px,7vw,120px); }
.bbl-firm > .elementor-container > .elementor-column { width: auto; }
.bbl-firm .bbl-copy p:first-child { font-size: clamp(18px,1.5vw,23px); line-height: 1.5; color: #071d45; }
.bbl-areas { background: #fff; }
.bbl-area-grid > .elementor-container,
.bbl-profile-grid > .elementor-container,
.bbl-post-line > .elementor-container {
  display: grid; column-gap: clamp(24px,4vw,68px); max-width: none !important;
}
.bbl-area-grid > .elementor-container { grid-template-columns: repeat(3,minmax(0,1fr)); }
.bbl-profile-grid > .elementor-container { grid-template-columns: repeat(2,minmax(0,1fr)); }
.bbl-post-line > .elementor-container { grid-template-columns: 1.05fr 1fr; }
.bbl-area-grid > .elementor-container > .elementor-column,
.bbl-profile-grid > .elementor-container > .elementor-column,
.bbl-post-line > .elementor-container > .elementor-column { width: 100%; min-width: 0; }
.bbl-areas .bbl-area-grid:first-of-type,
.bbl-areas .bbl-heading + .bbl-area-grid,
.bbl-partners .bbl-profile-grid,
.bbl-publications .bbl-heading + .bbl-post-line { margin-top: clamp(28px,3.6vw,55px); }
.bbl-area { border-top: 1px solid var(--bbl-rule); padding: 26px 0 36px; scroll-margin-top: 100px; }
.bbl-area .bbl-copy, .bbl-profile .bbl-copy { margin-top: 13px; }
.bbl-partners {
  --bbl-ink: #fff; --bbl-body: #f7f5ef;
  color: #fff; background: #071d45;
}
.bbl-profile { padding-top: 24px; border-top: 1px solid #8f795e; }
.bbl-partners h3.elementor-heading-title { color: #e5c59d; }
.bbl-publications { background: #fff; }
.bbl-post-line { border-top: 1px solid var(--bbl-rule); padding: clamp(19px,2.2vw,35px) 0; }
.bbl-post-line:last-of-type { border-bottom: 1px solid var(--bbl-rule); }
.bbl-post-line .bbl-copy { color: #47515d; }
.bbl-contact { background: #f7f5ef; }
.bbl-contact > .elementor-container { display: grid; grid-template-columns: .9fr 1.1fr; column-gap: clamp(30px,7vw,105px); }
.bbl-contact > .elementor-container > .elementor-column { width: 100%; min-width: 0; }
.bbl-contact .bbl-copy { margin-top: 17px; }
.bbl-contact .bbl-contact-links a { display: inline-block; color: #0b2d6b; text-underline-offset: .2em; }
.bbl-contact .bbl-contact-links a:hover { text-decoration: underline; }
.bbl-contact-form-column a,.bbl-contact-links a { overflow-wrap: anywhere; }

@media (min-width: 901px) and (max-width: 1320px) {
  .bbl-hero .wdt-heading-holder,
  .bbl-hero .wdt-button-holder { text-align: left !important; }
  .bbl-hero-copy > .elementor-widget-wrap { justify-content: flex-start !important; }
}
@media (max-width: 900px) {
  .bbl-hero { padding: 28px 22px 0 !important; }
  .bbl-hero > .elementor-container { flex-flow: column nowrap !important; align-items: center !important; }
  .bbl-hero > .elementor-container > .bbl-hero-copy { width: 100% !important; max-width: 710px; }
  .bbl-hero-copy > .elementor-widget-wrap { padding: 0 !important; }
  .bbl-hero .elementor-element-d7fa8a0 > .elementor-widget-container { padding-bottom: 16px !important; }
  .bbl-hero .elementor-element-f0552f7 > .elementor-widget-container { padding-bottom: 21px !important; }
  .bbl-hero > .elementor-container > .bbl-hero-partners { width: min(86%,430px) !important; align-self: center; margin-top: 8px; }
  .bbl-hero .wdt-slider-2-heading-style h1 { font-size: clamp(37px,7.5vw,61px); }
  .bbl-area-grid > .elementor-container { column-gap: 22px; }
  .bbl-section h3.elementor-heading-title { font-size: clamp(25px,3.4vw,31px); }
}
@media (max-width: 680px) {
  .bbl-hero { padding: 22px 18px 0 !important; }
  .bbl-hero .elementor-element-f0552f7 .wdt-heading-content-wrapper { font-size: 16px; line-height: 1.5; }
  .bbl-hero > .elementor-container > .bbl-hero-partners { width: min(92%,310px) !important; }
  .bbl-section { padding-inline: 21px !important; }
  .bbl-firm > .elementor-container, .bbl-contact > .elementor-container,
  .bbl-profile-grid > .elementor-container, .bbl-area-grid > .elementor-container,
  .bbl-post-line > .elementor-container { grid-template-columns: minmax(0,1fr); }
  .bbl-firm > .elementor-container, .bbl-contact > .elementor-container,
  .bbl-profile-grid > .elementor-container { row-gap: 27px; }
  .bbl-post-line > .elementor-container { row-gap: 10px; }
  .bbl-area { padding: 20px 0 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .bbl-hero video { visibility: hidden; }
  .bbl-hero .elementor-invisible { visibility: visible; }
  .bbl-hero *, .bbl-section * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Preserve the original 3:4 framing so the display mask follows each portrait. */
.bbl-portrait-negro img,
.bbl-portrait-rojo img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  -webkit-mask-image: var(--bb-retrato-mask);
  mask-image: var(--bb-retrato-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.bbl-portrait-negro img {
  --bb-retrato-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 960' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M351 52 C367 53 390 55 400 65 L405 73 C412 65 426 76 431 89 C439 105 437 128 437 148 L436 156 C440 165 436 181 432 189 L429 206 C428 213 425 215 422 214 L422 235 L432 250 L447 267 C479 279 523 293 558 308 C572 310 578 319 581 332 C585 350 583 358 586 370 C588 390 596 407 598 428 C601 451 606 481 606 507 C607 533 605 559 602 580 C601 594 590 614 577 630 C562 650 548 662 535 675 L539 711 C542 753 552 809 558 852 C550 857 541 861 532 862 L530 960 L254 960 C246 926 240 891 234 860 C225 857 215 851 205 844 L218 707 C209 685 190 663 178 647 C165 625 157 607 154 586 L150 558 C149 545 155 528 157 510 C165 486 168 456 176 433 C176 424 177 416 181 411 C182 393 186 380 189 368 C191 345 197 324 204 320 C235 306 282 290 309 276 L317 269 L320 257 C311 248 306 233 303 216 C297 218 295 210 295 203 L291 190 C286 185 282 169 284 161 C285 158 287 157 290 158 C285 144 286 128 286 112 C283 98 291 88 296 77 C309 63 328 54 351 52 Z'/%3E%3C/svg%3E");
}

.bbl-portrait-rojo img {
  --bb-retrato-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 960' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M372 74 C390 74 411 80 425 89 L434 100 L432 104 L440 107 L442 116 L446 123 L445 133 L448 143 L448 169 C451 169 455 169 458 172 C463 181 456 198 455 204 C454 214 451 221 445 221 L443 238 L442 257 L447 266 L459 280 L469 290 C491 296 511 304 529 312 C554 316 576 320 585 333 C593 344 596 357 595 362 L598 369 L598 398 L601 409 L600 418 L602 427 L601 435 L604 450 C605 466 607 480 604 498 C600 522 586 556 578 571 C571 583 564 592 553 595 L542 599 C542 620 547 645 553 665 L566 699 L563 702 C576 746 592 803 603 839 C591 847 576 851 562 858 L557 960 L255 960 L242 851 C226 845 215 842 208 836 L237 701 L235 697 L248 660 L255 634 L257 623 C242 622 221 620 215 616 C205 607 201 588 197 572 C193 550 193 522 195 501 C194 482 199 466 201 455 L199 451 L202 443 L201 437 L204 417 L206 401 L210 388 L211 377 L215 371 L216 357 C218 344 222 337 231 336 C245 329 255 327 272 323 C296 312 317 306 328 297 L337 282 L339 277 C334 263 330 246 326 230 C320 229 318 223 317 216 C313 207 308 194 311 185 C313 182 316 182 319 182 L317 171 C314 160 311 143 312 132 L312 124 L316 114 L316 108 L325 97 C338 82 352 78 372 74 Z'/%3E%3C/svg%3E");
}
