.location-gallery {
  padding-top: 48px;
  padding-bottom: 80px;
  border-top: 1px solid var(--inst-line);
  scroll-margin-top: 104px;
}
.location-gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 60px;
  align-items: end;
  margin-bottom: 36px;
}
.location-gallery-heading h2 { margin-top: 0; }
.location-gallery-heading h2 span { color: var(--inst-green); }
.location-gallery-heading > p { font-size: 14px; }
.location-address-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 18px 20px;
  border: 1px solid #dce6d7;
  border-radius: 3px;
  background: #e9eee7;
  margin-bottom: 28px;
}
.location-address-strip > div { display: flex; gap: 12px; align-items: center; min-width: 0; }
.location-address-strip > div > .icon { color: var(--inst-green); width: 20px; height: 20px; flex-shrink: 0; }
.location-address-strip address { font-size: 13px; line-height: 1.8; font-style: normal; }
.location-address-strip .inst-inline-link { flex-shrink: 0; }
.location-landscapes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.location-photo { min-width: 0; }
.location-photo-link { display: block; position: relative; overflow: hidden; border-radius: 2px; color: var(--inst-forest); }
.location-photo-link:focus-visible { outline: 3px solid #0869ad; outline-offset: 4px; }
.location-photo img, .location-contact-photo img { display: block; width: 100%; height: auto; background: #e5ebe6; }
.location-photo-enlarge {
  display: grid;
  place-items: center;
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  color: var(--inst-forest);
  background: #fff;
  border: 1px solid #dce3df;
  box-shadow: 0 3px 12px rgb(12 36 20 / 10%);
  transition: background 160ms, color 160ms;
}
.location-photo-link:hover .location-photo-enlarge,
.location-photo-link:focus-visible .location-photo-enlarge { background: var(--inst-green); border-color: var(--inst-green); color: #fff; }
.location-photo-enlarge .icon { width: 18px; height: 18px; }
.location-photo figcaption { display: flex; align-items: baseline; gap: 12px; min-height: 56px; padding: 14px 0 12px; border-bottom: 1px solid var(--inst-line); font-size: 12px; line-height: 1.7; font-weight: 650; color: var(--inst-forest); }
.location-photo-number { display: inline-grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border: 1px solid #bccdbd; color: #376346; font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; font-weight: 750; }
.location-photo-hint { display: inline-flex; gap: 6px; align-items: center; flex-shrink: 0; margin-left: auto; color: #607168; font-size: 12px; font-weight: 500; }
.location-photo-hint .icon { width: 14px; height: 14px; }
.location-gallery-subheading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--inst-line); padding-top: 24px; margin-top: 36px; margin-bottom: 24px; }
.location-gallery-subheading h3 { font-size: 17px; line-height: 1.5; font-weight: 750; letter-spacing: -.03em; }
.location-gallery-subheading > span { color: #4f6554; font-size: 11px; line-height: 1.5; letter-spacing: .06em; }
.location-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.location-photo-grid .location-photo-hint { display: none; }
.location-contact-photo > a { display: block; border-radius: 2px; overflow: hidden; }
.location-contact-photo figcaption { margin-top: 12px; color: #607168; font-size: 12px; line-height: 1.7; }
.location-viewer {
  width: min(1120px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid #dce3df;
  border-radius: 5px;
  background: #fff;
  color: #152722;
  overflow: auto;
  overscroll-behavior: contain;
}
.location-viewer::backdrop { background: rgb(9 23 18 / 88%); }
.location-viewer-panel { display: grid; gap: 18px; padding: 24px; }
.location-viewer-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.location-viewer-header > div { min-width: 0; }
.location-viewer-counter { color: #607168; font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: .04em; }
.location-viewer .location-viewer-header h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: 18px; line-height: 1.4; letter-spacing: -.04em; color: #152722; }
.location-viewer button, .location-viewer-original { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; border: 1px solid #c8d5cc; border-radius: 3px; padding: 10px 14px; background: #fff; color: #152722; font: 700 12px/1.5 var(--font); cursor: pointer; }
.location-viewer .location-viewer-close { padding: 10px; flex-shrink: 0; }
.location-viewer button:hover, .location-viewer-original:hover { border-color: #087f5b; background: #edf4ef; color: #102d25; }
.location-viewer button:focus-visible, .location-viewer-original:focus-visible { outline: 3px solid #0869ad; outline-offset: 3px; }
.location-viewer button .icon, .location-viewer-original .icon { width: 18px; height: 18px; }
.location-viewer-stage { display: grid; place-items: center; position: relative; min-height: 160px; background: #10241c; border-radius: 4px; }
.location-viewer-image { display: block; width: auto; height: auto; max-width: 100%; max-height: min(62dvh, 700px); object-fit: contain; }
.location-viewer-status { position: absolute; z-index: 1; max-width: 360px; margin: 18px; padding: 12px 16px; border-radius: 4px; background: #fff; font-size: 14px; line-height: 1.7; text-align: center; }
.inst-page .location-viewer-status { color: #152722; }
.location-viewer-footer, .location-viewer-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.location-viewer-footer { justify-content: space-between; gap: 12px 20px; }
.inst-page .location-viewer-help { margin: 0; color: #607168; font-size: 12px; line-height: 1.7; }
html.location-viewer-open { overflow: hidden; }
@media (max-width: 1100px) {
  .location-gallery-heading { grid-template-columns: minmax(0, 1fr) 250px; gap: 36px; }
  .location-photo-hint { display: none; }
}
@media (max-width: 1000px) {
  .location-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .location-gallery { padding-top: 40px; padding-bottom: 64px; }
  .location-gallery-heading { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .location-gallery-heading > p { max-width: 500px; }
  .location-address-strip { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (max-width: 700px) {
  .location-landscapes { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 580px) {
  .location-gallery { padding-top: 40px; padding-bottom: 52px; scroll-margin-top: 96px; }
  .location-gallery-heading { gap: 18px; margin-bottom: 26px; }
  .location-gallery-heading h2 { margin-top: 18px; }
  .location-address-strip { padding: 16px 18px; margin-bottom: 24px; }
  .location-address-strip > div { gap: 10px; align-items: flex-start; }
  .location-address-strip > div > .icon { margin-top: 3px; }
  .location-address-strip address { font-size: 12px; }
  .location-photo-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .location-photo figcaption { gap: 10px; padding-top: 12px; }
  .location-gallery-subheading { margin-top: 28px; padding-top: 22px; margin-bottom: 20px; }
  .location-gallery-subheading h3 { font-size: 16px; }
  .location-viewer { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 4px; }
  .location-viewer-panel { padding: 14px; gap: 14px; }
  .location-viewer .location-viewer-header h2 { font-size: 15px; }
  .location-viewer-image { max-height: 58dvh; }
  .location-viewer button, .location-viewer-original { padding: 10px; }
}
@media (max-width: 767px) {
  .location-gallery-heading > p { font-size: 15px; line-height: 1.85; }
  .location-address-strip address { font-size: 15px; line-height: 1.85; }
  .location-address-strip .inst-inline-link { width: 100%; min-height: 48px; font-size: 14px; }
  .location-photo figcaption { min-height: 64px; font-size: 14px; line-height: 1.7; gap: 12px; }
  .location-photo-number { width: 28px; height: 28px; font-size: 12px; }
  .location-gallery-subheading h3 { font-size: 19px; }
  .location-gallery-subheading > span { font-size: 12px; }
  .location-contact-photo figcaption { font-size: 14px; line-height: 1.8; }
  .location-viewer-counter { font-size: 13px; }
  .location-viewer .location-viewer-header h2 { font-size: 18px; line-height: 1.45; }
  .location-viewer button, .location-viewer-original { min-height: 48px; font-size: 14px; padding: 12px; }
  .location-viewer .location-viewer-close { min-width: 48px; }
  .location-viewer-navigation { width: 100%; }
  .location-viewer-navigation button { flex: 1; }
  .location-viewer-original { width: 100%; }
  .inst-page .location-viewer-help { font-size: 14px; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  .location-photo-enlarge, .location-photo-link { transition: none; }
}
