.gl-page { background: #ffffff; color: #111111; font-family: 'Inter', sans-serif; min-height: 100vh; }
.gl-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px 90px; }

.gl-hero {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 40vh; padding: 150px 20px 80px; text-align: center; color: #ffffff;
    background: #0d0d0d url('../img/rawbg.webp') center / cover no-repeat;
}
.gl-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.gl-hero__inner { position: relative; z-index: 1; max-width: 820px; }
.gl-hero__title { font-family: 'Swiss721', 'Montserrat', sans-serif; font-size: 56px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; line-height: 1.1; }
.gl-hero__title--folder { font-size: 40px; text-transform: none; letter-spacing: 0.5px; }
.gl-hero__sub { margin-top: 14px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }

[data-gl-load] { position: relative; overflow: hidden; }
[data-gl-load] img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s ease; }
[data-gl-load].is-loaded img { opacity: 1; }
[data-gl-load]::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; will-change: transform;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
    transform: translateX(-100%); animation: gl-shimmer 1.2s linear infinite;
}
[data-gl-load].is-loaded::after { display: none; }
@keyframes gl-shimmer { to { transform: translateX(100%); } }

.gl-folders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.gl-folder { display: flex; flex-direction: column; color: inherit; text-decoration: none; border-radius: 14px; overflow: hidden; background: #ffffff; border: 1px solid #eeeeee; }
.gl-folder:hover { border-color: #d4d4d4; }
.gl-folder:focus-visible { outline: 3px solid #0c632e; outline-offset: 2px; }
.gl-folder__media { aspect-ratio: 4 / 3; background: #f4f4f4; }
.gl-folder__body { flex: 1; padding: 14px 18px 18px; }
.gl-folder__name { font-family: 'Swiss721', 'Montserrat', sans-serif; font-size: 18px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.gl-folder__sub { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: #666666; overflow-wrap: anywhere; }

.gl-back { display: inline-block; margin-bottom: 24px; color: #0c632e; font-weight: 600; text-decoration: none; border-bottom: 2px solid #FFE066; padding-bottom: 2px; }
.gl-back:hover { border-bottom-color: #0c632e; }

.gl-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gl-tile { display: block; padding: 0; border: 0; cursor: pointer; aspect-ratio: 1 / 1; border-radius: 10px; background: #f0f0f0; }
.gl-tile--video { background: #1b1b1b; }
.gl-tile:focus-visible { outline: 3px solid #0c632e; outline-offset: 2px; }
.gl-tile__play { position: absolute; top: 50%; left: 50%; z-index: 1; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0, 0, 0, 0.65); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 18px; padding-left: 3px; }

.gl-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.gl-pager__item { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid #e3e3e3; border-radius: 10px; background: #ffffff; color: #111111; font-size: 15px; font-weight: 600; text-decoration: none; }
a.gl-pager__item:hover { border-color: #0c632e; color: #0c632e; }
.gl-pager__item.is-active { background: #0c632e; border-color: #0c632e; color: #ffffff; }
.gl-pager__item.is-disabled { background: #fafafa; color: #bbbbbb; }
.gl-pager__gap { padding: 0 2px; color: #888888; }

.gl-empty { padding: 90px 20px; text-align: center; color: #666666; }

.gl-lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.94); overscroll-behavior: contain; }
.gl-lightbox.is-open { display: flex; }
.gl-lightbox__stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 64px 72px; }
.gl-lightbox__stage img, .gl-lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #000000; }
.gl-lightbox__btn { position: absolute; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #ffffff; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gl-lightbox__btn:hover { background: rgba(255, 255, 255, 0.28); }
.gl-lightbox__btn:focus-visible { outline: 2px solid #FFE066; outline-offset: 2px; }
.gl-lightbox__close { top: 18px; right: 18px; font-size: 34px; }
.gl-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.gl-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.gl-lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.8); }

@media (max-width: 1024px) {
    .gl-folders, .gl-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .gl-folders { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .gl-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gl-lightbox__stage { padding: 64px 12px; }
    .gl-lightbox__prev, .gl-lightbox__next { top: auto; bottom: 14px; transform: none; }
    .gl-lightbox__prev { left: 16px; }
    .gl-lightbox__next { right: 16px; }
}
@media (max-width: 640px) {
    .gl-hero { padding: 120px 18px 60px; min-height: 32vh; }
    .gl-hero__title { font-size: 32px; }
    .gl-hero__title--folder { font-size: 26px; }
    .gl-wrap { padding: 32px 16px 70px; }
    .gl-folder__name { font-size: 15.5px; }
    .gl-pager__item { min-width: 38px; height: 38px; padding: 0 9px; }
}
@media (prefers-reduced-motion: reduce) {
    [data-gl-load]::after { animation: none; }
    [data-gl-load] img { transition: none; }
}