/* Podstawowe style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container-2 {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

section {
    background: #fff;
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

section:nth-child(even) {
    flex-direction: row-reverse;
}

.text-content {
    width: calc(50% - 20px);
    min-width: 250px;
}

section img {
    width: calc(50% - 20px);
    height: auto;
    border-radius: 8px;
    min-width: 250px;
}

h2 {
    margin-bottom: 20px;
    color: rgb(245, 203, 66);
}

p {
    font-size: 1.1em;
    color: #666;
}

/* Style responsywne */

@media (max-width: 768px) {
    .container-2 {
        width: 95%;
    }

    section {
        flex-direction: column;
        text-align: center;
        margin: 10px 0; /* Zmniejszenie marginesów dla lepszego dopasowania */
    }

    section:nth-child(even) {
        flex-direction: column;
    }

    .text-content, section img {
        width: 100%;
        min-width: 0; /* Usunięcie minimalnej szerokości */
        margin: 10px 0; /* Dodanie marginesów dla elementów w sekcji */
    }

    section img {
        margin-top: 20px;
    }
}

/* Styl galerii */

.gallery {
    margin-top: 50px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    text-align: center;
}

.gallery h2 {
    margin-bottom: 20px;
    color: rgb(245, 203, 66);
}

.gallery-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-images img {
    width: 200px;
    height: auto;
    margin: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery-images img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-images img {
        width: 150px;
    }
}
