/* Centre presentation and the photo dialog shared with individual news articles. */
#mainContent .blockGalleryModern .galleryGroup__title { text-transform: none; }
:is(.page-id-58944, .page-id-60280) #mainContent { padding-block-end: clamp(40px, 5vw, 80px); }
:is(.page-id-58944, .page-id-60280) #mainContent .block-council-intro__grid { align-items: start; }
:is(.page-id-58944, .page-id-60280) #mainContent .council-avatar { max-inline-size: 420px; aspect-ratio: auto; border-radius: 18px; padding: 8px; }
:is(.page-id-58944, .page-id-60280) #mainContent .council-avatar__img { block-size: auto; inline-size: 100%; border-radius: 12px; object-fit: contain; }
#mainContent .wnpism-centre-photo { display: block; cursor: zoom-in; }
#mainContent .wnpism-centre-director-photo { inline-size: 100%; max-inline-size: 300px; margin: 0 auto 24px; border-radius: 12px; overflow: hidden; }
#mainContent .wnpism-centre-director-photo img { display: block; inline-size: 100%; block-size: auto; margin: 0; }
#mainContent .galleryGroup__trigger { display: block; width: 100%; height: 100%; overflow: hidden; cursor: zoom-in; }
#mainContent .galleryGroup__trigger img { transition: transform .2s ease; }
#mainContent .galleryGroup__trigger:hover img { transform: scale(1.04); }
#mainContent .galleryGroup__trigger:focus-visible, #mainContent .wnpism-centre-photo:focus-visible { outline: 3px solid #b48832; outline-offset: 4px; }
@media (min-width: 992px) {
  :is(.page-id-58944, .page-id-60280) #mainContent .block-council-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); }
}
.wnpism-photo-dialog { position: fixed; inset: 0; box-sizing: border-box; width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; padding: 72px 88px 24px; margin: 0; border: 0; border-radius: 0; background: rgb(8 12 20 / 96%); color: #fff; overflow: hidden; }
.wnpism-photo-dialog::backdrop { background: rgb(0 0 0 / 70%); }
.wnpism-photo-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.wnpism-photo-dialog__control { appearance: none; position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; min-width: 48px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgb(255 255 255 / 10%); cursor: pointer; }
.wnpism-photo-dialog__control:hover { background: rgb(255 255 255 / 22%); }
.wnpism-photo-dialog__control:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.wnpism-photo-dialog__control[hidden] { display: none; }
.wnpism-photo-dialog__control svg { display: block; width: 26px; height: 26px; pointer-events: none; }
.wnpism-photo-dialog__close { top: max(16px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); }
.wnpism-photo-dialog__prev, .wnpism-photo-dialog__next { top: 50%; transform: translateY(-50%); }
.wnpism-photo-dialog__prev { left: max(20px, env(safe-area-inset-left)); }
.wnpism-photo-dialog__next { right: max(20px, env(safe-area-inset-right)); }
.wnpism-photo-dialog__counter { position: absolute; top: max(29px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); font: 500 14px/1.5 sans-serif; color: #e0e4eb; }
.wnpism-photo-dialog__stage { min-height: 0; min-width: 0; flex: 1; display: flex; align-items: center; justify-content: center; }
.wnpism-photo-dialog__stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 12px 45px rgb(0 0 0 / 35%); }
.wnpism-photo-dialog__caption { flex: 0 0 auto; max-height: 4.2em; overflow: auto; margin: 0; font-size: 14px; line-height: 1.4; text-align: center; color: #e0e4eb; }
@media (max-width: 600px) {
  .wnpism-photo-dialog { padding: 72px 10px max(20px, env(safe-area-inset-bottom)); }
  .wnpism-photo-dialog__control { width: 44px; height: 44px; min-width: 44px; background: rgb(8 12 20 / 65%); }
  .wnpism-photo-dialog__prev { left: max(8px, env(safe-area-inset-left)); }
  .wnpism-photo-dialog__next { right: max(8px, env(safe-area-inset-right)); }
  .wnpism-photo-dialog__close { right: max(10px, env(safe-area-inset-right)); }
  .wnpism-photo-dialog__caption { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { #mainContent .galleryGroup__trigger img { transition: none; } }

/* Student Council PL/EN: full photograph in a rectangular frame, like the Weiss Centre. */
:is(.page-id-58263, .page-id-60592) #mainContent .block-council-intro__grid { align-items: start; }
:is(.page-id-58263, .page-id-60592) #mainContent .council-avatar { max-inline-size: 480px; aspect-ratio: auto; border-radius: 18px; padding: 8px; }
:is(.page-id-58263, .page-id-60592) #mainContent .council-avatar__img { block-size: auto; inline-size: 100%; border-radius: 12px; object-fit: contain; }
@media (min-width: 992px) {
  :is(.page-id-58263, .page-id-60592) #mainContent .block-council-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 480px); }
}
