/* The Modal (background) */
.block-team .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
  
/* The Close Button */
.block-team .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    width: 44px;
    text-align: center;
}
  
.block-team .close:hover,
.block-team .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.block-team .team_outer {
    text-align: center;
    margin-bottom: 3rem;
}

.block-team .team_outer h3 {
    margin-top: 1rem;
    margin-bottom: 0;
}

.block-team .team_outer h5 {
    margin-top: 0;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .block-team img {
        border-radius: 1rem;
        max-width: 250px;
    }

    .block-team .modal-content {
        background-color: #fefefe;
        margin: 15% auto; /* 15% from the top and centered */
        padding: 20px 20px 40px;
        border: 1px solid #888;
        width: 90%; /* Could be more or less, depending on screen size */
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 1079px) {
    .block-team {
        max-width: 100%;
    }

    .block-team img {
        border-radius: 1rem;
        max-width: 100%;
    }

    .block-team .modal-content {
        background-color: #fefefe;
        margin: 15% auto; /* 15% from the top and centered */
        padding: 20px 20px 40px;
        border: 1px solid #888;
        width: 80%; /* Could be more or less, depending on screen size */
        text-align: center;
    }
}

@media (min-width: 1080px) {
    .block-team img {
        border-radius: 1rem;
        max-width: 250px;
    }

    .block-team .modal-content {
        background-color: #fefefe;
        margin: 15% auto; /* 15% from the top and centered */
        padding: 20px 20px 40px;
        border: 1px solid #888;
        width: 60%; /* Could be more or less, depending on screen size */
        text-align: center;
    }
}