.cmuaa-news-gallery { margin: 36px 0 12px; padding-top: 28px; border-top: 1px solid #e6dfeb; text-align: left; }
.cmuaa-news-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cmuaa-news-gallery-heading h2 { margin: 0; font-size: 24px; line-height: 1.5; color: #301440; }
.cmuaa-news-gallery-heading a { color: #752b96; font-size: 14px; }
.cmuaa-news-gallery-hint { margin: 10px 0 18px; color: #665c6d; font-size: 14px; }
.cmuaa-news-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cmuaa-news-gallery-photo { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: #f1edf5; }
.cmuaa-news-gallery [hidden] { display: none !important; }
.cmuaa-news-gallery .cmuaa-news-gallery-photo img { display: block; width: 100% !important; height: 100% !important; max-height: none; margin: 0; object-fit: contain; }
.cmuaa-news-gallery-more { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; background: #271334b8; font-size: 40px; font-weight: 700; }
.cmuaa-news-gallery-more small { font-size: 16px; }
.cmuaa-news-gallery a:focus-visible, .cmuaa-news-gallery button:focus-visible { outline: 3px solid #c49b36; outline-offset: 3px; }
.cmuaa-news-gallery-dialog { position: fixed; inset: 0; margin: auto; box-sizing: border-box; width: min(1100px, 96vw); max-width: 96vw; max-height: 96vh; overflow: auto; padding: 12px 16px; background: transparent; color: #fff; border: 0; border-radius: 0; box-shadow: none; }
.cmuaa-news-gallery-dialog::backdrop { background: #000c; }
.cmuaa-news-gallery-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.cmuaa-news-gallery-dialog button { min-width: 44px; min-height: 44px; border: 1px solid #ffffff60; border-radius: 12px; background: #fff; color: #301440; cursor: pointer; font: inherit; padding: 6px 12px; }
.cmuaa-news-gallery-dialog button:disabled { opacity: .4; cursor: default; }
.cmuaa-news-gallery-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin: 12px 0; }
.cmuaa-news-gallery-print { box-sizing: border-box; justify-self: center; min-width: 0; max-width: 100%; width: fit-content; margin: 0; padding: 14px 14px 0; background: #fffefa; box-shadow: 0 16px 38px #0007; border-radius: 2px; }
.cmuaa-news-gallery .cmuaa-news-gallery-stage img { display: block; width: auto !important; height: auto !important; max-width: 100% !important; max-height: calc(96vh - 210px) !important; object-fit: contain; margin: 0 auto; border-radius: 0; }
.cmuaa-news-gallery-print .cmuaa-news-gallery-counter { display: flex; min-height: 44px; align-items: center; justify-content: center; margin: 0; padding: 0; color: #66596e; font-size: 13px; line-height: 1.4; letter-spacing: 2px; }
.cmuaa-news-gallery-stage button { font-size: 30px; padding: 0; }
.cmuaa-news-gallery .cmuaa-news-gallery-original { display: block; width: fit-content; margin: 0 auto; color: #f2d27a; padding: 10px 0; }
.cmuaa-news-gallery-error { color: #fff; }
@media (max-width: 600px) {
  .cmuaa-news-gallery-grid { gap: 10px; }
  .cmuaa-news-gallery-heading h2 { font-size: 21px; }
  .cmuaa-news-gallery-dialog { padding: 8px; }
  .cmuaa-news-gallery-stage { grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 10px; }
  .cmuaa-news-gallery-print { grid-column: 1 / -1; grid-row: 1; padding: 9px 9px 0; }
  .cmuaa-news-gallery-stage [data-gallery-prev] { grid-column: 2; grid-row: 2; }
  .cmuaa-news-gallery-stage [data-gallery-next] { grid-column: 3; grid-row: 2; }
  .cmuaa-news-gallery-print .cmuaa-news-gallery-counter { min-height: 36px; }
  .cmuaa-news-gallery .cmuaa-news-gallery-stage img { max-height: calc(96vh - 255px) !important; }
}
