/* HeartBeat: compact contact hierarchy and consistent photographic surfaces. */
.home .hb-centers-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.home .hb-center{display:flex;flex-direction:column;overflow:hidden;border-radius:28px;background:#fff;color:var(--brand-ink);border:1px solid #dae7e4;box-shadow:0 16px 48px -32px #093c4655;transform:none}.home .hb-center-photo{width:100%;height:auto;aspect-ratio:16/10;order:0;overflow:hidden}.home .hb-center-photo img{width:100%;height:100%;object-fit:cover}.home .hb-center-content{padding:28px;order:1}.home .hb-center-placeholder{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:12px;background:radial-gradient(ellipse at 20% 20%,#d8f3eb,transparent 65%),linear-gradient(130deg,#eaf6f4,#e9e7fa);color:var(--brand-deep)}.home .hb-center-placeholder span{font-size:clamp(32px,4vw,58px);font-weight:800}.home .hb-center-placeholder strong{font-size:18px}.home .hb-center h3{font-size:clamp(23px,2vw,30px);line-height:1.4}.home .services:has(>.svc:nth-child(5):last-child){display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.home .services:has(>.svc:nth-child(5):last-child)>.svc{grid-column:span 2}.home .services:has(>.svc:nth-child(5):last-child)>.svc:nth-last-child(-n+2){grid-column:span 3}.home .svc{border-radius:20px;min-height:142px}.home .doc{position:relative;transition:transform .3s,box-shadow .3s;border:1px solid #dce9e5;box-shadow:0 7px 0 -3px #dce8e4,0 18px 40px -26px #163a4a66;transform-style:preserve-3d}.home .hb-main-motto{font-size:clamp(24px,3vw,40px);font-weight:800;color:white}.home .hb-second-motto{color:#d3f3e4;font-size:20px}.home .hero .hb-hero-note{margin-top:16px}
.hb-center-detail{max-width:1200px;margin:0 auto;padding:36px 24px 70px}.hb-center-detail>article{padding:clamp(24px,4vw,54px);border:1px solid #dce8e5;background:linear-gradient(155deg,#fff 55%,var(--brand-pale));border-radius:32px;box-shadow:0 22px 70px -40px #123e4a77}.hb-center-intro{max-width:850px;margin-bottom:28px}.hb-center-intro>span{letter-spacing:4px;font-size:13px;font-weight:700;color:var(--brand-mid)}.hb-center-intro h2{font-size:clamp(28px,4vw,48px);line-height:1.45;margin:16px 0}.hb-center-intro p{font-size:20px;line-height:1.7}.hb-center-intro p strong{display:block;font-weight:400}.hb-branch-meta{border-radius:16px;padding:18px;background:white;margin:24px 0;display:flex;flex-wrap:wrap;gap:18px}.hb-center-detail .bmc-clinic-photos .pub-gallery>a:first-child{height:clamp(260px,42vw,520px)}.hb-center-detail .pub-rich{padding:28px 0;font-size:18px}.bmc-album-card{box-shadow:0 12px 35px -25px #143c4c70;transition:transform .3s,box-shadow .3s}.bmc-album-heading{padding-bottom:24px}.pub-news-card{transition:transform .25s,box-shadow .25s}
.hb-settings{max-width:1150px;margin:auto;padding:24px;color:#173e43}.hb-settings fieldset{border:0;padding:0}.hb-settings-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.hb-settings-photos>label,.hb-schedule-row{padding:20px;border:1px solid #dbe7e4;background:white;border-radius:18px}.hb-settings-photos>label{display:flex;flex-direction:column;gap:14px}.hb-settings-photos img{width:100%;height:170px;object-fit:cover;border-radius:12px}.hb-settings input:not([type=checkbox]),.hb-settings select{font:inherit;border:1px solid #a9c6bd;padding:10px;border-radius:9px;max-width:100%}.hb-settings button{font:inherit;cursor:pointer;background:#e5f1ec;color:#174c45;border:0;border-radius:10px;padding:11px 16px;margin:8px 8px 8px 0}.hb-settings button.hb-settings-save{background:#155e54;color:white}.hb-settings-fields{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:12px}.hb-settings-fields label{display:flex;flex-direction:column;gap:8px}.hb-settings-days{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.hb-schedule-row{margin:18px 0}.hb-slot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:20px 0}.hb-slot-grid button{padding:12px 6px;border:1px solid #cbded8;background:white;color:#164a43;border-radius:10px}.hb-slot-grid button[aria-pressed=true]{background:#155e54;color:white;border-color:#155e54}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.home .doc:hover{transform:perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-7px);box-shadow:0 12px 0 -5px #dce8e4,0 26px 50px -22px #173f4f55}.bmc-album-card:hover,.pub-news-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px -24px #143c4c70}}
@media(max-width:1100px){.hb-settings-fields{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.home .hb-centers-grid{grid-template-columns:1fr}.home .services:has(>.svc:nth-child(5):last-child){grid-template-columns:1fr 1fr}.home .services:has(>.svc:nth-child(5):last-child)>.svc{grid-column:auto!important}.home .services:has(>.svc:nth-child(5):last-child)>.svc:last-child{grid-column:1/-1!important}.hb-settings-photos,.hb-settings-fields{grid-template-columns:1fr}.hb-center-detail{padding:24px 14px 50px}.hb-center-detail>article{padding:22px}.hb-center-detail .pub-rich{font-size:16px}.hb-slot-grid{grid-template-columns:repeat(3,1fr)}}

/* Unified home geometry: remove legacy height/padding conflicts. */
.home .hb-center{padding:0;min-height:0;display:flex;flex-direction:column}.home .hb-center-photo{min-height:0;flex:none;position:relative;aspect-ratio:16/10;height:auto;order:0}.home .hb-center-photo img{position:absolute;inset:0;object-position:center}.home .hb-center-content{padding:clamp(22px,3vw,32px);flex:1;display:flex;flex-direction:column;align-items:flex-start}.home .hb-center-content .roundlink{margin-top:auto}.home .hb-center h3{overflow-wrap:normal;word-break:normal}.home .services>.svc{display:flex;align-items:center;gap:18px;min-width:0;padding:24px;min-height:122px}.home .svc>img{width:60px!important;height:60px!important;object-fit:contain;animation:none!important;transform:none!important;filter:none}.home .svc strong{font-size:clamp(16px,1.35vw,20px);line-height:1.6;overflow-wrap:normal;word-break:normal}.home .svc>svg{display:none}.home .doctors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}.home .doc{width:100%;max-width:none;min-width:0;margin:0}.home .doc img{height:auto;max-height:none;aspect-ratio:4/5;object-position:50% 20%}.home .doc h3{font-size:clamp(18px,1.45vw,23px);line-height:1.55;overflow-wrap:normal;word-break:normal}.home .doc p{font-size:15px;line-height:1.65;overflow-wrap:normal}.home .principle p{max-width:75ch;width:100%;color:var(--brand-ink)}.home .principle h2{color:var(--brand-deep)}.home .section-head>span{max-width:40ch;line-height:1.6}.home .hero .hb-main-motto{font-size:clamp(22px,2.2vw,32px);line-height:1.4}.home .hero .hb-second-motto{font-size:18px;line-height:1.6}.home .home-guide-card{min-width:0}.home .news-desk-front>*{min-width:0}#footer .bmc-harbor-story figcaption{opacity:1;color:var(--brand-deep);text-shadow:0 1px white}
@media(max-width:1000px){.home .doctors{grid-template-columns:repeat(2,minmax(0,1fr))}.home .services>.svc{padding:18px;gap:12px}.home .svc>img{width:48px!important;height:48px!important}}
@media(max-width:650px){.home .services:has(>.svc:nth-child(5):last-child){grid-template-columns:1fr}.home .services>.svc{min-height:88px}.home .svc strong{font-size:18px}.home .doc h3{font-size:17px}.home .doc p{font-size:14px}.home .doc :is(h3,p){margin-inline:12px}.home .hb-center-content{padding:22px}.home .principle{padding:24px}.home .section-head h2{line-height:1.4}}
@media(max-width:380px){.home .doctors{grid-template-columns:1fr}}
.hb-contact-visual{max-width:1280px;margin:0 auto;padding:52px 24px 72px;color:var(--brand-ink)}.hb-contact-visual>header{max-width:800px;margin-bottom:36px}.hb-contact-visual h2{font-size:clamp(28px,4vw,46px);line-height:1.4;color:var(--brand-deep);margin:14px 0}.hb-contact-visual p{font-size:17px;line-height:1.8}.hb-contact-visual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.hb-contact-visual-grid article{border:1px solid #dce7e4;border-radius:26px;overflow:hidden;background:white;box-shadow:0 16px 45px -30px #17464d55;display:flex;flex-direction:column}.hb-contact-center-photo{display:block;aspect-ratio:16/10;background:#eaf2f1;overflow:hidden}.hb-contact-center-photo img{width:100%;height:100%;object-fit:cover;display:block}.hb-contact-photo-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:linear-gradient(140deg,#e4f1ee,#e9e8f5);color:var(--brand-deep)}.hb-contact-photo-placeholder strong{font-size:44px}.hb-contact-center-info{padding:30px;flex:1;display:flex;flex-direction:column}.hb-contact-center-info>span{color:var(--brand-mid);font-weight:700}.hb-contact-center-info h3{font-size:26px;line-height:1.5;color:var(--brand-deep);margin:10px 0}.hb-contact-center-info p{margin:0 0 16px}.hb-contact-center-info address{font-style:normal;font-size:16px}.hb-contact-numbers{display:grid;gap:14px;margin:24px 0}.hb-contact-numbers a{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e3ece9;padding-top:14px;text-decoration:none;color:var(--brand-deep)}.hb-contact-numbers span{font-size:14px}.hb-contact-numbers strong{font-size:24px;white-space:nowrap}.hb-contact-links{display:flex;flex-wrap:wrap;gap:16px;margin-top:auto;padding-top:16px;align-items:center}.hb-contact-links a:first-child{padding:12px 18px;border-radius:12px;background:var(--brand-deep);color:white;text-decoration:none}.hb-contact-mail{text-align:center;padding:24px}.hb-activity-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.hb-activity-filters button{font:inherit;font-size:14px;border:1px solid #cfdfda;border-radius:30px;padding:11px 16px;background:white;color:var(--brand-deep);cursor:pointer;display:flex;gap:10px;align-items:center}.hb-activity-filters button[aria-pressed=true]{background:var(--brand-deep);color:white}.hb-activity-filters button:focus-visible{outline:3px solid #709ccd;outline-offset:3px}.hb-activity-filters button span{opacity:.8}.hb-gallery-count{font-size:14px;margin-bottom:24px;color:var(--brand-ink)}@media(max-width:700px){.hb-contact-visual-grid{grid-template-columns:1fr}.hb-contact-visual{padding:30px 16px 44px}.hb-contact-center-info{padding:22px}.hb-contact-numbers strong{font-size:21px}.hb-contact-numbers a{flex-wrap:wrap;gap:8px}.hb-contact-center-info h3{font-size:23px}}

/* One gallery: consistent photo frames and captions that can grow naturally. */
.hb-unified-gallery .bmc-album-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.hb-unified-gallery .bmc-album-heading h2{font-size:clamp(24px,3vw,36px);margin:0 0 8px;line-height:1.4}
.hb-unified-gallery .bmc-album-heading p{font-size:15px;line-height:1.8;margin:0;color:var(--brand-ink);opacity:.8}
.hb-unified-gallery .bmc-album-heading>span{flex:none;border:1px solid #dce7e4;background:white;border-radius:30px;padding:9px 14px;font-size:13px}
.hb-unified-gallery .bmc-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.hb-unified-gallery.bmc-album-page .bmc-album-card:nth-child(n){display:flex;flex-direction:column;aspect-ratio:auto;min-height:0;grid-column:auto;grid-row:auto;border-radius:20px;overflow:hidden;position:relative;background:#fff;box-shadow:0 8px 22px -18px #123d4755}
.hb-unified-gallery.bmc-album-page .bmc-album-card img{position:static;inset:auto;width:100%;height:auto;aspect-ratio:4/3;flex:none;display:block;object-fit:cover}
.hb-unified-gallery.bmc-album-page .bmc-album-caption{position:static;inset:auto;display:block;width:100%;box-sizing:border-box;flex:1;font:500 16px/1.75 Arial,sans-serif;padding:20px;background:#fff;color:var(--brand-ink);text-shadow:none;white-space:normal;overflow-wrap:anywhere;word-break:normal;-webkit-line-clamp:unset;overflow:visible;max-height:none}
.hb-unified-gallery .bmc-album-expand{width:32px;height:32px;font-size:20px}
.hb-unified-gallery .bmc-album-card:focus-visible{outline:3px solid var(--brand-mid);outline-offset:4px}
@media(max-width:800px){.hb-unified-gallery .bmc-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:500px){.hb-unified-gallery .bmc-album-heading{align-items:start;flex-direction:column;gap:14px}.hb-unified-gallery .bmc-album-grid{grid-template-columns:1fr}.hb-unified-gallery .bmc-album-card{border-radius:16px}}
