/* Gallery View Styles */

/* ── Page Container ──────────────────────────────── */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2a4d 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-top: 20px;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.content-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    margin-top: 80px;
}

/* ── Gallery Listing Section ─────────────────────────────── */
.gallery-listing-section {
    background: #f1f5f9;
    padding: 60px 0 80px;
    min-height: 60vh;
}

.gl-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

/* ── Gallery Header ──────────────────────────────── */
.gl-header {
    margin-bottom: 50px;
    text-align: center;
}

.gl-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.gl-header p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #64748b;
}

/* ── Gallery Grid (4-column responsive) ──────────────────────────────── */
.gl-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* ── Gallery Card ────────────────────────────────── */
.gl-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    background: white;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(11,22,44,0.12);
}

/* ── Image Wrapper ───────────────────────────────── */
.gl-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0B162C;
    flex-shrink: 0;
}

.gl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gl-card:hover .gl-img {
    transform: scale(1.06);
}

.gl-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1e293b;
    color: #475569;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
}

/* ── Hover Overlay ───────────────────────────────── */
.gl-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 107, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gl-card:hover .gl-overlay {
    opacity: 1;
}

.gl-overlay-icon {
    width: 54px;
    height: 54px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gl-card:hover .gl-overlay-icon {
    transform: scale(1);
}

/* ── Title Bar ───────────────────────────────── */
.gl-title-bar {
    background: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 3px solid var(--accent-color);
    transition: background 0.3s ease;
    flex: 1;
}

.gl-card:hover .gl-title-bar {
    background: var(--accent-color);
}

.gl-title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.gl-card:hover .gl-title {
    color: white;
}

.gl-count {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.gl-card:hover .gl-count {
    color: rgba(255,255,255,0.9);
}

/* ── Empty State ─────────────────────────────── */
.gl-empty {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 20px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .content-section {
        padding: 60px 20px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 40px 15px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 40px 15px;
    }
}

@media (max-width: 1200px) {
    .gl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .gl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gl-container {
        padding: 0 30px;
    }
}

@media (max-width: 576px) {
    .gl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gl-container {
        padding: 0 16px;
    }

    .gl-img-wrap {
        height: 160px;
    }
}
