.command-staff-page-wrapper {
    margin: 4rem 0;
}

.command-staff-list-wrapper {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    @media (min-width: 768px) {
        flex-direction: row;
        align-items: stretch;
    }
}

.command-list-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 10px 10px 15px 0px rgba(0,0,0,0.5);
    transition: all 0.1s linear;
    text-decoration: none;
    color: #404040;
    background: var(--background-gray);
    flex-basis: 51%;
    width: 51%;

    @media (min-width: 768px) {
        flex-basis: 23%;
        width: 100%;
    }

    &:hover {
        box-shadow: 15px 15px 15px 0px rgba(0,0,0,0.5);
        transform: scale(1.05);
        transition: all 0.1s linear;
    }

    a {
        text-decoration: none;
        width: 100%;
    }
}

.command-list-image {
    width: 100%;
    margin-bottom: 0;
    background-color: #FFFFFF;

    img {
        width: 100%;
        height: 25rem;
        object-fit: cover;
        object-position: top;
        display: block;
    }
}

.command-list-text {
    color: var(--text-base);
    padding: 0.5rem 2rem;

    p {
        margin: 0;
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
        line-height: 1.75rem;
        margin: 0;
    }

    h4 {
        font-size: 1rem;
        line-height: 1.5rem;
        margin: 0;
    }
}

.command-group-wrapper {
    display: flex;
    justify-content: center;

    .command-photo {
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 10px 10px 15px 0px rgba(0,0,0,0.5);
        transition: all 0.1s linear;
        text-decoration: none;
        color: #404040;
        background: var(--background-gray);

        &:hover {
            box-shadow: 15px 15px 15px 0px rgba(0,0,0,0.5);
            transform: scale(1.05);
            transition: all 0.1s linear;
        }
    }
}