/* Kent Lions Scholarship Gallery — scoped, theme-friendly frontend */
.klsg-gallery {
  --klsg-ink: #233041;
  --klsg-muted: #5a6570;
  --klsg-surface: #fff;
  --klsg-border: #e8edf1;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px) 0;
  color: var(--klsg-ink);
}
.klsg-gallery *, .klsg-gallery *::before, .klsg-gallery *::after { box-sizing: border-box; }
.klsg-gallery-heading { text-align: center; max-width: 780px; margin: 0 auto clamp(42px, 6vw, 75px); }
.klsg-gallery .klsg-eyebrow, .klsg-gallery .klsg-award-label { display: block; color: var(--klsg-accent, #18467C); text-transform: uppercase; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .17em; margin-bottom: 12px; }
.klsg-gallery-heading h2 { margin: 0 0 14px; color: var(--klsg-ink); }
.klsg-gallery-heading p { margin: 0; color: var(--klsg-muted); }
.klsg-award { margin: 0 0 clamp(48px, 6vw, 85px); }
.klsg-award:last-child { margin-bottom: 0; }
.klsg-award-header { display: block; margin-bottom: 0; }
.klsg-award-header h3 { color: var(--klsg-ink); margin: 0 0 8px; }
.klsg-award-description { color: var(--klsg-muted); margin: 0; max-width: 740px; }
/* Section divider occupies its own row, centered between the heading and photo grid. */
.klsg-award-line { display: block; width: 160px; max-width: 40%; height: 2px; background: var(--klsg-accent, #18467C); margin: 25px auto 38px; opacity: .6; }
.klsg-recipient-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 30px); justify-content: center; }
.klsg-recipient-grid.klsg-count-1 { grid-template-columns: minmax(0, 410px); }
.klsg-recipient-grid.klsg-count-2 { grid-template-columns: repeat(2, minmax(0, 410px)); }
.klsg-recipient { min-width: 0; background: var(--klsg-surface); border: 1px solid var(--klsg-border); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(19, 42, 67, .07); }
.klsg-recipient-photo { width: 100%; aspect-ratio: 4/4.4; background: #e9eff4; overflow: hidden; }
.klsg-recipient-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; transition: transform .4s ease; }
.klsg-recipient:hover .klsg-recipient-img { transform: scale(1.025); }
.klsg-photo-placeholder { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(145deg, #eaf0f6, #dce8ef); color: var(--klsg-accent, #18467C); }
.klsg-photo-placeholder span { font-size: 60px; line-height: 1; }
.klsg-photo-placeholder small { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
/* Center the separator between each photograph and the recipient text. */
.klsg-recipient-info { padding: clamp(20px, 2.5vw, 30px); text-align: center; }
.klsg-recipient-info::before { content: ""; display: block; width: 78px; max-width: 50%; height: 4px; margin: 0 auto 20px; background: var(--klsg-accent, #18467C); border-radius: 2px; }
.klsg-recipient-info h4 { color: var(--klsg-ink); margin: 0 0 9px; }
.klsg-recipient-info p { color: var(--klsg-muted); margin: 0; overflow-wrap: anywhere; }
.klsg-empty { border: 1px dashed #d7e0e8; padding: 25px 30px; background: #f8fafc; color: var(--klsg-muted); text-align: center; border-radius: 8px; margin: 0; }
@media (max-width: 900px) {
  .klsg-recipient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .klsg-recipient-grid.klsg-count-1 { grid-template-columns: minmax(0, 410px); }
}
@media (max-width: 620px) {
  .klsg-award-line { width: 110px; margin: 24px auto 30px; }
  .klsg-recipient-grid, .klsg-recipient-grid.klsg-count-1, .klsg-recipient-grid.klsg-count-2 { grid-template-columns: minmax(0, 1fr); }
  .klsg-recipient { max-width: 480px; width: 100%; margin: 0 auto; }
  .klsg-recipient-photo { aspect-ratio: 4/3.9; }
}
@media (prefers-reduced-motion: reduce) { .klsg-recipient-img { transition: none; } .klsg-recipient:hover .klsg-recipient-img { transform: none; } }
