/* Photo gallery (Figma 600:108797): album cards, three a row; the drawn middle card is the hover state. */
.gallery { max-width: 1440px; margin: 0 auto; padding-bottom: var(--sp-9); }
/* Where the drawn heading and cards sit under the banner, per page (measured on the frames). */
.template-gallery { --list-top: 0px; } /* the page intro already leaves the space (R-93) */
.template-videos { --list-top: 0px; }
.template-publications { --list-top: 0px; }
.album-cards { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: var(--sp-7) var(--sp-6); padding-top: var(--list-top, 40px); }
.album-card { display: flex; flex-direction: column; width: 415px; margin-block: var(--sp-5); overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
 }
.album-card__media { height: 293px; border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden; background: var(--surface-2);  }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; }
.album-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); padding: var(--sp-6);  }
.album-card__title { font-size: var(--fs-h3); font-weight: 700; line-height: 112.14%; }
.album-card__title a { color: var(--text); }
.album-card__date { padding-block: var(--sp-3) var(--sp-1); font-size: var(--fs-xs); line-height: 22px; letter-spacing: .1px; }
/* The drawn middle card is the hover state: wider and taller, a gold frame. It grows into the gaps around it, so
   the row and its other cards stay where they are. */

/* Album page (766:134802): the title and date, then one large photo beside two, then three — repeated. */
.album-heading { max-width: 1322px; margin: 0 auto; padding: var(--sp-8) 0 var(--sp-6); }
.album-heading__title { min-height: 73px; margin-bottom: var(--sp-3); display: flex; align-items: center; font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-heading); color: var(--gold-strong); }
.album-heading__date { min-height: 57px; display: flex; align-items: center; font-size: var(--fs-lead); font-weight: 700; line-height: var(--lh-heading); letter-spacing: .1px; color: var(--gold-strong); }
.album__intro { max-width: 1232px; margin: 0 auto var(--sp-5); }
.photo-grid { list-style: none; display: grid; grid-template-columns: 403px 403px 403px; grid-auto-rows: 302px; justify-content: center; gap: var(--sp-3); margin: 0 auto; }
.photo-grid__item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.photo-grid__item a { display: block; height: 100%; border-radius: var(--r-lg); overflow: hidden; }
.photo-grid__item img, .photo-grid__item picture { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1260px) {
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 24vw; padding-inline: var(--gutter); }
}
@media (max-width: 900px) {
  .template-gallery, .template-videos, .template-publications { --list-top: 40px; }
  .album-card,   .album-heading { padding-inline: var(--gutter); }
  .album-heading__title { font-size: var(--fs-h3); line-height: 1.5; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 40vw; }
}
.lightbox { width: min(1200px, calc(100vw - 176px)); max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgb(10 14 14 / .88); }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: var(--sp-3); color: #fff; }
.lightbox__figure img { max-height: 84vh; width: auto; border-radius: var(--r-sm); }
.lightbox__close { position: absolute; inset-inline-end: 0; top: -56px; } /* the look is shared (components.css) */
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { inset-inline-start: -64px; }
.lightbox__nav--next { inset-inline-end: -64px; }
@media (max-width: 900px) {
  .lightbox { width: 96vw; }
  .lightbox__nav--prev { inset-inline-start: 8px; }
  .lightbox__nav--next { inset-inline-end: 8px; }
}

/* Video library (Figma 600:112080): 390 × 409 cards, a gold play button and duration pill, title and date. */
.video-grid { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5); padding-top: var(--list-top, 40px); }
.video-card { width: 390px; min-height: 409px; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.video-card__media { position: relative; display: grid; place-items: center; height: 250px; background: var(--text); }
.video-card__media img, .video-card__media picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 22 30 / 0) 0%, rgb(6 22 30 / .35) 99.81%); }
.video-card__play { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--gold-strong); color: #fff; transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.video-card__play svg { width: 18px; height: 21px; fill: currentColor; margin-left: var(--sp-1); }
.video-card__media:hover .video-card__play { transform: scale(1.08); }
.video-card__duration { position: absolute; z-index: 1; inset-inline-end: 16px; top: 213px; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-md); background: var(--gold-strong); color: #fff; font-size: var(--fs-xs); font-weight: 800; line-height: 14px; }
.video-card__title { padding-block: var(--sp-5) 0; padding-inline: var(--sp-4) var(--sp-3); font-size: var(--fs-h4); font-weight: 800; line-height: 1.6; }
.video-card__date { padding: var(--sp-4) var(--sp-4) var(--sp-4); font-size: var(--fs-xs); line-height: 22px; letter-spacing: .1px; }
/* The player itself: newsroom/video.css */
@media (max-width: 900px) { .video-card { width: 100%; max-width: 390px; } }

/* Publications (Figma 775:141868): one 1342 px card per publication, the cover on the start side. */
.publication-list { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--sp-8); padding-top: var(--list-top, 40px); }
.publication-card { display: flex; align-items: center; gap: var(--sp-4); width: 1342px; max-width: calc(100% - 32px); min-height: 379px; padding-block: var(--sp-6); overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.publication-card__cover { flex: 0 0 598px; align-self: stretch; margin-block: calc(-1 * var(--sp-6)); border-radius: 0; overflow: hidden; background: var(--surface-2); }
.publication-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.publication-card__body { flex: 0 1 696px; display: flex; flex-direction: column; padding-inline: var(--sp-5); }
.publication-card__title { padding-block: var(--sp-4); font-size: 1.75rem; font-weight: 800; line-height: var(--lh-heading); }
.publication-card__date { display: flex; align-items: center; margin-bottom: var(--sp-5); color: var(--text); font-size: var(--fs-body); font-weight: 700; }
.publication-card__summary { display: flex; align-items: center; padding: 0 2px 0 var(--sp-2); font-size: var(--fs-h3); line-height: var(--lh-body); letter-spacing: .25px; text-align: start; color: var(--text-3); }
.publication-card__download { align-self: stretch; margin-top: var(--sp-7); }
@media (max-width: 1000px) {
  .publication-card { flex-direction: column; align-items: stretch; min-height: 0; padding: 0; }
  .publication-card__cover { flex-basis: 220px; margin: 0; }
  .publication-card__body { flex: none; } /* a 696 px basis became its height in a column */
  .publication-card__title { font-size: var(--fs-h4); }
  .publication-card__summary { font-size: var(--fs-body); line-height: 1.8; }
  .publication-card__download { width: 100%; }
}

@media (max-width: 640px) { .video-grid { padding-inline: var(--gutter); } }
