/*
 Theme Name: W3K
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Wee Three Kings Preschool theme
 Author: Robert Frost
 Author URI: https://southforkdigital.com
 Template: Divi
 Version: 1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */

/* Staff Page Styles */
.director-card {
    display: flex;
    padding: 5vw;
}

.director-photo > img {
    border-radius: 5px;
    box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.3);
    max-width: 100%;
}

.director-info {
    padding: 5px 15px 0 15px;
}

.et_pb_row.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.teacher-card {
    padding: 5px;
}

.teacher-card > img {
    border-radius: 5px;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.btn-reg {
    border: 0px;
    border-radius: 4px;
    background-color: #466177;
    padding: 10px;
    transition: all 0.3s ease-in-out;
}

/* Media query for tablet-sized screens */
@media (max-width: 1024px) {
    .et_pb_row.staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .director-card {
        flex-direction: column;
        align-items: center;
    }
}

/* Media query for mobile screens */
@media (max-width: 768px) {
    .et_pb_row.staff-grid {
        grid-template-columns: 1fr;
    }

    .director-card {
        padding: 5vw 2vw;
    }

    .director-info {
        padding: 5px 10px;
    }
}

.btn-reg:hover {
    background-color: #ff9c02;
}

.btn-reg a {
    color: white;
}

.staff-directory-content .staff-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 40px;
    max-width: 1080px;
    margin: 0 auto;
}

.staff-directory-content .teacher-card {
    width: 100%;
}

.staff-directory-content .teacher-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.staff-directory-content .teacher-card h2 {
    margin-top: 20px;
}

@media (max-width: 980px) {
    .staff-directory-content .staff-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 767px) {
    .staff-directory-content .staff-grid {
        grid-template-columns: 1fr;
    }
}