/* ============================================================
   zigzag-cards.css: image + text cards (.container > .main > .box)
   Used by: resources.html, about.html (press section)
   ============================================================ */

*{
    box-sizing: border-box;
}

a{
    color: var(--med-color);
    text-decoration: none;
}
 
.container{
    margin: 0 auto;
    margin-top: 20px;
    width: 100%;
    min-width: 0;
}
 
.imgwrapper{
    display: flex;
    flex-grow: 1;
    flex-basis: 0;
}
 
.img{
    align-self: center;
    width: 100%;
    min-width: 200px;
    height: 100%;
    object-fit:cover;
    border: var(--secondary-dark-color) solid 2px;
}
 
.main{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

/* thing the image and text is in */
.box{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
    border-bottom: var(--secondary-dark-color) solid 2px;
}

#bacteria{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
    border-bottom: var(--secondary-dark-color) solid 2px;
}

.boximg-container{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

#bacteria .boximg-container{
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
 
.boximg{
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius:20px;
    border: solid 2px var(--secondary-dark-color);
}
 
.content{
    padding: 1rem;
    width: 100%;
    min-width: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--dark-color) var(--white);
    text-align: justify;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content p{
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}
 
.headers{
    font-size: clamp(1.25rem, 2vw, 2rem);
    text-align: left;
    font-weight: normal;
    border-bottom: 2px dashed var(--secondary-dark-color);
}
 
 
 
@media(max-width:730px){
    #bacteria .boximg-container{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .boximg-container{
        gap: 0.5rem;
    }
}
 
@media(max-width:515px){
    #bacteria .boximg-container{
        grid-template-columns: 1fr;
    }
}
