/* --- Kaputelefon azonosító oldal --- */
.azonosito {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* --- Kártyás információs dobozok --- */
.info-box {
    background: #f8f8f8;
    border-left: 5px solid #c21c24; /* piros jelölő */
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.info-box h1,
.info-box h2 {
    margin-top: 0;
    color: #333;
}

.info-box p {
    color: #444;
    line-height: 1.7;
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

/* --- Gomb az információs doboz alján --- */
.info-box .btn-offer {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: #c21c24;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.info-box .btn-offer:hover {
    background: #a31218;
    transform: translateY(-2px);
}

/* --- Képek elrendezése --- */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
}

.image-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-card:hover img {
    transform: scale(1.03);
}

.caption {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #333;
    border-top: 1px solid #eee;
    background: #fdfdfd;
}

/* --- Lightbox (kép nagyítás) — JAVÍTVA, hogy a fejléc fölé kerüljön --- */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.88);

    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 0.35s ease;

    z-index: 99999;  /* 🔥 A LÉNYEG — minden fölött legyen */
}

#lightbox.show {
    display: flex;
    opacity: 1;
}

#lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.35s ease;
}

#lightbox.show img {
    transform: scale(1);
    opacity: 1;
}

/* Bezáró gomb */
#lightbox .close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

#lightbox .close:hover {
    color: #c21c24;
}

/* --- Mobilbarát elrendezés --- */
@media (max-width: 768px) {
    .azonosito {
        padding: 0 0.8rem;
    }

    .info-box {
        padding: 1.2rem;
    }

    .info-box h1,
    .info-box h2 {
        font-size: 1.2rem;
    }

    .info-box p {
        font-size: 0.95rem;
    }
}
