/* Image and video gallery. Builds on home.css (.hp) and solution.css (.sp). */

.gl-hero { padding-bottom: 36px; }
.gl-tabs { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.gl-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 600; text-decoration: none; }
.gl-tabs a span { font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .15); border-radius: 10px; padding: 1px 8px; }
.gl-tabs a:hover { border-color: var(--hp-gold); color: var(--hp-gold); }
.gl-tabs a.is-active { background: var(--hp-gold); border-color: var(--hp-gold); color: var(--hp-navy); }
.gl-tabs a.is-active span { background: rgba(10, 44, 70, .12); }

.gl-empty { text-align: center; color: var(--hp-muted); padding: 32px 0; }

/* Photos */
.gl-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gl-photo { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .25s, transform .25s; }
.gl-photo:hover { box-shadow: 0 18px 40px rgba(10, 44, 70, .1); transform: translateY(-4px); color: inherit; }
.gl-photo__img { position: relative; display: block; aspect-ratio: 4 / 3; background: #f6f9fb; overflow: hidden; }
.gl-photo__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.gl-photo:hover .gl-photo__img img { transform: scale(1.04); }
.gl-photo__zoom { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--hp-navy); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.gl-photo:hover .gl-photo__zoom, .gl-photo:focus-visible .gl-photo__zoom { opacity: 1; transform: none; }
.gl-photo__name { padding: 16px 18px; font-weight: 600; color: var(--hp-ink); border-top: 1px solid var(--hp-line); }

/* Videos */
.gl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.gl-filter button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 22px; border: 1px solid var(--hp-line); background: #fff; color: #33434f; font-weight: 600; font-size: .92rem; cursor: pointer; }
.gl-filter button span { font-size: .78rem; color: var(--hp-muted); }
.gl-filter button:hover { border-color: var(--hp-blue); color: var(--hp-blue); }
.gl-filter button.is-active { background: var(--hp-blue); border-color: var(--hp-blue); color: #fff; }
.gl-filter button.is-active span { color: rgba(255, 255, 255, .8); }

.gl-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gl-video { background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.gl-video[hidden] { display: none; }
.gl-video__player, .gl-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.gl-video__player { position: relative; padding: 0; background: #0a2c46; cursor: pointer; overflow: hidden; }
.gl-video__player img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s; }
.gl-video__player:hover img { transform: scale(1.04); opacity: .9; }
.gl-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 0, 0, .92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s; }
.gl-video__play i { margin-left: 4px; }
.gl-video__player:hover .gl-video__play { transform: translate(-50%, -50%) scale(1.08); }
.gl-video__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.gl-video h2 { font-size: 1.02rem; line-height: 1.4; color: var(--hp-ink); margin-bottom: 10px; flex: 1; }
.gl-video__body a { font-size: .85rem; font-weight: 600; color: var(--hp-blue); text-decoration: none; }
.gl-video__body a i { font-size: .72rem; margin-left: 3px; }

/* Link across to the other gallery */
.gl-crosslink { display: flex; align-items: center; gap: 16px; margin-top: 36px; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--hp-line); background: var(--hp-alt, #f3f7fa); color: inherit; text-decoration: none; }
.gl-crosslink:hover { border-color: #c9dbe8; color: inherit; }
.gl-crosslink__icon { width: 48px; height: 48px; border-radius: 12px; background: #fff; color: #e62117; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex: 0 0 auto; }
.gl-crosslink .fa-image { color: var(--hp-blue); }
.gl-crosslink strong { display: block; color: var(--hp-ink); }
.gl-crosslink small { color: var(--hp-muted); }
.gl-crosslink > i { margin-left: auto; color: var(--hp-blue); }

.gl-pages { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; }
.gl-pages a { font-weight: 600; color: var(--hp-blue); text-decoration: none; }

@media (max-width: 991.98px) {
    .gl-photos, .gl-videos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .gl-photos, .gl-videos { grid-template-columns: 1fr; }
}
