
:root{color-scheme:light;--navy:#103779;--red:#e90b28;--blue:#0e489e;--muted:#596e87;--border:#dbe5f1}
*{box-sizing:border-box}body{margin:0;font-family:Inter,"Segoe UI",Arial,sans-serif;background:#f4f7fc;color:#152746;line-height:1.62}
a{color:inherit}a:hover{color:var(--red)}.container{width:min(1120px,calc(100% - 40px));margin:auto}
header{background:white;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}
header .container{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:20px}
header .brand{display:flex;align-items:center;gap:12px;color:var(--navy);font-weight:850;text-decoration:none;line-height:1.3}
header .brand img{width:68px;height:54px;object-fit:contain}
header nav{display:flex;flex-wrap:wrap;gap:16px;font-weight:750;font-size:.9rem;color:#385375}
header nav a{text-decoration:none}
.crumb{padding-top:29px;color:#65738c;font-size:.84rem}.crumb a{text-decoration:none;color:var(--blue)}
.hero{display:grid;grid-template-columns:1.4fr .6fr;gap:35px;align-items:center;margin:20px 0 32px;border-radius:23px;padding:50px 54px;background:linear-gradient(130deg,#113b87,#072a66);color:#fff}
.hero h1{font-size:clamp(2rem,4.3vw,3.2rem);line-height:1.13;margin:13px 0 20px;letter-spacing:-.04em}
.hero p{color:#d3e2fd;max-width:670px}.eyebrow{color:#ffabb3;font-size:.76rem;letter-spacing:.1em;font-weight:800;text-transform:uppercase}
.target{width:180px;height:180px;margin:auto;border:2px solid #8daade;border-radius:100%;box-shadow:inset 0 0 0 26px #0d3174,inset 0 0 0 28px #8daade,inset 0 0 0 54px #0d3174,inset 0 0 0 56px #8daade,inset 0 0 0 76px #0d3174,inset 0 0 0 78px #ed1837}
.main-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:start;margin-bottom:28px}
.panel{background:white;border:1px solid var(--border);border-radius:18px;padding:27px;box-shadow:0 10px 26px #163e7a09}
.panel h2{font-size:1.4rem;line-height:1.2;color:var(--navy);margin:0 0 17px}
.info{display:grid;grid-template-columns:155px 1fr;gap:16px;border-bottom:1px solid #eaf0f7;padding:15px 0}
.info:last-child{border-bottom:0}.info b{color:#526b8a}.info p{margin:0}
.photos{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.placeholder{min-height:190px;padding:16px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:11px;background:linear-gradient(135deg,#eaf0fa,#e0eafa);border:1px dashed #b3c9e6;border-radius:14px;text-align:center;color:#527094}
.placeholder svg{width:44px;height:44px;stroke:#6888b6;fill:none;stroke-width:1.5}
.placeholder small{color:#7489a2}
.trainer{display:flex;gap:17px;align-items:center;border:1px solid #e4eaf4;padding:16px;border-radius:12px;margin-top:14px}
.trainer .avatar{width:86px;min-width:86px;height:96px;border-radius:13px;background:#e9eef9;display:grid;place-items:center;font-size:1.9rem;color:#7894ba}
.trainer h3{font-size:1.08rem;color:#0b397f;margin:0 0 5px}
.trainer p{font-size:.84rem;color:var(--muted);margin:0}
.hint{font-size:.86rem;color:#586e8f;background:#f2f6fc;padding:14px 17px;border-left:3px solid var(--red);border-radius:5px}
.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:28px}
.return{display:inline-block;padding:13px 20px;border-radius:10px;background:#e90b28;color:white;text-decoration:none;font-weight:850;margin:10px 0 50px}
footer{padding:35px 0;background:#092755;color:#d1ddeb;font-size:.85rem}
@media(max-width:720px){.container{width:min(100% - 28px,1120px)}header .container{min-height:73px}.brand{max-width:220px;font-size:.72rem}header nav{gap:10px;font-size:.73rem}.hero{padding:32px 24px;grid-template-columns:1fr}.target{width:130px;height:130px}.main-grid,.grid-two{grid-template-columns:1fr}.photos{grid-template-columns:1fr}.info{grid-template-columns:1fr;gap:3px;padding:12px 0}.panel{padding:21px}.hero h1{font-size:2.1rem}}

/* v7: neutral, deliberately empty placeholder photographs. */
.image-placeholder {width:100%;height:auto;display:block;aspect-ratio:3/2;object-fit:cover;background:#d9dde2;border-radius:12px;}
.photo-tile {margin:0;} .photo-tile figcaption{font-size:.82rem;color:#65758e;margin-top:9px;}
.coach-photo {display:block;width:100px;height:124px;flex:0 0 100px;border-radius:10px;object-fit:cover;background:#d9dde2;}
.trainer {align-items:flex-start;} .trainer h3 {margin-top:2px;}
.trainer-list {display:grid;gap:12px;} .branch-card {padding:23px;border:1px solid #dce5f1;border-radius:15px;background:#f7faff;margin-top:16px;}
.branch-card h3 {color:#153e80;font-size:1.16rem;margin:0 0 11px;} .branch-card .info{grid-template-columns:120px minmax(0,1fr);padding:9px 0;}
.branch-card .branch-photos{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:16px 0;}
.branch-card .branch-photos img{aspect-ratio:3/2;}
.branch-card .branch-trainers h4{margin:21px 0 12px;color:#153e80;font-size:.95rem;}
.school-placeholder-info{font-size:.88rem;color:#67758c;background:#f1f4f8;padding:14px;border-radius:10px;}
.school-notice{font-size:.86rem;color:#6b7992;margin:12px 0 0;}
@media(max-width:720px){.branch-card{padding:17px}.branch-card .info{grid-template-columns:1fr;gap:2px}.branch-card .branch-photos{gap:9px}.coach-photo{width:80px;min-width:80px;height:101px;flex-basis:80px}}
@media(max-width:370px){.brand span{font-size:.66rem}.trainer{gap:10px;padding:12px}}

/* v8: developer attribution */
footer .dev-credit {display:inline-block;margin-top:11px;}
footer .dev-credit a {color:#fff;text-decoration:underline;text-underline-offset:3px;font-weight:750;}
footer .dev-credit a:hover,footer .dev-credit a:focus-visible {color:#ffbfc9;}

/* Click-to-enlarge photo viewer */
img.is-zoomable{cursor:zoom-in;transition:filter .18s ease,transform .18s ease}
img.is-zoomable:hover{filter:brightness(.97)}
img.is-zoomable:focus-visible{outline:3px solid #e90b28;outline-offset:3px}
.photo-lightbox{width:min(96vw,1400px);max-width:96vw;max-height:94dvh;padding:0;border:0;border-radius:16px;background:#071d42;color:#fff;box-shadow:0 24px 80px #06163099;overflow:hidden}
.photo-lightbox::backdrop{background:rgba(3,13,30,.88);backdrop-filter:blur(4px)}
.photo-lightbox__bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 14px 10px 20px;min-height:54px}
.photo-lightbox__caption{margin:0;font-size:.92rem;font-weight:750;color:#fff}
.photo-lightbox__close{width:38px;height:38px;flex:0 0 38px;border:1px solid #ffffff55;border-radius:50%;background:#ffffff16;color:#fff;font-size:28px;line-height:1;cursor:pointer}
.photo-lightbox__close:hover{background:#e90b28;border-color:#e90b28}
.photo-lightbox__figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 12px 12px}
.photo-lightbox__image{display:block;max-width:calc(96vw - 24px);max-height:calc(94dvh - 105px);width:auto;height:auto;object-fit:contain;border-radius:8px}
.photo-lightbox__description{font-size:.82rem;color:#d8e4f7;text-align:center;padding:0 12px 4px}
@media(max-width:600px){.photo-lightbox{width:100vw;max-width:100vw;max-height:100dvh;border-radius:0}.photo-lightbox__image{max-width:calc(100vw - 16px);max-height:calc(100dvh - 100px)}.photo-lightbox__bar{padding:8px 12px 8px 16px}}

/* v8.2: keep school gallery thumbnails compact; full-size opens in lightbox. */
.photos,
.branch-card .branch-photos {grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;}
.photo-tile {min-width:0;max-width:100%;overflow:hidden;}
.photo-tile img:not(.image-placeholder) {display:block;width:100%;height:clamp(170px,18vw,245px);max-width:100%;aspect-ratio:4/3;object-fit:cover;object-position:center;border-radius:12px;background:#e3e7ec;}
.photo-tile img.image-placeholder {width:100%;height:auto;max-width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;}
.branch-card .branch-photos img:not(.image-placeholder) {width:100%;height:clamp(150px,16vw,220px);max-width:100%;aspect-ratio:4/3;object-fit:cover;}
@media(max-width:720px){
  .photos,.branch-card .branch-photos {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .photo-tile img:not(.image-placeholder),.branch-card .branch-photos img:not(.image-placeholder){height:clamp(130px,40vw,190px);}
  .photo-tile figcaption{font-size:.76rem;line-height:1.4;}
}
@media(max-width:360px){
  .photos,.branch-card .branch-photos {grid-template-columns:1fr;}
  .photo-tile img:not(.image-placeholder),.branch-card .branch-photos img:not(.image-placeholder){height:210px;}
}

/* v8.5: fix grid overflow, show complete photos and provide swipeable gallery. */
.main-grid,
.grid-two {grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);}
.main-grid > *,
.grid-two > *,
.panel,
.photos,
.branch-card,
.branch-card .branch-photos {min-width:0;}

.photo-gallery {position:relative;min-width:0;width:100%;}
.photo-gallery__track {
  display:flex !important;
  flex-wrap:nowrap;
  gap:16px;
  width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  padding:3px 2px 13px;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:2px;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#8da8cb #e8eef7;
}
.photo-gallery__track > .photo-tile {
  flex:0 0 calc(50% - 8px);
  width:calc(50% - 8px);
  min-width:0;
  max-width:none;
  scroll-snap-align:start;
  overflow:visible;
}
.photo-tile img:not(.image-placeholder) {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:300px;
  margin:0 auto;
  object-fit:contain;
  object-position:center center;
  image-rendering:auto;
  background:transparent;
  border-radius:10px;
}
.branch-card .branch-photos img:not(.image-placeholder) {
  width:auto;
  height:auto;
  max-width:100%;
  max-height:260px;
  margin:0 auto;
  object-fit:contain;
  object-position:center center;
  background:transparent;
}
.photo-tile {overflow:visible;}
.photo-tile figcaption {min-height:2.6em;}

/* Trainer portraits are displayed whole: no cropped hairline or chin. */
.coach-photo {
  width:118px;
  min-width:118px;
  height:164px;
  flex:0 0 118px;
  object-fit:contain;
  object-position:center top;
  background:#edf1f6;
  image-rendering:auto;
}

.photo-gallery__arrow {
  position:absolute;
  z-index:3;
  top:calc(50% - 23px);
  display:none;
  width:42px;
  height:42px;
  padding:0;
  align-items:center;
  justify-content:center;
  border:1px solid #cbd7e8;
  border-radius:50%;
  background:rgba(255,255,255,.96);
  color:#123d83;
  box-shadow:0 4px 14px rgba(10,35,75,.18);
  font-size:31px;
  line-height:1;
  cursor:pointer;
}
.photo-gallery--scrollable .photo-gallery__arrow {display:flex;}
.photo-gallery__arrow--prev {left:9px;}
.photo-gallery__arrow--next {right:9px;}
.photo-gallery__arrow:disabled {opacity:0;pointer-events:none;}
.photo-gallery__arrow:hover {background:#123d83;color:#fff;border-color:#123d83;}
.photo-gallery__track:focus-visible {outline:3px solid #e90b28;outline-offset:3px;border-radius:12px;}

/* Avoid blank white strips around photo tiles and on narrow screens. */
.photo-gallery__track::-webkit-scrollbar {height:8px;}
.photo-gallery__track::-webkit-scrollbar-track {background:#e8eef7;border-radius:20px;}
.photo-gallery__track::-webkit-scrollbar-thumb {background:#8da8cb;border-radius:20px;}
@media(max-width:720px) {
  .main-grid,.grid-two {grid-template-columns:minmax(0,1fr);}
  .photo-gallery__track {gap:12px;padding-bottom:12px;}
  .photo-gallery__track > .photo-tile {flex-basis:82%;width:82%;}
  .photo-tile img:not(.image-placeholder),
  .branch-card .branch-photos img:not(.image-placeholder) {max-height:310px;}
  .coach-photo {width:106px;min-width:106px;height:148px;flex-basis:106px;}
  .photo-gallery__arrow {width:36px;height:36px;font-size:27px;}
}
@media(max-width:370px) {
  .photo-gallery__track > .photo-tile {flex-basis:88%;width:88%;}
  .coach-photo {width:94px;min-width:94px;height:132px;flex-basis:94px;}
}

/* v8.6: give school galleries more room; larger thumbnails stay crisp. */
.main-grid {grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);}
.photo-gallery__track > .photo-tile {flex-basis:64%;width:64%;}
.photo-tile img:not(.image-placeholder) {max-height:320px;}
.branch-card .branch-photos img:not(.image-placeholder) {max-height:300px;}
@media(max-width:720px) {
  .main-grid {grid-template-columns:minmax(0,1fr);}
  .photo-gallery__track > .photo-tile {flex-basis:94%;width:94%;}
  .photo-tile img:not(.image-placeholder),
  .branch-card .branch-photos img:not(.image-placeholder) {max-height:330px;}
}
@media(max-width:370px) {
  .photo-gallery__track > .photo-tile {flex-basis:96%;width:96%;}
}


/* v9: gallery preview restored to regular photo cards; source images remain straight. */
.photo-gallery {position:relative;min-width:0;width:100%;}
.photo-gallery__track {
  display:flex !important; flex-wrap:nowrap; gap:14px; width:100%; min-width:0;
  overflow-x:auto; overflow-y:hidden; padding:3px 2px 8px;
  scroll-snap-type:x mandatory; scroll-padding-inline:2px;
  overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.photo-gallery__track::-webkit-scrollbar {display:none;}
.photo-gallery__track > .photo-tile {
  flex:0 0 calc(50% - 7px); width:calc(50% - 7px); min-width:0; max-width:none;
  overflow:hidden; scroll-snap-align:start;
}
.photo-tile {margin:0;min-width:0;}
.photo-tile img:not(.image-placeholder) {
  display:block; width:100%; height:clamp(175px,19vw,245px); max-width:100%; max-height:none;
  aspect-ratio:4/3; margin:0; object-fit:cover; object-position:center;
  border-radius:11px; background:#edf1f6; image-rendering:auto; transform:none;
}
.photo-tile figcaption {margin-top:9px;min-height:2.4em;font-size:.82rem;line-height:1.45;color:#65758e;}
.branch-card .branch-photos {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;min-width:0;}
.branch-card .branch-photos img:not(.image-placeholder) {
  display:block;width:100%;height:clamp(175px,19vw,245px);max-width:100%;max-height:none;
  aspect-ratio:4/3;object-fit:cover;object-position:center;margin:0;border-radius:11px;transform:none;
}
.coach-photo {
  width:112px;min-width:112px;height:158px;flex:0 0 112px;
  object-fit:contain;object-position:center top;background:#f1f3f6;transform:none;
}
.photo-gallery__arrow {top:calc(50% - 25px);}
@media(max-width:720px) {
  .photo-gallery__track {gap:12px;padding-bottom:8px;}
  .photo-gallery__track > .photo-tile {flex-basis:82%;width:82%;}
  .photo-tile img:not(.image-placeholder),.branch-card .branch-photos img:not(.image-placeholder) {
    height:clamp(190px,58vw,265px);max-height:none;
  }
  .photo-gallery__arrow {width:38px;height:38px;font-size:28px;}
  .coach-photo {width:104px;min-width:104px;height:154px;flex-basis:104px;}
}
@media(max-width:370px) {
  .photo-gallery__track > .photo-tile {flex-basis:88%;width:88%;}
  .photo-tile img:not(.image-placeholder),.branch-card .branch-photos img:not(.image-placeholder) {height:205px;}
}

/* v9.1: very narrow phones — keep trainer cards inside the viewport. */
@media(max-width:370px){
  .trainer{width:100%;max-width:100%;min-width:0;gap:9px;padding:12px;}
  .trainer .coach-photo{width:78px;min-width:78px;height:118px;flex:0 0 78px;}
  .trainer>div{flex:1 1 0;min-width:0;max-width:100%;overflow-wrap:anywhere;}
  .trainer h3,.trainer p,.trainer small{overflow-wrap:anywhere;}
  .trainer h3{font-size:.98rem;}
}

/* 2026-11-17: coaches placed under contacts in the left column. */
.school-column {min-width:0;display:flex;flex-direction:column;gap:24px;}
.school-column > .panel {min-width:0;}
@media (max-width:720px) {
  .school-column {gap:18px;}
  .main-grid {grid-template-columns:minmax(0,1fr);}
}

/* Навигация между площадками внизу страницы школы */
.place-pager {margin:4px 0 30px;}
.place-pager__title {font-size:1.35rem;color:#123d83;margin:0 0 16px;font-weight:850;}
.place-pager__grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.place-pager__card {display:grid;grid-template-columns:minmax(0,155px) minmax(0,1fr);align-items:center;gap:18px;padding:12px;background:#fff;border:1px solid #d9e4f1;border-radius:16px;text-decoration:none;color:#10346f;overflow:hidden;box-shadow:0 8px 26px rgba(20,54,106,.04);transition:border-color .15s ease,box-shadow .15s ease;}
.place-pager__card:hover,.place-pager__card:focus-visible {border-color:#e90b28;box-shadow:0 10px 25px rgba(20,54,106,.12);outline-offset:3px;}
.place-pager__image {width:100%;height:112px;object-fit:cover;display:block;border-radius:10px;background:#e5eaf0;}
.place-pager__image--placeholder {object-fit:contain;}
.place-pager__copy {min-width:0;overflow-wrap:anywhere;}
.place-pager__direction {display:block;font-size:.78rem;color:#637797;letter-spacing:.02em;margin-bottom:7px;font-weight:700;}
.place-pager__name {font-size:1.04rem;line-height:1.3;font-weight:850;display:block;}
.place-pager__city {font-size:.78rem;color:#62748e;display:block;margin-top:8px;}
@media(max-width:850px){.place-pager__card{grid-template-columns:minmax(0,115px) minmax(0,1fr);gap:12px}.place-pager__image{height:95px}}
@media(max-width:720px){.place-pager__grid{grid-template-columns:minmax(0,1fr);gap:12px}.place-pager__card{grid-template-columns:105px minmax(0,1fr)}.place-pager__image{height:85px}.place-pager__name{font-size:.97rem}}

/* Эскиз: full-width training sites, original federation header and gallery retained. */
#school-branches {margin:0 0 28px;}
#school-branches > .school-notice {margin:-5px 0 18px;}
.main-grid {grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);}
.branch-card--horizontal {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:28px;align-items:start;background:#fff;padding:24px;margin-top:15px;}
.branch-site,.branch-coach{min-width:0;}
.branch-site__number {display:inline-block;color:#dc102a;font-size:.76rem;font-weight:850;letter-spacing:.075em;text-transform:uppercase;margin-bottom:7px;}
.branch-card--horizontal h3 {margin:0 0 10px;font-size:1.14rem;line-height:1.35;}
.branch-site__address,.branch-site__contact{margin:6px 0;font-size:.9rem;color:#425c7d;overflow-wrap:anywhere;}
.branch-site__address span{color:#e90b28;font-size:1.26rem;font-weight:900;vertical-align:middle;}
.branch-site__contact a{color:#164788;}
.branch-card--horizontal .branch-photos {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 0;}
.branch-card--horizontal .branch-photos:has(figure:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));}
.branch-card--horizontal .branch-photos .photo-tile{min-width:0;}
.branch-card--horizontal .branch-photos img:not(.image-placeholder) {width:100%;height:140px;object-fit:cover;object-position:center;aspect-ratio:4/3;max-height:none;margin:0;border-radius:9px;transform:none;}
.branch-card--horizontal .branch-photos figcaption {font-size:.74rem;min-height:0;margin-top:6px;}
.branch-coach{border-left:1px solid #dbe5f1;padding-left:24px;align-self:stretch;}
.branch-coach h4 {color:#163c7b;font-size:1rem;margin:0 0 14px;}
.branch-coach .trainer {margin:0;background:#f7f9fd;align-items:center;}
.branch-coach .coach-photo {width:106px;min-width:106px;height:140px;flex-basis:106px;object-fit:contain;object-position:center top;}
.branch-coach .trainer h3{font-size:1.08rem;margin:0 0 7px;}
@media(max-width:800px){.branch-card--horizontal{grid-template-columns:minmax(0,1fr);gap:18px}.branch-coach{border-left:0;border-top:1px solid #dbe5f1;padding-left:0;padding-top:15px}}
@media(max-width:720px){.main-grid{grid-template-columns:minmax(0,1fr)}.branch-card--horizontal{padding:17px}.branch-card--horizontal .branch-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.branch-card--horizontal .branch-photos img:not(.image-placeholder){height:145px}.branch-site__contact{line-height:1.8}}
@media(max-width:370px){.branch-card--horizontal .branch-photos img:not(.image-placeholder){height:112px}.branch-coach .trainer{padding:10px}.branch-coach .coach-photo{width:76px;min-width:76px;height:107px;flex-basis:76px}.branch-coach .trainer h3{font-size:.94rem}}

/* v10 — Consistent full-width training-site cards, aligned with original site styles. */
.main-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);}
.school-branches-wide{margin:0 0 28px;}
.branch-card--horizontal{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,.95fr);gap:22px;align-items:stretch;}
.branch-site__address{line-height:1.5;}
.site-coaches-list{display:grid;gap:12px;}
.site-coaches-list .trainer{margin:0;}
.photo-gallery__track>figure.photo-tile{flex:0 0 calc(50% - 7px);}
.photo-gallery__track img:not(.image-placeholder){object-fit:cover;}
.branch-card--horizontal .branch-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.branch-card--horizontal .branch-photos .photo-tile{min-width:0;}
.branch-card--horizontal .branch-photos img:not(.image-placeholder){height:154px;object-fit:cover;}
.branch-card--horizontal .branch-photos .image-placeholder{display:block;width:100%;height:154px;object-fit:cover;}
@media(max-width:800px){.branch-card--horizontal{grid-template-columns:minmax(0,1fr);}.branch-coach{border-left:0;border-top:1px solid #dce5f1;padding:15px 0 0;}}
@media(max-width:720px){.main-grid{grid-template-columns:1fr;}.branch-card--horizontal .branch-photos img:not(.image-placeholder),.branch-card--horizontal .branch-photos .image-placeholder{height:145px;}}
/* Fullsize gallery with side navigation and bottom click-to-select thumbnail rail. */
.photo-lightbox{width:min(96vw,1420px);max-width:96vw;max-height:96dvh;background:#071d42;color:white;border:0;border-radius:18px;overflow:hidden;padding:0;box-shadow:0 24px 80px #06163099;}
.photo-lightbox::backdrop{background:rgba(4,13,30,.86);backdrop-filter:blur(3px)}
.photo-lightbox__bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 20px;min-height:56px;}
.photo-lightbox__heading{display:flex;flex-direction:column;gap:1px;min-width:0;}
.photo-lightbox__caption{color:#fff;font-size:.93rem;font-weight:750;line-height:1.25;}
.photo-lightbox__count{color:#bfd1eb;font-size:.75rem;font-variant-numeric:tabular-nums;}
.photo-lightbox__close{width:40px;height:40px;flex:0 0 40px;border:1px solid #ffffff80;border-radius:50%;background:#ffffff14;color:#fff;font-size:27px;cursor:pointer;}
.photo-lightbox__close:hover{background:#e90b28;}
.photo-lightbox__stage{height:min(65dvh,720px);display:grid;grid-template-columns:54px minmax(0,1fr) 54px;align-items:center;gap:9px;padding:0 12px;min-width:0;touch-action:pan-y;}
.photo-lightbox__image{width:100%;height:100%;min-width:0;max-width:100%;max-height:100%;object-fit:contain;border-radius:5px;background:transparent;}
.photo-lightbox__nav{display:flex;align-items:center;justify-content:center;width:46px;height:54px;border:1px solid #ffffff48;border-radius:12px;color:#fff;font-size:43px;line-height:1;background:#ffffff12;cursor:pointer;}
.photo-lightbox__nav:hover,.photo-lightbox__nav:focus-visible{background:#e90b28;outline-offset:2px;}
.photo-lightbox__nav[hidden]{visibility:hidden;}
.photo-lightbox__thumbs{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;margin:7px 22px 0;padding:0 0 13px;scrollbar-width:thin;scrollbar-color:#8fa6c5 transparent;}
.photo-lightbox__thumb{display:block;flex:0 0 112px;width:112px;height:77px;overflow:hidden;padding:3px;border:2px solid transparent;border-radius:9px;background:#ffffff19;cursor:pointer;opacity:.68;transition:opacity .15s,border-color .15s;}
.photo-lightbox__thumb img{width:100%;height:100%;object-fit:cover;border-radius:4px;display:block;}
.photo-lightbox__thumb.is-current{border-color:#f02e44;opacity:1;background:#fff;}
.photo-lightbox__thumb:hover,.photo-lightbox__thumb:focus-visible{opacity:1;}
@media(max-width:650px){
.photo-lightbox{width:100vw;max-width:100vw;max-height:100dvh;border-radius:0;}
.photo-lightbox__bar{padding:8px 13px;}
.photo-lightbox__stage{height:min(62dvh,650px);grid-template-columns:35px minmax(0,1fr) 35px;gap:3px;padding:0 4px;}
.photo-lightbox__nav{width:33px;height:48px;font-size:33px;}
.photo-lightbox__thumbs{margin:8px 9px 0;gap:6px;}
.photo-lightbox__thumb{flex-basis:82px;width:82px;height:62px;}
}
/* Keep the original photo inside the display stage, above the thumbnails. */
.photo-lightbox__stage{grid-template-rows:minmax(0,1fr);min-height:0;overflow:hidden;}
.photo-lightbox__image{min-height:0;max-height:100%!important;min-width:0;object-fit:contain;}

.school-coach-link{color:#123c83;text-decoration:underline;text-decoration-color:#b6cae9;text-underline-offset:3px}.school-coach-link:hover{color:#c51230;text-decoration-color:#c51230}

.photo-bank-shortcut{padding:19px 22px;margin:20px 0 6px;background:#eef3fc;border:1px solid #d7e4f5;border-radius:12px}.photo-bank-shortcut a{color:#123c83;font-weight:800;font-size:.9rem;text-decoration:underline;text-underline-offset:4px}.photo-bank-shortcut a:hover{color:#e91932}
