.business-gallery{padding-top:76px;padding-bottom:80px;border-top:1px solid #dce8e5}
.bg-heading{max-width:700px;margin-bottom:30px}
.bg-heading h2{margin:0 0 14px;font-size:clamp(2rem,3.6vw,3.1rem);line-height:1.13;color:#153f50}
.bg-heading>p:last-child{margin:0;color:#526975;line-height:1.75}
.bg-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:32px;align-items:start}
.bg-featured,.bg-source-panel,.bg-layout>*{min-width:0}
.bg-photo-link{position:relative;display:block;overflow:hidden;border-radius:14px;background:#e7f0ed}
.bg-photo-link>img{display:block;width:100%;height:auto;max-height:490px;object-fit:contain;background:#edf4f0}
.bg-photo-link:focus-visible{outline:3px solid #087d98;outline-offset:5px}
.bg-photo-count{position:absolute;left:18px;bottom:18px;padding:7px 12px;background:#fbfcfa;color:#153f50;border-radius:30px;font-size:.75rem;font-weight:700;box-shadow:0 2px 12px #153f501a}
.bg-photo-caption{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:18px}
.bg-photo-caption p{max-width:390px;margin:0;font-size:.78rem;line-height:1.6;color:#526975}
.bg-photo-caption .button{flex-shrink:0}
.bg-thumbnails{display:flex;gap:12px;overflow:auto;padding:20px 3px 8px;scrollbar-width:thin}
.bg-thumbnails>a{flex:0 0 100px;height:78px;border-radius:8px;overflow:hidden;background:#edf4f0}
.bg-thumbnails img{display:block;width:100%;height:100%;object-fit:cover}
.bg-thumbnails>a:focus-visible{outline:3px solid #087d98;outline-offset:3px}
.bg-source-panel{display:grid;gap:20px}
.bg-google-card,.bg-owner-card{padding:30px;border-radius:14px}
.bg-google-card{margin-top:32px;background:#e7f2ef;border:1px solid #d7e9e3}
.bg-google-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.bg-google-heading .bg-source-label{margin-bottom:12px}
.bg-google-status{flex-shrink:0;max-width:240px;padding:8px 13px;border:1px solid #bad7cf;border-radius:20px;background:#f8fcfa;font-size:.72rem;font-weight:600;line-height:1.5;color:#32635d;text-align:center}
.bg-google-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:26px}
.bg-google-placeholder{min-width:0;margin:0}
.bg-google-placeholder-art{display:flex;aspect-ratio:4/3;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:20px;border:1px dashed #9ebfb5;border-radius:10px;background:linear-gradient(145deg,#f7fbf8,#dbeae5);color:#577c74;text-align:center}
.bg-google-placeholder-art svg{width:64px;max-width:50%;height:auto;opacity:.7}
.bg-google-placeholder-art span{font-size:.77rem;font-weight:600;line-height:1.5}
.bg-google-placeholder figcaption{padding-top:13px;font-size:.72rem;line-height:1.6;color:#526975}
.bg-google-card p.bg-google-note{margin:24px 0 0;font-size:.77rem;line-height:1.6}
.bg-source-label,.bg-empty-label{display:block;margin-bottom:20px;font-size:.67rem;font-weight:700;letter-spacing:.14em;color:#087d98}
.bg-google-card h3,.bg-owner-card h3,.bg-empty h3{margin:0 0 14px;font-size:1.35rem;line-height:1.3;color:#153f50}
.bg-google-card p,.bg-owner-card p,.bg-empty>p{margin:0 0 24px;font-size:.91rem;line-height:1.75;color:#526975}
.bg-owner-card{background:#f5f1e9;border:1px solid #e8e2d7}
.bg-owner-card h3{font-size:1.08rem}
.bg-owner-card p{font-size:.85rem}
.bg-empty{padding:32px;border-radius:14px;background:#f1f7f5;border:1px solid #deebe6}
.bg-empty>p{max-width:540px}
.bg-center-photo{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:20px;margin:32px 0 0;padding-top:26px;border-top:1px solid #d8e6e0}
.bg-center-photo>div{height:150px;border-radius:8px;overflow:hidden;background:#207299}
.bg-center-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:47% 47%}
.bg-center-photo figcaption{font-size:.75rem;line-height:1.7;color:#526975}
.bg-center-photo strong{display:block;color:#153f50;font-size:.88rem;margin-bottom:7px}
.bg-dialog{box-sizing:border-box;width:min(1040px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:0;border-radius:16px;background:#fbfcfa;color:#153f50;box-shadow:0 20px 90px #001e2a66;overflow:auto}
.bg-dialog::backdrop{background:#082d3bd9;backdrop-filter:blur(6px)}
.bg-dialog-content{padding:24px}
.bg-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}
.bg-dialog-header p{margin:0 0 5px;font-size:.73rem;line-height:1.5;color:#526975}
.bg-dialog-header h2{font-size:1.65rem;line-height:1.2;margin:0}
.bg-dialog-header .button{flex-shrink:0}
.bg-dialog-image{display:flex;align-items:center;justify-content:center;min-height:120px;border-radius:8px;overflow:hidden;background:#eaf1ee}
.bg-dialog-image>img{display:block;max-width:100%;max-height:56dvh;width:auto;height:auto;object-fit:contain}
.bg-dialog-caption{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0 22px}
.bg-dialog-caption p{margin:0;color:#526975;font-size:.81rem;line-height:1.6}
.bg-dialog-caption .button{flex-shrink:0}
.bg-dialog [hidden]{display:none!important}
.bg-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:20px;border-top:1px solid #d8e6e0}
.bg-dialog-footer>span{font-size:.8rem;color:#526975;text-align:center}
.bg-dialog button:disabled{opacity:.4;cursor:default}
@media(max-width:800px){.bg-layout{grid-template-columns:minmax(0,1fr);gap:24px}.bg-google-card,.bg-owner-card{padding:24px}.bg-photo-link>img{max-height:460px}.bg-google-heading{gap:18px}.bg-google-previews{gap:14px}.bg-google-placeholder-art{padding:16px;gap:12px}}
@media(max-width:520px){.business-gallery{padding-top:48px;padding-bottom:50px}.bg-heading{margin-bottom:24px}.bg-source-panel{grid-template-columns:1fr;gap:16px}.bg-google-card{margin-top:24px}.bg-google-heading{flex-direction:column;gap:0}.bg-google-status{max-width:none;margin:0 0 18px}.bg-google-previews{grid-template-columns:1fr;gap:22px}.bg-google-placeholder-art{aspect-ratio:16/9}.bg-google-placeholder-art svg{width:48px}.bg-google-placeholder figcaption{padding-top:10px}.bg-photo-caption{align-items:flex-start;flex-direction:column;gap:15px}.bg-photo-caption p{max-width:none}.bg-photo-count{left:12px;bottom:12px}.bg-empty{padding:24px}.bg-center-photo{grid-template-columns:90px minmax(0,1fr);gap:16px}.bg-center-photo>div{height:128px}.bg-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:10px}.bg-dialog-content{padding:16px}.bg-dialog-header{align-items:flex-start;gap:14px;margin-bottom:18px}.bg-dialog-header h2{font-size:1.35rem}.bg-dialog-header .button{padding:10px 12px;font-size:.69rem}.bg-dialog-caption{align-items:flex-start;flex-direction:column;gap:14px}.bg-dialog-footer{gap:8px}.bg-dialog-footer .button{padding:11px 14px}.bg-dialog-image>img{max-height:52dvh}}

/* One photo at a time keeps the Google area compact and swipeable. */
.bg-google-carousel{max-width:680px;margin:25px auto 0;min-width:0}
.bg-google-carousel .bg-google-previews{display:flex;gap:0;margin:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:10px;overscroll-behavior-x:contain}
.bg-google-carousel .bg-google-previews::-webkit-scrollbar{display:none}
.bg-google-carousel .bg-google-previews:focus-visible{outline:3px solid #087d98;outline-offset:5px}
.bg-google-carousel .bg-google-placeholder{flex:0 0 100%;width:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;padding:1px}
.bg-google-carousel .bg-google-placeholder-art{aspect-ratio:auto;height:clamp(160px,27vw,220px);padding:20px}
.bg-google-carousel .bg-google-placeholder figcaption{font-size:.75rem;min-height:35px;padding-top:13px}
.bg-google-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding-top:18px;border-top:1px solid #cbdfd8}
.bg-google-controls>span{font-size:.8rem;color:#526975;white-space:nowrap}
.bg-google-controls button:disabled{opacity:.4;cursor:default}
.bg-google-controls[hidden]{display:none!important}
@media(max-width:520px){.bg-google-carousel{margin-top:18px}.bg-google-carousel .bg-google-placeholder-art{height:165px;gap:10px}.bg-google-controls{gap:10px;margin-top:16px}.bg-google-controls .button{padding:10px 14px;min-height:42px;font-size:.72rem}.bg-google-card p.bg-google-note{font-size:.72rem;line-height:1.7}}

/* Keep photo captions and gallery controls comfortable on phones. */
@media(max-width:600px){
  .business-gallery .bg-heading h2{line-height:1.25}
  .business-gallery .bg-heading>p:last-child{font-size:14px;line-height:1.8}
  .business-gallery :is(.bg-photo-caption p,.bg-center-photo figcaption,.bg-google-placeholder figcaption,.bg-dialog-caption p,.bg-dialog-header p){font-size:13px;line-height:1.7;overflow-wrap:anywhere}
  .business-gallery .bg-google-card p.bg-google-note{font-size:13px;line-height:1.75}
  .business-gallery :is(.bg-google-placeholder-art span,.bg-google-status){font-size:13px;line-height:1.6}
  .business-gallery :is(.bg-source-label,.bg-empty-label){font-size:12px;line-height:1.6;letter-spacing:.09em}
  .business-gallery :is(.bg-photo-caption,.bg-owner-card,.bg-empty,.bg-dialog,.bg-google-controls) .button{min-height:46px;font-size:14px;line-height:1.5;justify-content:center;text-align:center}
  .business-gallery .bg-google-controls .button{padding:10px 12px;font-size:13px}
  .business-gallery .bg-google-controls>span{font-size:13px}
  .business-gallery .bg-dialog-footer .button{padding:10px 12px;font-size:13px}
  .business-gallery .bg-dialog-footer>span{font-size:13px;white-space:nowrap}
  .business-gallery .bg-dialog-header h2{line-height:1.25}
}
@media(max-width:430px){
  .business-gallery .bg-dialog-header{flex-direction:column;align-items:stretch;gap:16px}
  .business-gallery .bg-dialog-header .button{align-self:flex-end;min-width:132px}
  .business-gallery .bg-photo-caption .button{width:100%}
  .business-gallery .bg-owner-card .button{width:100%}
}
