img.float-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 45%;
    vertical-align: top;
}

img.float-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 45%;
}

img.image-full {
    display: block;
    width: 100%;
    height: auto;
    margin: 1rem auto;
}

img.image-60 {
    display: block;
    width: 60%;
    height: auto;
    margin: 1rem auto;
}
figure.image {
    display: block;
    clear: none;
}

figure.image img {
    display: block;
    width: 100%;
    height: auto;
}

figure.image figcaption {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 0.3em;
}

figure.image.float-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 45%;
    vertical-align: top;
}

figure.image.float-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 45%;
    vertical-align: top;
}

figure.image.image-full {
    display: block;
    margin: 1rem auto;
    width: 100%;
    max-width: 100%;
}

figure.image.image-60 {
    display: block;
    margin: 1rem auto;
    width: 60%;
    max-width: 100%;
}

figure.image.image-full img,
figure.image.image-60 img {
    width: 100%;
    height: auto;
    display: block;
}

figure.image > img.image-60 {
    display: block;
    width: 60%;
    height: auto;
    margin: 1rem auto;
}

figure.image > img.image-full {
    display: block;
    width: 100%;
    height: auto;
    margin: 1rem auto;
}

img.float-left,
figure.image.float-left {
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

img.float-right,
figure.image.float-right {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/*tu zdjecia obok siebie w poziomie*/
.image-row,
.figure.image-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1em 0;
    align-items: flex-start;
}
.image-row img,
.figure.image-row img {
    width: calc(50% - 10px);
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    height: auto;
}

.image-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: flex-start;
    margin: 1em 0;
}

/* gdy dziećmi są FIGURE */
.image-row > figure {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

/* gdy dziećmi są IMG */
.image-row > img {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    height: auto;
    display: block;
}
.image-row .image-row {
    display: contents;
}

@media (max-width: 768px) {
    .image-row {
        flex-direction: column;
    }

    .image-row > figure,
    .image-row > img {
        max-width: 100%;
        flex-basis: 100%;
    }
}
/*end tu zdjecia obok siebie w poziomie*/

/*tu obrazki obok siebie ale w pionie*/
.image-column-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    margin: 1em 0;
}

.image-column-row img {
    flex: 0 0 calc(50% - 5px);
    width: auto;
    height: auto !important;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 !important;
}

/* MOBILE: zdjęcia jedno pod drugim, wyśrodkowane */
@media (max-width: 768px) {

    .image-row > .image-column-row {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .image-column-row {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .image-column-row img {
        flex: 0 0 auto;
        max-width: 90%;
        margin: 0 auto 1em auto !important;
    }
}
