.gallery-flex .heading {
    margin-bottom: 50px;
    text-align: center;
}

.gallery-flex .heading h2 {
    font-weight: bold;
    font-size: 2.4rem;
    text-transform: uppercase;
}

.gallery-flex {
    margin-bottom: 50px;
}

.gallery-flex ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.gallery-flex li {
    height: 40vh;
    flex-grow: 1;
}

.gallery-flex li:last-child {
    flex-grow: 10;
}

.gallery-flex li:hover img {
    transform: scale(1.1);
    opacity: 1.9;
    border-radius: 5px;
}

.gallery-flex img {
    max-height: 100%;
    min-width: 100%;
    object-fit: cover;
    vertical-align: bottom;
    border-radius: 0 !important;
}

@media (max-aspect-ratio: 1/1) {
    .gallery-flex li {
        height: 30vh;
    }
}

@media (max-height: 480px) {
    .gallery-flex li {
        height: 80vh;
    }
}

@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
    .gallery-flex ul {
        flex-direction: row;
    }

    .gallery-flex li {
        height: auto;
        width: 100%;
    }

    .gallery-flex img {
        width: 100%;
        max-height: 75vh;
        min-width: 0;
    }
}

.gallery-flex .btn-hapus {
    position: absolute;
    text-align: left;
    margin-left: -30px;
}
