/* =================================================================
   MEDIA GALLERY PAGE — /media-gallery
   ================================================================= */

/* ── Hero ─────────────────────────────────────────────────────── */
.gl-hero-wrap {
    position: relative;
    overflow: hidden;
    background: #0d1a2d;
}
.gl-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.45);
}
.gl-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 3rem;
}
.gl-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0.5rem 0 0.4rem;
    line-height: 1.1;
}
.gl-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* breadcrumb */
.cp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.cp-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.cp-breadcrumb a:hover { color: #fff; }
.cp-breadcrumb i { font-size: 0.7rem; color: rgba(255,255,255,0.4); }
.cp-breadcrumb span { color: rgba(255,255,255,0.9); }

/* ── Page body layout ─────────────────────────────────────────── */
.gl-layout {
    background: #f3f4f6;
    padding: 50px 0 60px;
}
.gl-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 2.75rem;
    align-items: start;
}

/* ── Sidebar — reuses ci-sidebar from corporateinfo.css ──────── */
.gl-sidebar {
    position: sticky;
    top: 110px;
}

/* ── Content area ─────────────────────────────────────────────── */
.gl-content {
    min-width: 0;
}
.gl-content-head {
    margin-bottom: 1.75rem;
}
.gl-content-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 0.35rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.gl-content-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--dhs-red);
    border-radius: 2px;
}
.gl-content-desc {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0.5rem 0 0;
}

/* ── Image grid ───────────────────────────────────────────────── */
.gl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

/* ── Individual thumbnail ─────────────────────────────────────── */
.gl-item {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
}
.gl-thumb-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a2e;
}
.gl-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gl-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,26,46,0.82) 0%, rgba(13,26,46,0) 55%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gl-thumb-overlay i {
    color: #fff;
    background: rgba(var(--dhs-red-rgb), 0.85);
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(var(--dhs-red-rgb), 0.4);
    margin-bottom: 0.4rem;
}
.gl-thumb-title {
    position: absolute;
    bottom: 0.5rem;
    left: 0; right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 500;
    padding: 0 0.4rem;
    line-height: 1.3;
}
.gl-item:hover .gl-thumb { transform: scale(1.07); }
.gl-item:hover .gl-thumb-overlay { opacity: 1; }

/* ── Empty state ──────────────────────────────────────────────── */
.gl-empty {
    text-align: center;
    padding: 5rem 0;
    color: #94a3b8;
    background: #fff;
    border-radius: 12px;
}
.gl-empty i { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.gl-empty p  { font-size: 1rem; }

/* ── Video section (inside content) ──────────────────────────── */
.gl-video-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}
.gl-video-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.gl-video-heading i { color: var(--dhs-red); }
.gl-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.gl-video-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: transform 0.25s, box-shadow 0.25s;
}
.gl-video-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.15); }
.gl-video-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d1a2d;
}
.gl-video-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.3s, filter 0.3s;
    filter: brightness(0.8);
}
.gl-video-card:hover .gl-video-thumb img { transform: scale(1.05); filter: brightness(0.65); }
.gl-play-btn {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.gl-play-btn i {
    color: #fff;
    background: rgba(var(--dhs-red-rgb), 0.9);
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(var(--dhs-red-rgb), 0.5);
    transition: transform 0.2s, background 0.2s;
}
.gl-video-card:hover .gl-play-btn i { transform: scale(1.1); background: var(--dhs-red); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .gl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .gl-shell {
        grid-template-columns: 1fr;
    }
    .gl-sidebar { position: static; }
    .ci-nav-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .ci-nav-list li { margin-bottom: 0; }
    .ci-nav-list a { padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; }
    .gl-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .gl-hero-img { height: 300px; }
    .gl-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .gl-layout { padding: 2rem 0 3rem; }
}
@media (max-width: 480px) {
    .gl-hero-img { height: 220px; }
    .gl-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
    .gl-video-grid { grid-template-columns: 1fr; }
}
