/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.5
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.teacher-archive {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.teacher-item {
    flex: 1 1 calc(25% - 20px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.teacher-item h3 {
    margin: 10px 0 0;
}
.teacher-archive .thumbnail-frame {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.teacher-archive .thumbnail-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}
.thumbnail-frame {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.thumbnail-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

.teacher-item {
    flex: 1 1 100% !important;
    max-width: calc(100% - 20px) !important;
}
}