.columns {
    display: flex;

    width: 100%;

    margin: 0;

    padding-bottom: 10vw;
}

.column {
    width: 33%;

    padding: 1%;

    display: block;

    align-items: center;
}

#stomazach{
    background-image: url("../Images/stomazach2.png");
    background-size: cover;
}

#protetyka{
    background-image: url("../Images/IMG_1540.jpg");
    background-size: cover;
}

#innezabiegi{
    background-image: url("../Images/IMG_3162.jpg");
    background-size: cover;
}

.offerboxback {
    transform: rotateY(180deg);

    background-color: white;
}

.offerbox, .offerboxback {
    width: 90%;

    aspect-ratio: 1 / 1;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    align-items: center;
    text-align: center;
    justify-content: center;

    position: relative;

    grid-area: 1 / 1;

    overflow: hidden;

    backface-visibility: hidden;
    transform-style: preserve-3d;

    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.217);
    border-radius: 5px;
}

.offerbox::after {
    content: "";

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.41);
    background-size: cover;

    z-index: 1;

    backface-visibility: hidden;
}

/*---filpbox & flipcon animation---*/

.flipcon .flipbox {
    transform: rotateY(0deg);
}

.flipcon {
    perspective: 100%;
}

.flipcon.active {
    transform: rotateY(180deg);
}

.flipbox {
    position: relative;

    transform-style: preserve-3d;
    
    transition: transform 0.6s;

    display: grid;

    margin: 0 auto;
    margin-top: 18%;
}

.flipbox.active {
    transform: rotateY(180deg);
}

@media (hover: hover) {
    .flipcon:hover .flipbox {
        transform: rotateY(180deg);
    }
}

.offerbtn {
    margin-top: 1%;
    margin-bottom: 6%;

    display: flex;

    width: 15vw;

    aspect-ratio: 6 / 2;

    text-align: center;
    justify-content: center;

    align-items: center;

    border-radius: 5px;
    border: 2px solid rgb(0, 0, 0);

    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 1vw;

    color: rgb(0, 0, 0);
}

.offerbtn:hover {
    color: white;

    background-color: black;
    
    transition: ease-in 0.3s;
}

/*---IMPLANTY OFERTA---*/

.subGallery {
    width: 100%;

    padding-top: 10vw;
    padding-bottom: 10vw;

    display: inline-flex;

    align-items: center;

    gap: 2%;
}

.corneredGallery {
    text-align: left;

    width: 100%;
    max-height: 50%;

    margin-left: 5%;
}

.corneredGallery2 {
    text-align: left;

    align-items: center;

    width: 80vw;
    
    aspect-ratio: 1 / 1;

    padding: 2.5%;

    margin-right: 7.5%;
    margin-top: 2.5%;
    margin-bottom: 2.5%;

    display: flex;

    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.217);
    border: 1px solid rgba(0, 0, 0, 0.217) ;
    border-radius: 5px;
}

#implantInfo {
    width: 30vw;
    aspect-ratio: 12 / 2;

    margin-top: 10%;

    display: inline-flex;

    text-align: center;
    justify-content: center;
    align-items: center;

    font-family: "Roboto", sans-serif;
    font-size: 1.2vw;
    font-weight: 500;

    color: rgb(255, 255, 255);

    border-radius: 5px;
    border: black solid 2px;

    background-color: rgb(0, 0, 0);
}

#implantInfo:hover {
    color:rgb(0, 0, 0);

    background-color: rgb(255, 255, 255);

    transition: 0.3s ease-in;
}

.implantImg {
    max-width: 45%;
    max-height: 75%;

    border-radius: 5px;

    vertical-align: middle;

    margin:auto
}

@media(max-width: 769px) {
    .columns {
        width: 100%;

        display: flex;

        flex-wrap: wrap;

        justify-content: center ;

        gap: 1%;
    }

    .column {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: center;
    }

    .offerbox, .offerboxback {
        width: 70vw;
    }

    .flipbox {
        margin-top: 15%;
    }

    .offerbtn {
        width: 25vw;

        font-size: 1.8vw;
    }

    .subGallery {
        padding-top: 5vh;
        padding-bottom: 5vh;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;
    }

    .corneredGallery {
        width: 100%;

        margin: 0;

        text-align: center;
    }

    .corneredGallery2 {
        width: 80vw;

        aspect-ratio: 1 / 1;

        margin: 0;

        display: flex;

        align-items: center;

        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.217);
        border: 1px solid rgba(0, 0, 0, 0.217) ;
        border-radius: 5px;
    }
    
    #implantInfo {
        width: 50vh;

        margin: 0;
        margin-top: 15%;
        margin-bottom: 25%;

        font-size: 3vw;
    }
}