.hall-gallery { --paper: #f1f6f3; --accent: #3f706d; --tint: #d0e1d9; --line: #d1ded7; }
.gallery-skip { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 14px 20px; background: #fffef7; border: 2px solid var(--accent); transform: translateY(-160%); }
.gallery-skip:focus { transform: translateY(0); }
.gallery-intro { padding: 28px 0 16px; }
.gallery-intro p { margin: 0; color: #4c6055; font-size: 15px; line-height: 1.9; word-break: keep-all; }
.gallery-intro p + p { margin-top: 8px; }
.gallery-hint { margin: 0 0 36px; color: #657267; font-size: 12px; line-height: 1.8; word-break: keep-all; }
.gallery-section + .gallery-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.gallery-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.gallery-section-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.045em; line-height: 1.5; word-break: keep-all; }
.folder-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex-shrink: 0; color: var(--accent); font-size: 12px; font-weight: 600; }
.folder-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 18px; margin: 0; padding: 0; list-style: none; }
.gallery-grid li { min-width: 0; }
.media-card { display: block; overflow: hidden; border: 1px solid #c5d6cc; border-radius: 12px; background: #fffdf6; transition: border-color 180ms ease, box-shadow 180ms ease; }
.media-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px #365f5014; }
.media-preview { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; background: #e1eae5; overflow: hidden; }
.media-preview img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.media-pending { padding: 24px; color: #657267; font-size: 12px; text-align: center; }
.media-badge { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 6px; background: #233c35e6; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.5; }
.media-card h3 { margin: 0; min-height: 67px; padding: 15px 13px; font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.media-variant { display: block; color: #657267; font-size: 11px; font-weight: 400; }
.gallery-logos .media-preview { background: #fff; }
.gallery-empty { margin: 0; padding: 24px; border: 1px dashed #b8cbbf; border-radius: 12px; color: #657267; font-size: 13px; }
@media (max-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gallery-section-heading h2 { font-size: 19px; }
  .folder-link { font-size: 11px; gap: 6px; }
  .gallery-section + .gallery-section { margin-top: 34px; padding-top: 24px; }
  .media-card h3 { padding: 12px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .media-card { transition: none; } }
