body {
    background-color: #000;
    color: #eee;
    font-family: sans-serif;
    padding: 20px;
}

.bannerbox {
  background: var(--panel-bg);
  padding: 8px 0;
  margin-bottom: 20px;
}
.bannerimg {
    height: 160px !important;   /* Állítsd, hogy desktopon kb. 20-25%-kal legyen nagyobb! */
    max-height: 220px !important;
    width: auto !important;

    display: block;
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 700px) {
  .bannerimg {
    height: 110px !important;
    max-height: none !important;
    width: 100% !important;

  }
}

.login-box, .gallery {
    max-width: 600px;
    margin: 0 auto;
}
.login-box input {
    display: block;
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}
button, .zipbtn, .imgbox a {
    background: #444;
    color: #fff;
    border: none;
    padding: 10px;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
}
.images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.imgbox {
    background: #222;
    padding: 10px;
    text-align: center;
}
.imgbox img {
    max-width: 100px;
    display: block;
    margin: 0 auto;
}
.error {
    color: red;
    font-weight: bold;
}

.images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.images img {
    max-width: 270px;
    max-height: 150px;
    object-fit: cover;
    margin: 5px;
    border-radius: 8px;
    box-shadow: 0 0 4px #666;
}

.imgbox {
    background: #1c1c1c;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 10px #000;
}

.imgbox img {
    width: 100%;
    max-width: 270px;  /* vagy amit szeretnél */
    max-height: 200px; /* vagy amit szeretnél */
    object-fit: contain;      /* EDDIG cover volt! */
    margin-bottom: 10px;
    border-radius: 4px;
    background: #111;         /* hogy ne legyen átlátszó a "keret" */
}

.imgbox a {
    display: inline-block;
    padding: 10px 35px;
    background: #999;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.imgbox a:hover {
    background: #09c;
}

.btn-logout {
    display: inline-block;
    padding: 8px 20px;
    background-color: #333;
    color: #fff;
    border: 1px solid #999;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}
.btn-logout:hover {
    background-color: #555;
    color: #0bf;
}

.delete-img {
    background: #e00;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.delete-img:hover {
    background: #b00;
}


.progress {
    background: #222;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px #0005;
}
progress::-webkit-progress-bar { background: #222; border-radius: 6px; }
progress::-webkit-progress-value { background: #0bf; }
progress::-moz-progress-bar { background: #3b0; }

}

@media (max-width: 768px) {
  .imgbox img {
    max-width: 100%;
    max-height: 160px; /* vagy kevesebb, ha kell */
    object-fit: contain;
    background: #111;
  }
}



@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .gallery, .login-box {
        max-width: 100%;
        margin: 0 auto;
    }

    .images {
        display: block;
    }

    .imgbox {
        margin-bottom: 20px;
    }

    .imgbox img {
        max-width: 100%;
        height: auto;
    }

    button, .zipbtn, .imgbox a, .btn-logout {
        width: 100%;
        box-sizing: border-box;
        margin-top: 10px;
    }
@media (max-width: 700px) {
  .bannerimg {
    height: 110px !important;
    max-height: none !important;
    width: 100% !important;

  }
}
