/* ===== GALLERY PAGE — gallery.css ===== */
/* Common styles (navbar, footer, siemens badge, etc.)
   are in style.css — link both files in gallery-photos.html */

/* ===== PAGE VARIABLES (gallery-only overrides) ===== */
:root {
    --red: #e31e24;
    --navy: #0f172a;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--navy);
    padding: 50px 0 40px;
}
.page-header h1 {
    color: white;
    font-weight: 800;
    font-size: 2.2rem;
}
.page-header h1 span {
    color: var(--red);
}
.page-header p {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    margin: 0;
}

/* ===== FILTER BAR ===== */
.filter-wrap {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 0;
}
.filter-btn {
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    padding: 7px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

/* ===== GALLERY GRID ===== */
.gallery-section {
    padding: 50px 0;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f1f5f9;
}
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Caption overlay */
.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.85), transparent);
    color: white;
    padding: 30px 14px 14px;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .caption {
    opacity: 1;
}
.caption .tag {
    background: var(--red);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.caption p {
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0;
}

/* Hidden state (filter) */
.gallery-item.hidden {
    display: none;
}

/* ===== LIGHTBOX ===== */
.lb {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.lb.show {
    display: flex;
}
.lb img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}
.lb-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
}
.lb-close:hover {
    opacity: 1;
}
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.lb-nav:hover {
    background: var(--red);
}
.lb-prev { left: 15px; }
.lb-next { right: 15px; }
.lb-info {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* ===== CTA BOX (gallery page) ===== */
.cta-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: -80px;
    position: relative;
    z-index: 10;
}
