/* Share a compact frame across branch tabs and let long addresses wrap. */
#branch-panel {
  --branch-photo-height: 270px;
  --branch-copy-min-height: 138px;
}
#branch-panel .branch-address-card {
  max-inline-size: 650px;
  margin-inline: auto;
  padding: 14px 14px 16px;
}
#branch-panel .branch-company-photo,
#branch-panel.branch-panel--assiut .branch-company-photo {
  height: var(--branch-photo-height);
  aspect-ratio: auto;
  margin-block-end: 12px;
}
#branch-panel .branch-company-photo--cairo::before { content: none; }
#branch-panel .branch-company-photo--cairo::after,
#branch-panel .branch-company-photo--assiut::after { display: block; }
#branch-panel .branch-company-photo img,
#branch-panel .branch-company-photo--assiut img {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  scale: 1 !important;
  transform: none !important;
}
.branch-photo-album { position: absolute; inset: 0; z-index: 1; isolation: isolate; }
.branch-photo-album .nile-album-page::after { background: linear-gradient(0deg, #041e3073, transparent 46%); }
.branch-photo-caption {
  position: absolute;
  z-index: 2;
  inset-block-start: 16px;
  inset-inline-end: 18px;
  padding: 6px 10px;
  border-radius: 7px;
  background: #062434b3;
  color: #fff;
  font-size: 10px;
}
#branch-panel .branch-address-copy {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 6px;
  min-block-size: var(--branch-copy-min-height);
  margin-inline: 8px;
  min-width: 0;
}
#branch-panel .branch-address-copy .branch-address-heading,
#branch-panel .branch-address-copy h3,
#branch-panel .branch-address-copy p,
#branch-panel .branch-address-copy .text-link { margin: 0; }
#branch-panel .branch-address-copy h3 { line-height: 1.5; }
#branch-panel .branch-address-copy .text-link { justify-self: start; }
@media (min-width: 701px) {
  #branch-panel .branch-address-card {
    max-inline-size: 520px;
    margin-inline: auto 0;
  }
}
@media (max-width: 700px) {
  #branch-panel {
    --branch-photo-height: 220px;
    --branch-copy-min-height: 160px;
  }
  #branch-panel .branch-address-card { padding: 10px 10px 13px; }
  #branch-panel .branch-address-copy { margin-inline: 6px; }
}
