/* Estilos básicos para a galeria */
#biomed-gallery {
    text-align: center;
}
#biomed-filters {
    margin-bottom: 20px;
}
.biomed-item {
    /*width: 30%;
    margin: 12px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;*/
}
.biomed-item img {
    max-width: 80%;
    height: auto;
    border-radius: 50%;
    border: 3px solid #e9e9e9;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
    transition: border 0.3s ease;
}
.biomed-item h3{
    font-size: 21px;
    transition: all 0.3s ease;
    font-weight: 600;
}
.biomed-item p{
    font-size: 16px;
    font-weight: 400;
}
.biomed-item:hover img{
    border: 3px solid #2c9494;
}
.biomed-item:hover h3{
    color: #2c9494;
}

/* Container principal da galeria */
#biomed-gallery {
    text-align: center;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px 5px;
}

/* Filtros */
#biomed-filters {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button{
    padding: 6px 30px;
    cursor: pointer;
    background-color: #2c9494;
    font-size: 14px;
    letter-spacing: 1.2px;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background-color: #333e6b;
}

#biomed-filters-mobile .filter-select {
    padding: 10px 10px;
    cursor: pointer;
    background-color: #2c9494;
    font-size: 14px;
    letter-spacing: 1.2px;
    color: #fff;
    border: none;
    border-radius: 5px;   
    height: 40px !important; 
}

/* Itens da galeria */
#biomed-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
}

.biomed-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(33.333% - 40px);
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-height: 410px;
    align-items: center;
}

.biomed-item:hover {
    transform: translateY(-5px);
    background-color: rgb(240 255 255);
}

.biomed-item img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 15px;
}

.biomed-item h3 {    
    flex: 0 0 auto; /* Impede que o título cresça */
}

.biomed-item p {
    font-size: 1em;
    color: #555;
    margin: 0;
    flex: 1 0 auto; /* Faz com que o parágrafo cresça */
}

/* Responsividade */
@media (max-width: 992px) {
    .biomed-item {
        width: calc(50% - 20px);
    }
    #biomed-gallery {        
        padding: 20px 10px;
    }
}

@media (max-width: 768px) {
    .biomed-item {
        width: 100%;
    }
    #biomed-gallery {        
        padding: 20px 20px;
    }
}

/* Zoom in effect */
@-webkit-keyframes pop-in {
    0% { opacity: 0; -webkit-transform: scale(0.5); }
    100% { opacity: 1; -webkit-transform: scale(1); }
}
@-moz-keyframes pop-in {
    0% { opacity: 0; -moz-transform: scale(0.5); }
    100% { opacity: 1; -moz-transform: scale(1); }
}
@keyframes pop-in {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}
.fadezoom {
    -webkit-animation-name: pop-in;
    animation-name: pop-in;
    display: block !important;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
}
    
/* Zoom out effect */
@-webkit-keyframes pop-out {
    0% { opacity: 1; -webkit-transform: scale(1); }
    100% { opacity: 0; -webkit-transform: scale(0.5); }
}
@-moz-keyframes pop-out {
    0% { opacity: 1; -moz-transform: scale(1); }
    100% { opacity: 0; -moz-transform: scale(0.5); }
}
@keyframes pop-out {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5); }
}
.fadezoom-out {
    -webkit-animation-name: pop-out;
    animation-name: pop-out;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
}
