/* ==========================================================================
   assets/hireink.css
   A Híreink oldal (hireink.php) képlapozójának stílusa.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Lapozó elrendezés: [előző gomb] [kép] [következő gomb]
   -------------------------------------------------------------------------- */

.hirek {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* A kép keretezett megjelenítő mezője */
.hir {
    width: 800px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
}


/* --------------------------------------------------------------------------
   Hírelemek: csak az 'aktiv' osztályú látszik
   -------------------------------------------------------------------------- */

.hir-elem {
    display: none;
    width: 100%;
    height: 100%;
    text-align: center;
}

.hir-elem.aktiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hir-elem img {
    max-width: 100%;
    max-height: 470px;
    object-fit: contain;
}

.hir-elem h2 {
    margin-top: 15px;
    font-size: 20px;
}


/* --------------------------------------------------------------------------
   Lapozó gombok
   -------------------------------------------------------------------------- */

.hirek-gomb {
    border: none;
    background-color: #eee;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    flex-shrink: 0;
}

.hirek-gomb:hover {
    background-color: #ccc;
}


/* --------------------------------------------------------------------------
   Reszponzív nézetek
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 900px) {

    .hir {
        width: 90vw;
        height: 65vw;
    }

    .hirek-gomb {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

/* Telefon */
@media (max-width: 600px) {

    .hirek {
        gap: 8px;
    }

    .hir {
        width: 80vw;
        height: 65vw;
    }
}
