body {
    background: #fdf6f0;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    color: #5e4b32;
}

.container {
    padding: 30px;
}

h1, h2 {
    color: #a1866f;
}

input[type="password"], input[type="file"] {
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.button {
    display: inline-block;
    background-color: #e8d3a6;
    color: #5e4b32;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px; /* <-- ZWIĘKSZA CZCIONKĘ */
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #e0d5cf;
}


.button:hover, button:hover {
    background-color: #d1bb96;
}

.delete-button {
    background-color: #d9534f;
    border: none;
    color: white;
    padding: 10px 18px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 5px;
}

.delete-button:hover {
    background-color: #c9302c;
}


.error {
    color: red;
    font-weight: bold;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    justify-items: center;
    padding: 10px 0;
}

/* Telefony — 1 kolumna */
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Małe tablety — 2 kolumny */
@media (min-width: 481px) and (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Duże tablety — 3 kolumny */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Małe laptopy / duże ekrany — 4-6 kolumn (domyślnie 6) */
@media (min-width: 1025px) {
    .gallery {
        grid-template-columns: repeat(6, 1fr);
    }
}

.gallery img {
    max-width: 150px;
    border-radius: 10px;
    box-shadow: 0 0 5px #ccc;
    transition: transform 0.2s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

.controls {
    margin-bottom: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

img.lazyload {
    filter: blur(15px);
    transition: filter 0.5s;
}

img.lazyloaded {
    filter: blur(0);
}

/* Style dla checkboxów i labeli w galerii */

label {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    border-radius: 10px;
    padding: 5px;
}

label:hover {
    background-color: #f0e7d8;
}

input[type="checkbox"] {
    transform: scale(1.5);
    margin-bottom: 8px;
    cursor: pointer;
}

.romantic-photo {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.romantic-photo img {
    max-width: 80%;
    height: auto;
    border: 6px solid #e8d3a6; /* delikatna złotawa ramka */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* subtelny cień */
    transition: transform 0.3s ease;
}

.romantic-photo img:hover {
    transform: scale(1.02); /* lekki efekt powiększenia przy najechaniu */
}
