/* Photographs retain the upper joined edge and finish with a straight bottom. */
.courses-site main>#course-gallery{position:relative;isolation:isolate;background:#17191d!important;color:#fff;padding:0;min-height:760px;height:100vh;height:100svh;max-height:1100px;--gallery-inset:max(5%,calc((100% - var(--max,1320px))/2))}
#course-gallery::before,#course-gallery::after{content:none}
#course-gallery>.shell{position:static;width:100%;height:100%;max-width:none}
#course-gallery .course-section-head{position:absolute;z-index:2;top:clamp(44px,8vh,96px);left:var(--gallery-inset);right:var(--gallery-inset);display:block;margin:0;pointer-events:none;text-shadow:0 2px 20px #0008}
#course-gallery .course-section-head>.section-code{display:block;margin-bottom:18px}
#course-gallery .course-gallery{position:static;width:100%;height:100%;min-width:0;max-width:none;margin:0;color:#fff}
#course-gallery .course-gallery-stage{position:absolute;inset:calc(-1 * var(--join-height)) 0 0;z-index:0;width:100%;height:auto;aspect-ratio:auto;overflow:hidden;border-radius:0;background:#282d35;isolation:isolate;-webkit-mask-image:var(--join-top),linear-gradient(#fff,#fff);mask-image:var(--join-top),linear-gradient(#fff,#fff);-webkit-mask-size:100% var(--join-height),100% calc(100% - var(--join-height) + 1px);mask-size:100% var(--join-height),100% calc(100% - var(--join-height) + 1px);-webkit-mask-position:top,bottom;mask-position:top,bottom;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
#course-gallery .course-gallery-stage::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,#10161eb8, #10161e30 30%,transparent 48%,#10161ec9)}
#course-gallery .course-gallery-slide{position:absolute;inset:0;min-width:0}
#course-gallery .course-gallery-slide[data-gallery-layer="incoming"]{z-index:1;will-change:opacity,transform}
#course-gallery .course-gallery-slide[data-gallery-layer="outgoing"]{z-index:0;will-change:transform}
#course-gallery .course-gallery-slide[hidden]{display:none!important}
#course-gallery .course-gallery-slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--gallery-focus,50% 20%)}
#course-gallery .course-gallery-arrow{position:static;z-index:2;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #ffffff90;border-radius:50%;background:#ffffffeb;color:#242424;transform:none;box-shadow:0 3px 16px #17212f20}
#course-gallery .course-gallery-prev{grid-column:2;grid-row:1}
#course-gallery .course-gallery-next{grid-column:4;grid-row:1}
#course-gallery .course-gallery-arrow .ui-icon{width:25px;height:25px}
#course-gallery .course-gallery-controls{position:absolute;z-index:2;left:var(--gallery-inset);right:var(--gallery-inset);bottom:calc(26px + var(--join-height));display:grid;grid-template-columns:minmax(0,1fr) 48px auto 48px minmax(0,1fr);align-items:center;gap:12px;margin:0;text-shadow:0 1px 8px #0008}
#course-gallery .course-gallery-progress{position:absolute;z-index:2;left:var(--gallery-inset);right:var(--gallery-inset);bottom:calc(88px + var(--join-height));height:3px;overflow:hidden;border-radius:3px;background:#687480;pointer-events:none}
#course-gallery .course-gallery-progress>span{display:block;width:100%;height:100%;background:var(--gold,#f5a400);transform:scaleX(0);transform-origin:left center}
#course-gallery .course-gallery-counter{grid-column:1;grid-row:1;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
#course-gallery .course-gallery-dots{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:center;gap:6px}
#course-gallery .course-gallery-dot{display:grid;place-items:center;width:28px;height:32px;padding:0;border:0;border-radius:50%;background:none;color:inherit}
#course-gallery .course-gallery-dot::before{content:"";display:block;width:8px;height:8px;border-radius:50%;background:#b7c0cc}
#course-gallery .course-gallery-dot[aria-current="true"]::before{background:var(--gold,#f5a400);box-shadow:0 0 0 3px #f5a40024}
#course-gallery .course-gallery-toggle{grid-column:5;grid-row:1;justify-self:end;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #ffffff90;border-radius:50%;background:#17191d55;color:#fff}
#course-gallery .course-gallery-toggle svg{width:18px;height:18px;fill:currentColor;stroke:none}
#course-gallery .course-gallery-toggle:disabled{opacity:.55;cursor:default}
#course-gallery .course-gallery-arrow:hover,#course-gallery .course-gallery-toggle:not(:disabled):hover{background:var(--gold,#f5a400)}
#course-gallery .course-gallery-toggle:not(:disabled):hover{color:#242424}
#course-gallery .course-gallery button:focus-visible,#course-gallery .course-gallery:focus-visible{outline:3px solid var(--gold,#f5a400);outline-offset:4px}
#course-gallery .course-gallery-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:700px){
 .courses-site main>#course-gallery{height:auto;aspect-ratio:auto;min-height:0;max-height:none;--gallery-inset:20px}
 #course-gallery>.shell,#course-gallery .course-gallery{height:auto}
 #course-gallery .course-gallery{display:flow-root}
 #course-gallery .course-section-head{top:14px}
 #course-gallery .course-section-head>.section-code{margin-bottom:6px;font-size:10px}
 #course-gallery .course-section-head h2{display:none}
 #course-gallery .course-gallery-stage{position:relative;inset:auto;aspect-ratio:3/2;height:auto;margin-top:calc(-1 * var(--join-height))}
 #course-gallery .course-gallery-stage::after{background:linear-gradient(180deg,#10161e80,transparent 38%,transparent 70%,#10161e55)}
 #course-gallery .course-gallery-slide img{object-position:center}
 #course-gallery .course-gallery-controls{position:relative;inset:auto;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;padding:12px 16px 22px;text-shadow:none}
 #course-gallery .course-gallery-progress{position:relative;inset:auto;width:calc(100% - 40px);margin:8px auto 0}
 #course-gallery .course-gallery-arrow{position:static;width:44px;height:44px;transform:none}
 #course-gallery .course-gallery-prev{grid-column:1;grid-row:1}
 #course-gallery .course-gallery-next{grid-column:3;grid-row:1}
 #course-gallery .course-gallery-counter,#course-gallery .course-gallery-toggle{display:none}
 #course-gallery .course-gallery-dots{grid-column:2;grid-row:1;gap:0;width:100%;min-width:0}
 #course-gallery .course-gallery-dot{flex:1;min-width:0;width:auto;height:44px}
}
