.gl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gl__item { display: block; border-radius: 10px; overflow: hidden; }
.gl__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; transition: transform .3s; }
.gl__item:hover img { transform: scale(1.04); }
.gl__item:focus-visible { outline: 3px solid rgba(37, 99, 235, .55); outline-offset: 2px; }
.gl-view { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 23, 42, .94); }
.gl-view::backdrop { background: transparent; }
.gl-view img { position: absolute; inset: 0; width: calc(100% - 120px); height: calc(100% - 110px); margin: auto; object-fit: contain; }
.gl-view p { position: absolute; left: 70px; right: 70px; bottom: 10px; margin: 0; color: #e5e7eb; font-size: 15px; line-height: 1.35; text-align: center; }
.gl-view button { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 20px; cursor: pointer; }
.gl-view button:hover { background: rgba(255, 255, 255, .3); }
.gl-view__close { top: 14px; right: 14px; }
.gl-view__prev { left: 6px; top: calc(50% - 24px); }
.gl-view__next { right: 6px; top: calc(50% - 24px); }
@media (max-width: 767px) { .gl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .gl-view img { width: 100%; height: calc(100% - 140px); } .gl-view__prev, .gl-view__next { top: auto; bottom: 14px; } .gl-view__prev { left: 14px; } .gl-view__next { right: 14px; } }
/* Документы (награды): целиком, с текстом под изображением. */
.gl--docs { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.gl--docs > li { border: 1px solid #d9dee7; border-radius: 12px; background: #fff; overflow: hidden; scroll-margin-top: 20px; }
.gl--docs > li:target { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
.gl--docs .gl__item { border-radius: 0; background: #f3f5f9; }
.gl--docs .gl__item img { aspect-ratio: 4 / 3; padding: 12px; object-fit: contain; object-position: center; }
.gl--docs .gl__item:hover img { transform: none; }
.gl__caption { padding: 14px 18px 16px; font-size: 15px; line-height: 1.5; }
.gl__caption b { font-weight: 600; }
@media (max-width: 767px) { .gl--docs { grid-template-columns: minmax(0, 1fr); } }
