.practice-photo {position:relative;margin:0;isolation:isolate;border:2px solid #fff;border-radius:120px 32px 32px 32px;min-height:560px;overflow:hidden;background:#d5e6e8;box-shadow:0 16px 45px #0733801c;}
.practice-photo>img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 52%;z-index:-2;}
.practice-photo:after {content:"";position:absolute;inset:0;background:linear-gradient(180deg,#10293200 25%,#10293222 42%,#102932ed 100%);z-index:-1;}
.practice-photo figcaption {min-height:560px;display:flex;flex-direction:column;justify-content:flex-end;gap:16px;padding:32px 32px 80px;color:#fff;}
.practice-photo .photo-title {font-size:clamp(34px,3.2vw,48px);line-height:1.15;letter-spacing:-1px;max-width:13ch;}
.practice-photo .photo-bottom {font-size:16px;line-height:1.6;}
.practice-photo .practice-address {display:inline-block;}
.practice-photo a {color:inherit;}
.practice-gallery .section-heading {grid-template-columns:minmax(0,1fr);gap:14px;}
.practice-gallery .section-heading>p {justify-self:start;max-width:68ch;margin:0;}
.practice-gallery .section-heading h2 {max-width:22ch;}
.practice-gallery-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px;}
.practice-gallery-card {grid-column:span 2;min-width:0;display:block;overflow:hidden;padding:0;text-align:left;font:inherit;cursor:pointer;border:1px solid #fff;border-radius:26px;background:linear-gradient(135deg,#ffffffeb,#eaf6f8b8);box-shadow:0 8px 24px #0733800d;text-decoration:none;transition:box-shadow .2s;}
.practice-gallery-card:nth-last-child(-n+2) {grid-column:span 3;}
.practice-gallery-card img {display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center 60%;}
.practice-gallery-card:nth-last-child(-n+2) img {aspect-ratio:16/9;}
.practice-gallery-card>span {display:block;padding:18px 20px;font-size:21px;line-height:1.5;color:var(--blue);}
.practice-gallery-card small {display:block;font-size:17px;color:var(--muted);margin-top:4px;}
.practice-gallery-card:hover {box-shadow:0 12px 32px #07338025;}
.practice-gallery-card.practice-gallery-card--portrait {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;}
.practice-gallery-card.practice-gallery-card--portrait img {aspect-ratio:auto;height:auto;max-height:460px;object-fit:contain;object-position:center;}
.photo-lightbox {width:fit-content;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #fff;border-radius:24px;background:#f2f8fb;color:var(--ink);box-shadow:0 24px 100px #00152b66;overflow:auto;}
.photo-lightbox::backdrop {background:#051b32d9;backdrop-filter:blur(8px);}
.photo-lightbox-toolbar {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;}
.photo-lightbox-toolbar h2 {font-size:22px;line-height:1.4;letter-spacing:0;max-width:40ch;text-wrap:pretty;}
.photo-lightbox-close {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;flex-shrink:0;border:1px solid #b9cbd9;border-radius:14px;padding:10px 16px;background:white;color:var(--blue);cursor:pointer;font-size:19px;}
.photo-lightbox-media {padding:0 16px 16px;}
.photo-lightbox-media img {display:block;width:auto;height:auto;max-width:min(1200px,calc(100vw - 68px));max-height:calc(100dvh - 148px);object-fit:contain;border-radius:12px;}
.photo-lightbox-status {padding:0 20px 20px;max-width:65ch;font-size:20px;}
html:has(.photo-lightbox[open]) {overflow:hidden;}
.team-preview {padding:24px;border:1px solid #fff;border-radius:26px;background:linear-gradient(135deg,#ffffffe8,#e8f4f8bd);}
.team-preview .team-initials {display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#deedf8;color:var(--blue);font-size:27px;margin-bottom:16px;}
.team-preview:nth-child(2) .team-initials {background:#e7f2dc;color:var(--green);}
.team-preview .text-link {display:inline-block;margin-top:16px;}
@media(min-width:901px) {
  .practice-gallery-grid {grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.25fr);align-items:stretch;}
  .practice-gallery-card,.practice-gallery-card:nth-last-child(-n+2) {grid-column:auto;display:flex;flex-direction:column;align-self:stretch;}
  .practice-gallery-card:nth-child(1) {grid-column:1;grid-row:1;}
  .practice-gallery-card:nth-child(2) {grid-column:2;grid-row:1;}
  .practice-gallery-card:nth-child(3) {grid-column:1;grid-row:2;}
  .practice-gallery-card:nth-child(4) {grid-column:2;grid-row:2;}
  .practice-gallery-card:nth-last-child(-n+2) img {aspect-ratio:4/3;}
  .practice-gallery-card>img {flex-shrink:0;}
  .practice-gallery-card>span {flex:1;}
  .practice-gallery-card.practice-gallery-card--portrait {grid-column:3;grid-row:1 / span 2;display:flex;flex-direction:column;align-items:stretch;}
  .practice-gallery-card.practice-gallery-card--portrait img {flex:1;min-height:0;height:0;max-height:none;aspect-ratio:auto;object-fit:contain;background:#e1ecee;}
  .practice-gallery-card.practice-gallery-card--portrait>span {flex:0 0 auto;}
}
@media(max-width:900px) {.practice-photo,.practice-photo figcaption {min-height:480px;}.practice-gallery-grid {grid-template-columns:repeat(2,minmax(0,1fr));}.practice-gallery-card,.practice-gallery-card:nth-last-child(-n+2) {grid-column:auto;}.practice-gallery-card:last-child {grid-column:1/-1;}.practice-gallery-card:nth-last-child(-n+2) img {aspect-ratio:4/3;}}
@media(max-width:720px) {.practice-photo {border-top-left-radius:88px;}.practice-photo,.practice-photo figcaption {min-height:480px;}.practice-photo figcaption {padding:28px 24px 72px;}.practice-photo .photo-title {font-size:40px;}.practice-gallery-grid {grid-template-columns:minmax(0,1fr);gap:18px;}.practice-gallery-card:last-child {grid-column:auto;}}
@media(max-width:720px) {.practice-gallery-card.practice-gallery-card--portrait {display:block;}.practice-gallery-card.practice-gallery-card--portrait img {max-height:none;}.photo-lightbox-toolbar {align-items:flex-start;gap:12px;padding:14px;}.photo-lightbox-toolbar h2 {font-size:20px;}.photo-lightbox-close {font-size:17px;padding:10px;}.photo-lightbox-media {padding:0 12px 12px;}.photo-lightbox-media img {max-width:calc(100vw - 60px);max-height:calc(100dvh - 176px);}}
@media(prefers-reduced-motion:reduce) {.practice-gallery-card {transition:none;}}
