/* Gallery: native editable albums, with photographs on the same page. */
.gallery-hero .degree-copy{padding-top:40px;max-width:740px}
.gallery-hero .degree-copy h1{font-size:clamp(44px,5vw,70px);line-height:1.13}
.gallery-hero .text-link{color:white;border-color:#ffffff70}
.nbs-gallery-section .section-head>p{font-size:16px;line-height:1.7;color:#706974;max-width:330px;margin:0}
.nbs-gallery-controls{display:flex;align-items:end;justify-content:space-between;gap:30px;padding-bottom:25px;margin-bottom:30px;border-bottom:1px solid #dce1e5}
.nbs-gallery-controls label{font-size:14px;font-weight:600;letter-spacing:.3px;color:var(--night);width:320px;max-width:100%}
.nbs-gallery-controls select{font-size:15px;color:var(--night);border:1px solid #ccd2da;border-radius:3px;padding:12px 15px;background:white;margin-top:9px;width:100%}
.nbs-gallery-controls .nbs-gallery-status{font-size:14px;color:#716a76;margin:0 0 10px;line-height:1.6}
.nbs-event-group[hidden]{display:none!important}
.nbs-event-heading{margin-bottom:22px}
.nbs-event-heading h3{font-size:29px;line-height:1.3;color:var(--night);letter-spacing:-.6px;margin:0 0 10px}
.nbs-event-heading p{font-size:14px;color:#716a76;margin:0}
.nbs-event-photos.wp-block-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px!important;margin:0!important}
.nbs-event-photos.wp-block-gallery>.wp-block-image{width:100%!important;max-width:none!important;margin:0!important;display:block;position:relative;overflow:hidden;background:#e4e8eb;border-radius:3px;min-width:0}
.nbs-event-photos.wp-block-gallery>.wp-block-image>a{display:block;width:100%;aspect-ratio:3/2;overflow:hidden;position:relative}
.nbs-event-photos.wp-block-gallery img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.nbs-event-photos.wp-block-gallery a:hover img{transform:scale(1.025)}
.nbs-gallery-enhanced .nbs-event-photos a:after{content:'+';position:absolute;right:15px;bottom:15px;width:34px;height:34px;background:#05031bbf;color:white;border:1px solid #ffffff60;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;pointer-events:none}
.nbs-event-photos.wp-block-gallery:has(>.wp-block-image:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
.nbs-event-photos.wp-block-gallery>.wp-block-image:only-child{grid-column:1/-1;width:min(100%,900px)!important;justify-self:center}
.nbs-gallery-collection:not(.nbs-gallery-enhanced)>.nbs-event-group+.nbs-event-group{margin-top:55px}
.nbs-gallery-cta{background:#f2f4f6}
.nbs-gallery-cta>.wrap{display:flex;align-items:center;justify-content:space-between;gap:35px}
.nbs-gallery-cta h2{font-size:32px;line-height:1.25;margin-top:14px}
.nbs-photo-dialog{padding:0;border:0;border-radius:3px;width:min(1120px,calc(100vw - 48px));max-width:none;max-height:94svh;overflow:auto;background:#05031b;color:white;box-shadow:0 20px 100px #0008}
.nbs-photo-dialog::backdrop{background:#05031be8}
.nbs-photo-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 22px;border-bottom:1px solid #ffffff25}
.nbs-photo-dialog-heading h2{font-size:19px;line-height:1.4;letter-spacing:-.3px;color:white;margin:0}
.nbs-photo-close{border:1px solid #ffffff50;background:none;color:white;border-radius:3px;width:44px;height:44px;font-size:29px;line-height:1;flex-shrink:0}
.nbs-photo-dialog-image{display:block;width:100%;height:auto;max-height:calc(94svh - 155px);object-fit:contain;background:#05031b}
.nbs-photo-dialog-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 22px;border-top:1px solid #ffffff25}
.nbs-photo-dialog-bottom button{border:1px solid #ffffff45;background:none;border-radius:3px;color:white;min-height:42px;padding:8px 14px;font-size:14px}
.nbs-photo-dialog-bottom button:hover,.nbs-photo-close:hover{background:#ffffff18}
.nbs-photo-counter{font-size:14px;color:#ddd7e5;line-height:1.5;text-align:center;margin:0}
.nbs-photo-dialog-bottom button:disabled{opacity:.35;cursor:default}
@media(max-width:760px){
 .gallery-hero .degree-copy h1{font-size:clamp(37px,10vw,48px)}
 .nbs-gallery-section .section-head>p{font-size:15px;margin-top:20px}
 .nbs-gallery-controls{flex-direction:column;align-items:stretch;gap:12px;padding-bottom:18px;margin-bottom:24px}
 .nbs-gallery-controls label{width:100%}
 .nbs-gallery-controls .nbs-gallery-status{font-size:14px;margin:0}
 .nbs-event-heading{margin-bottom:18px}
 .nbs-event-heading h3{font-size:25px}
 .nbs-event-heading p{font-size:14px}
 .nbs-event-photos.wp-block-gallery{gap:10px!important}
 .nbs-event-photos.wp-block-gallery:has(>.wp-block-image:nth-child(3):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
 .nbs-event-photos.wp-block-gallery>.wp-block-image:nth-child(3):last-child{grid-column:1/-1}
 .nbs-event-photos.wp-block-gallery>.wp-block-image:nth-child(3):last-child>a{aspect-ratio:16/9}
 .nbs-gallery-enhanced .nbs-event-photos a:after{right:8px;bottom:8px;width:26px;height:26px;font-size:18px}
 .nbs-gallery-cta>.wrap{display:block}
 .nbs-gallery-cta h2{font-size:28px}
 .nbs-gallery-cta .wp-block-buttons{margin-top:25px}
 .nbs-photo-dialog{width:calc(100vw - 24px);max-height:94svh}
 .nbs-photo-dialog-heading{padding:10px 12px;gap:10px}
 .nbs-photo-dialog-heading h2{font-size:16px}
 .nbs-photo-dialog-image{max-height:calc(94svh - 145px)}
 .nbs-photo-dialog-bottom{padding:12px;gap:10px}
 .nbs-photo-dialog-bottom button{font-size:14px;padding:8px 10px}
 .nbs-photo-counter{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.nbs-event-photos.wp-block-gallery img{transition:none}}
.nbs-gallery-enhanced .nbs-event-photos a{cursor:zoom-in}
