/* Announcements, albums and photographs share the premium page theme. */
.college-page [hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.collection-hero { padding-bottom: 42px; }
.collection-hero .page-breadcrumb { margin-bottom: 28px; }
.collection-hero .page-hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.collection-hero .page-intro { max-width: 50ch; margin-bottom: 0; }
.collection-hero .page-hero-link { margin-top: 22px; }
.collection-hero-photo { max-width: 450px; width: 100%; justify-self: end; }
.collection-hero-photo > img { height: 220px; }
.collection-hero-stat { display: grid; justify-items: center; align-content: center; gap: 5px; width: 220px; min-height: 200px; justify-self: end; border: 1px solid #ffffff25; border-radius: 7px; background: #ffffff06; }
.collection-hero-stat > i { color: #e1c38d; font-size: 25px; margin-bottom: 8px; }
.collection-hero-stat strong { color: #fff; font: 400 66px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.collection-hero-stat > span { color: #d4dde4; font-size: var(--text-caption); text-align: center; padding: 0 15px; }
.collection-section { padding-top: 55px; padding-bottom: 75px; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.college-page .collection-toolbar .page-eyebrow { margin-bottom: 10px; }
.college-page .collection-toolbar h2 { color: var(--ink); font: 600 clamp(30px, 2.8vw, 39px)/1.25 var(--serif); letter-spacing: -.025em; }
.collection-count { display: inline-flex; align-items: center; padding: 6px 13px; border: 1px solid #e2dacb; border-radius: 30px; background: #fff; color: #80612e; font-size: var(--text-caption); white-space: nowrap; }
.collection-search { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 480px; margin-bottom: 28px; padding: 0 17px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.collection-search > i { color: #8e7448; font-size: 16px; }
.collection-search input { min-width: 0; width: 100%; padding: 14px 0; border: 0; outline: none; background: transparent; color: var(--ink); font: var(--text-small)/1.5 var(--sans); }
.collection-search input::placeholder { color: #74828b; opacity: 1; }
.collection-search:focus-within { outline: 2px solid #b2935a; outline-offset: 2px; }
.collection-search input:focus-visible { outline: none; }
.collection-empty { display: grid; justify-items: center; gap: 13px; padding: 55px 25px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: center; }
.collection-empty > i { font-size: 30px; color: #a18146; }
.college-page .collection-empty h3 { color: var(--ink); font-size: 28px; font-weight: 400; }
.collection-empty p { color: var(--muted); font-size: var(--text-small); margin: 0; }
.collection-empty .theme-button { margin-top: 7px; }
.notice-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.bulletin-section { min-width: 0; }
.bulletin-list { display: grid; gap: 18px; }
.college-page .bulletin-card { display: flex; align-items: center; gap: 25px; padding: 26px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 6px; background: #fff; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.college-page .bulletin-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d1bc95; }
.bulletin-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; gap: 4px; width: 76px; min-height: 101px; padding: 12px 4px; border: 1px solid #e9e3d6; border-radius: 4px; background: var(--pale); }
.bulletin-date strong { font: 400 34px/1.1 var(--serif); font-variant-numeric: tabular-nums; color: var(--navy); }
.bulletin-date > span { color: #87672e; font: 600 var(--text-label)/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.bulletin-date small { color: var(--muted); font-size: var(--text-label); }
.bulletin-date > i { color: #87672e; font-size: 24px; }
.bulletin-copy { min-width: 0; flex: 1; }
.bulletin-category { display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; color: #86672f; margin-bottom: 9px; }
.college-page .bulletin-copy h3 { font: 600 21px/1.55 var(--sans); color: var(--ink); text-wrap: pretty; overflow-wrap: anywhere; }
.bulletin-read { display: inline-flex; align-items: center; gap: 13px; font-size: var(--text-caption); color: var(--blue); margin-top: 13px; }
.bulletin-arrow { display: grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; color: #96753c; font-size: 13px; }
.album-grid, .photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.college-page .album-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.college-page .album-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.album-cover { position: relative; height: 245px; overflow: hidden; background: #e9e6df; }
.album-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #102b434a, transparent 65%); pointer-events: none; }
.album-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.album-card:hover .album-cover > img { transform: scale(1.04); }
.album-photo-count { position: absolute; left: 17px; bottom: 17px; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #ffffff30; border-radius: 3px; color: #fff; background: #102b43d9; font-size: var(--text-caption); }
.album-open { position: absolute; right: 17px; bottom: 17px; z-index: 1; display: grid; place-items: center; width: 33px; height: 33px; background: #e1c38d; border-radius: 50%; color: var(--navy); }
.album-card-copy { display: flex; flex-direction: column; flex: 1; padding: 23px; }
.album-card-copy time, .album-date-label { color: #86672f; font-size: var(--text-label); font-weight: 600; letter-spacing: .06em; }
.college-page .album-card-copy h3 { color: var(--ink); font: 600 22px/1.5 var(--sans); margin: 11px 0 20px; overflow-wrap: anywhere; text-wrap: pretty; }
.album-view-link { display: inline-flex; align-items: center; gap: 18px; margin-top: auto; color: var(--blue); font-size: var(--text-small); }
.album-event-date { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; color: #86672f; font-size: var(--text-small); }
.college-page .collection-back { display: flex; align-items: center; gap: 12px; font-size: var(--text-small); font-weight: 600; padding: 7px 0; }
.college-page .collection-back:hover { color: #86672f; }
.album-hint { display: flex; align-items: center; gap: 10px; margin: -4px 0 28px; color: var(--muted); font-size: var(--text-small); }
.album-hint > i { color: #86672f; }
.photo-card { margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.photo-link { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e6df; }
.photo-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-link:hover img { transform: scale(1.035); }
.photo-zoom { position: absolute; right: 15px; bottom: 15px; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: #102b43e6; color: #fff; font-size: 17px; opacity: 0; transition: opacity .2s; }
.photo-link:hover .photo-zoom, .photo-link:focus-visible .photo-zoom { opacity: 1; }
.photo-card figcaption { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 17px 19px; color: var(--ink); font-size: var(--text-small); line-height: 1.55; }
.photo-card figcaption > span { min-width: 0; overflow-wrap: anywhere; }
.photo-card figcaption small { flex-shrink: 0; color: #96753c; font-size: var(--text-caption); font-variant-numeric: tabular-nums; }
.photo-placeholder { display: grid; place-content: center; justify-items: center; gap: 12px; min-height: 190px; height: 100%; width: 100%; background: #e9e6df; color: #887650; font-size: var(--text-caption); }
.photo-placeholder > i { font-size: 35px; }
/* A native dialog keeps focus inside the photo viewer and supports Escape. */
.gallery-viewer { width: min(1100px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #ffffff30; border-radius: 8px; background: #0b2236; color: #fff; overflow: auto; }
.gallery-viewer::backdrop { background: #071726e8; }
.gallery-viewer[open] { display: flex; flex-direction: column; }
.viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 16px 10px 22px; border-bottom: 1px solid #ffffff20; }
.college-page .viewer-header h2 { color: #fff; font: 400 24px/1.4 var(--serif); margin: 0; }
.viewer-close, .viewer-arrow { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #ffffff30; border-radius: 50%; color: #fff; background: #102b43da; cursor: pointer; font-size: 21px; }
.viewer-close:hover, .viewer-arrow:hover { color: #e1c38d; background: #254e76; }
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; height: min(65dvh, 700px); min-height: 160px; background: #071726; }
.viewer-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.viewer-arrow { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); font-size: 30px; }
.viewer-previous { left: 12px; }
.viewer-next { right: 12px; }
.viewer-footer { display: flex; align-items: center; gap: 20px; padding: 13px 22px; }
.viewer-footer p { flex: 1; min-width: 0; margin: 0; color: #d8e0e6; font-size: var(--text-small); line-height: 1.6; overflow-wrap: anywhere; }
.viewer-footer [data-viewer-counter] { flex-shrink: 0; color: #e1c38d; font-size: var(--text-caption); font-variant-numeric: tabular-nums; }
.viewer-footer a { display: grid; place-items: center; width: 44px; height: 44px; color: #e1c38d; text-decoration: none; }
.gallery-viewer-open { overflow: hidden !important; }
@media (max-width: 1150px) {
  .notice-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .bulletin-card { gap: 18px; }
  .bulletin-arrow { display: none; }
  .album-grid, .photo-grid { gap: 22px; }
  .album-cover { height: 210px; }
}
@media (max-width: 1000px) {
  .notice-layout { grid-template-columns: minmax(0, 1fr); }
  .album-grid, .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-hero-stat { width: 190px; min-height: 180px; }
}
@media (max-width: 760px) {
  .collection-hero .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .collection-hero-photo { max-width: none; }
  .collection-hero-photo > img { height: 210px; }
  .collection-hero-stat { width: 100%; min-height: 0; display: flex; align-items: center; justify-content: start; gap: 16px; padding: 17px 20px; }
  .collection-hero-stat > i { margin: 0; font-size: 22px; }
  .collection-hero-stat strong { font-size: 35px; }
  .collection-hero-stat > span { padding: 0; text-align: left; }
  .collection-section { padding-top: 35px; padding-bottom: 45px; }
  .collection-toolbar { margin-bottom: 23px; gap: 16px; }
  .collection-search { max-width: none; }
  .college-page .bulletin-card { align-items: start; gap: 18px; padding: 23px 20px; }
  .bulletin-date { width: 62px; min-height: 91px; }
  .bulletin-date strong { font-size: 30px; }
  .college-page .bulletin-copy h3 { font-size: 18px; line-height: 1.65; }
  .album-grid, .photo-grid { gap: 18px; }
  .album-cover { height: 215px; }
  .album-card-copy { padding: 20px; }
  .college-page .album-card-copy h3 { font-size: 20px; }
  .photo-card figcaption { padding: 13px 14px; font-size: 13px; gap: 8px; }
  .photo-zoom { width: 32px; height: 32px; right: 10px; bottom: 10px; font-size: 14px; }
}
@media (max-width: 600px) {
  .album-grid { grid-template-columns: minmax(0, 1fr); }
  .album-cover { height: 250px; }
  .gallery-viewer { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .viewer-header { padding: 9px 12px 9px 16px; gap: 14px; }
  .college-page .viewer-header h2 { font-size: 20px; }
  .viewer-footer { flex-wrap: wrap; gap: 5px 15px; padding: 13px 16px; }
  .viewer-footer p { flex-basis: 100%; }
  .viewer-footer a { margin-left: auto; }
  .viewer-arrow { width: 40px; height: 40px; }
  .viewer-previous { left: 8px; }
  .viewer-next { right: 8px; }
}
@media (max-width: 400px) {
  .college-page .bulletin-card { padding: 20px 16px; gap: 13px; }
  .bulletin-date { width: 54px; }
  .bulletin-category { font-size: 9px; }
  .photo-grid { gap: 12px; }
  .photo-card figcaption { padding: 12px 10px; font-size: 12px; }
  .album-cover { height: 220px; }
}
@media (hover: none) { .photo-zoom { opacity: 1; } }
