/* Manual galleries share one stable crop; only the explicit image link opens a sheet. */
body#top .af-course-card>.af-card-gallery{position:relative;display:block;box-sizing:border-box;aspect-ratio:3/2;width:100%;overflow:hidden;margin:0!important;padding:0!important;isolation:isolate;background:#f0f3f2}
body#top .af-card-gallery .af-card-gallery-slide{position:absolute;inset:0;display:block!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden;line-height:0}
body#top .af-card-gallery .af-card-gallery-slide[hidden],body#top .af-card-gallery-dots[hidden]{display:none!important}
body#top .af-card-gallery-slide img{display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center;transition:none!important;border-radius:0!important}
body#top .af-card-gallery-dots{position:absolute;z-index:2;bottom:8px;left:50%;transform:translateX(-50%);display:flex;align-items:center;width:max-content;padding:0;background:transparent;box-shadow:none}
body#top #main .af-card-gallery-dots button,body#top #af-course-dialog .af-card-gallery-dots button{appearance:none;display:grid!important;place-items:center!important;flex:0 0 28px!important;width:28px!important;height:30px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer}
body#top .af-card-gallery-dots button span{display:block;width:7px;height:7px;border:1px solid #10495c;border-radius:50%;box-sizing:border-box;background:#fff}
body#top .af-card-gallery-dots button[aria-pressed=true] span{background:#10495c}
body#top .af-card-gallery-dots button:focus-visible{outline:2px solid #10495c!important;outline-offset:-2px}
body#top #main :is(.af-cards-horizontal .af-course-card,.af-card-last-wide,.af-card-auto-horizontal)>.af-card-gallery{grid-column:1;grid-row:1/span 2;align-self:stretch;aspect-ratio:auto;min-height:280px;height:100%}
@media(max-width:767px){body#top #main :is(.af-cards-horizontal .af-course-card,.af-card-last-wide,.af-card-auto-horizontal)>.af-card-gallery{aspect-ratio:3/2;min-height:0;height:auto}body#top #main .af-card-gallery-dots button,body#top #af-course-dialog .af-card-gallery-dots button{width:44px!important;flex-basis:44px!important;height:44px!important}}
