/* Sekcja: subgallery - pełny CSS sekcji (zapis zagnieżdżony). */

.subgallery {
    margin-top: 60px;

    .one-image {
        padding-bottom: 20px;

        img {
            max-width: 100%;
            height: 300px;
            object-fit: cover;
            border-radius: var(--image-border-radius);
        }

        h3 {
            text-align: center;
            font-size: 1.1875rem;
            color: var(--element1-title);
        }
    }
}

@media (max-width: 575.5px) {
    .subgallery {
        margin-top: 30px;

        .one-image {
            img {
                height: 37vw;
            }
        }
    }
}

@media (min-width: 576px) and (max-width: 767.5px) {
    .subgallery {
        margin-top: 30px;

        .one-image {
            img {
                height: 20vw;
            }
        }
    }
}

@media (min-width: 768px) and (max-width: 1199.5px) {
    .subgallery {
        .one-image {
            img {
                height: 200px;
            }
        }
    }
}

@media (min-width: 1200px) and (max-width: 1579.5px) {
    .subgallery {
        .one-image {
            img {
                height: 240px;
            }
        }
    }
}
